/* OtoParsel AI — Stüdyo çalışma alanı ("Odak modu").
   Tanıtım sitesiyle aynı jetonlar. Mantık index.html içindeki betikte; burada yalnızca görünüm. */

:root {
  --bg: #070a12;
  /* Cam paneller: yoğunluk body[data-glass] ile değişir (dense / balanced / clear) */
  --glass-a: 0.5;
  --glass-blur: 8px;
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  --raise: rgba(255, 255, 255, 0.045);
  --ink: #f3f6fb;
  --soft: #a4b5cf;
  --dim: #93a5c0;
  --line: rgba(148, 176, 214, 0.15);
  --line-strong: rgba(148, 176, 214, 0.3);
  --accent: #E9A24A;
  --accent-ink: #1B1204;
  --gold: #f59e0b;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --info: #60a5fa;
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-text: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 14px;
  --r-sm: 10px;
  --topbar-h: 56px;
  --rail-w: 392px;
  --ctx-w: 336px;
  --pipe-h: 84px;
  /* eski betiğin kullandığı adlar */
  --text-dim: var(--dim);
  --border-color: var(--line);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; }
body[data-glass="dense"] { --glass-a: 0.78; --glass-blur: 14px; }
body[data-glass="clear"] { --glass-a: 0.32; --glass-blur: 6px; }
body.studio-body {
  --surface: rgba(10, 16, 30, var(--glass-a));
  --surface-2: rgba(18, 27, 46, var(--glass-a));
  --field-a: rgba(5, 9, 18, 0.7); --field-b: rgba(5, 9, 18, 0.6); --field-c: rgba(5, 9, 18, 0.45); --field-d: rgba(5, 9, 18, 0.55);
  --bar-bg: rgba(7, 10, 18, calc(var(--glass-a) + 0.12)); --bar-bg2: rgba(7, 10, 18, calc(var(--glass-a) + 0.15)); --bar-solid: rgba(7, 10, 18, 0.94);
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(233, 162, 74, 0.09), transparent 60%),
    radial-gradient(900px 600px at 5% 110%, rgba(122, 162, 214, 0.09), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(233, 162, 74, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: var(--font-mono); }
.dim { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.ic.flip { transform: scaleX(-1); }
.ic.inl { display: inline-block; margin: 0 2px; }
kbd { font-family: var(--font-mono); font-size: 0.8rem; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--raise); color: var(--soft); }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; transition: top 0.15s; }
.skip-link:focus { top: 10px; }

/* ---- Arka plan videosu (yalnızca data-ambient="on" iken görünür) ---- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.8s ease; overflow: hidden; }
.ambient video { width: 100%; height: 100%; object-fit: cover; display: block; }
body[data-ambient="on"] .ambient { opacity: 0.6; }
body[data-ambient="on"][data-busy="1"]:not([data-ambient-paused="1"]) .ambient { opacity: 0.8; }
.sky-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
body[data-ambient="on"]:not([data-ambient-paused="1"]) .sky-fx { opacity: 0.9; }
body[data-ambient="on"][data-ambient-paused="1"] .ambient { opacity: 0.4; }
.topbar, .studio-container, .pipeline, .cb-banner { position: relative; z-index: 1; }

/* ---- Üst şerit ---- */
.topbar {
  flex: none; height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bar-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
}
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.brand img { display: block; }
.brand-name { font-weight: 800; letter-spacing: -0.01em; font-size: 1.02rem; }
.brand-name em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--accent); font-size: 1.15em; }
.brand-sub { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--soft); font-size: 0.86rem; margin-left: 6px; }
.crumbs span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .mono { color: var(--ink); font-weight: 600; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.8rem; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--raise);
  color: var(--soft); font-size: 0.84rem; font-weight: 600;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost.icon-only { padding: 0; width: 38px; }
.btn-ghost[aria-pressed="true"] { color: var(--accent); border-color: rgba(233, 162, 74, 0.4); }
.kbd-hint kbd { margin-left: 4px; }

.src-badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raise);
  font-size: 0.8rem; font-weight: 600; color: var(--soft); max-width: 340px;
}
.src-badge #sourceBadgeText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.src-badge[data-state="solved"] { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.09); }
.src-badge[data-state="solved"] .src-dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2s infinite; }
.src-badge[data-state="benchmark"] { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }
.src-badge[data-state="benchmark"] .src-dot { background: var(--warn); }
.src-badge[data-state="cache"] { color: #bfdbfe; border-color: rgba(96, 165, 250, 0.45); background: rgba(96, 165, 250, 0.08); }
.src-badge[data-state="cache"] .src-dot { background: var(--info); }
.src-badge[data-state="unknown"] { color: #fecaca; border-color: rgba(248, 113, 113, 0.4); }
.src-badge[data-state="unknown"] .src-dot { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.cb-banner {
  flex: none; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px;
  background: linear-gradient(90deg, rgba(234, 88, 12, 0.22), rgba(245, 158, 11, 0.22));
  border-bottom: 1px solid rgba(245, 158, 11, 0.4); color: #fef08a; font-size: 0.86rem; font-weight: 500; text-align: center;
}

/* ---- Ana ızgara ---- */
.studio-container {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--ctx-w);
  gap: 14px; padding: 14px 16px 10px;
}
.studio-container.ctx-closed { grid-template-columns: var(--rail-w) minmax(0, 1fr) 0; }
.studio-container.ctx-closed .ctx { display: none; }

/* ---- Sol ray ---- */
.rail {
  min-height: 0; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); backdrop-filter: blur(var(--glass-blur)) saturate(1.25); box-shadow: var(--rim); overflow: hidden;
}
.steps { list-style: none; margin: 0; padding: 6px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.step { border-radius: 12px; }
.step + .step { margin-top: 2px; }
.step-head {
  width: 100%; display: grid; grid-template-columns: 30px auto 1fr 18px; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 10px; border: 0; background: transparent; text-align: left; border-radius: 12px;
  transition: background 0.15s;
}
.step-head:hover { background: var(--raise); }
.step.is-open > .step-head { background: rgba(233, 162, 74, 0.07); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; color: var(--soft);
}
.step-num .ic { display: none; width: 15px; height: 15px; stroke-width: 2.6; }
.step.is-open .step-num { border-color: var(--accent); color: var(--accent); }
.step.is-done .step-num { background: rgba(52, 211, 153, 0.15); border-color: rgba(52, 211, 153, 0.55); color: var(--ok); }
.step.is-done .step-num .n { display: none; }
.step.is-done .step-num .ic { display: block; }
.step-title { font-weight: 700; font-size: 0.98rem; }
.step-sum { color: var(--dim); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; min-width: 0; }
.step.is-open .step-sum { visibility: hidden; }
.step-chev { transition: transform 0.25s; color: var(--dim); }
.step.is-open .step-chev { transform: rotate(180deg); }
.step-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s ease, visibility 0s linear 0.3s; }
.step.is-open > .step-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s ease, visibility 0s; }
.step-inner { min-height: 0; overflow: hidden; padding: 0 10px; }
.step.is-open .step-inner { padding: 6px 10px 16px; }
.step-lead { margin: 0 0 12px; color: var(--soft); font-size: 0.86rem; }
.step-hint { margin: 10px 0 0; color: var(--dim); font-size: 0.8rem; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.step-inner > .sub-head:first-child { margin-top: 4px; }
.card-tag { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: none; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(96, 165, 250, 0.35); color: #93c5fd; background: rgba(122, 162, 214, 0.08); white-space: nowrap; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; color: var(--dim); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.btn-next {
  width: 100%; margin-top: 16px; min-height: 42px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--raise); color: var(--soft);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 0.88rem;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-next:hover { color: var(--ink); background: rgba(255, 255, 255, 0.09); }

/* form */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; font-weight: 600; color: var(--soft); }
.form-select, .form-input, .script-textarea {
  width: 100%; min-height: 42px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--field-a); color: var(--ink); font-size: 0.92rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239db0ca' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.form-select option { background: #0d1424; }
.form-select:hover, .form-input:hover, .script-textarea:hover { border-color: rgba(148, 176, 214, 0.5); }
.form-select:focus, .form-input:focus, .script-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233, 162, 74, 0.18); }
.form-input.mono { font-size: 0.9rem; }
.tool-select.has-track { border-color: rgba(233, 162, 74, 0.5); }

/* hızlı başlangıç kartları */
.qs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset-pill.qs-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 62px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raise);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.preset-pill.qs-card:hover { border-color: rgba(233, 162, 74, 0.5); background: rgba(233, 162, 74, 0.06); transform: translateY(-1px); }
.preset-pill.qs-card.active { border-color: var(--accent); background: rgba(233, 162, 74, 0.1); }
.qs-place { font-weight: 700; font-size: 0.98rem; }
.qs-sub { color: var(--dim); font-size: 0.8rem; }

/* danışman */
.consultant-source-tabs, .gender-toggle-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--field-b); border: 1px solid var(--line); }
.btn-cons-source, .btn-gender {
  min-height: 38px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--soft);
  font-size: 0.84rem; font-weight: 600; transition: background 0.15s, color 0.15s;
}
.btn-cons-source:hover, .btn-gender:hover { color: var(--ink); background: var(--raise); }
.btn-cons-source.active, .btn-gender.active { background: rgba(233, 162, 74, 0.14); color: var(--accent); border-color: rgba(233, 162, 74, 0.35); }
.btn-cons-source.active.real-active { background: rgba(245, 158, 11, 0.14); color: #fcd34d; border-color: rgba(245, 158, 11, 0.4); }
.gender-toggle-group { margin-bottom: 10px; }
.persona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.persona-card {
  display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--raise);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.persona-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.persona-card.active { border-color: var(--accent); background: rgba(233, 162, 74, 0.09); box-shadow: 0 0 0 1px rgba(233, 162, 74, 0.25); }
.persona-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.persona-avatar-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }
.persona-avatar-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--line-strong); background: #0d1424; flex: none; }
.persona-name { font-weight: 700; font-size: 0.95rem; }
.persona-desc { font-size: 0.8rem; color: var(--soft); }
.persona-specs { font-size: 0.8rem; color: var(--dim); font-family: var(--font-mono); }
.persona-badge { background: var(--gold); color: #000; font-size: 0.8rem; padding: 2px 6px; border-radius: 5px; font-weight: 800; }
.real-persona-card { grid-column: 1 / -1; }
.photo-upload-row { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.avatar-thumb-preview { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); background: #0d1424; flex: none; }
.avatar-thumb-preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.upload-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-upload-label, .btn-remove-avatar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--raise); color: var(--soft); font-size: 0.82rem; font-weight: 600;
}
.btn-upload-label:hover, .btn-remove-avatar:hover { color: var(--ink); background: rgba(255, 255, 255, 0.09); }
.btn-remove-avatar { border-color: rgba(248, 113, 113, 0.35); color: #fca5a5; }
.upload-hint { display: block; margin-top: 6px; color: var(--dim); font-size: 0.8rem; }

/* renk katmanları */
.neon-palette-container { display: flex; flex-direction: column; gap: 12px; }
.color-layer-block { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--field-c); }
.color-picker-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.color-picker-label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.color-picker-tag { font-family: var(--font-mono); font-size: 0.8rem; padding: 2px 8px; border-radius: 999px; border: 1px solid; letter-spacing: 0.06em; }
.neon-color-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.neon-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--c); border: 2px solid transparent; padding: 0; position: relative;
  box-shadow: 0 0 8px var(--c); transition: transform 0.15s, box-shadow 0.15s;
}
.neon-dot:hover { transform: scale(1.14); }
.neon-dot.active { border-color: #fff; transform: scale(1.18); box-shadow: 0 0 14px var(--c), 0 0 0 2px rgba(255, 255, 255, 0.8); }
.neon-dot.neon-dot-karisik { background: conic-gradient(from 0deg, #ff3b3b, #00e5ff, #b026ff, #39ff14, #ffea00, #ff8c00, #ff2d95, #2979ff, #ff3b3b); box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.neon-dot.neon-dot-karisik.active { box-shadow: 0 0 14px rgba(255, 255, 255, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.85); }
.neon-dot.neon-dot-none { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.neon-dot.neon-dot-none::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.45); }
.neon-dot.neon-dot-none::after { content: ""; position: absolute; top: 50%; left: 4px; right: 4px; height: 2px; background: rgba(255, 255, 255, 0.55); transform: rotate(-45deg); }
.neon-dot.neon-dot-none.active { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.btn-reset-palette { min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(233, 162, 74, 0.35); background: rgba(233, 162, 74, 0.08); color: var(--accent); font-size: 0.8rem; font-weight: 600; text-transform: none; letter-spacing: 0; font-family: var(--font-text); }
.btn-reset-palette:hover { background: rgba(233, 162, 74, 0.16); }

/* senaryo */
.imar-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.imar-pill { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raise); color: var(--soft); font-size: 0.82rem; font-weight: 600; transition: all 0.15s; }
.imar-pill:hover { color: var(--ink); }
.imar-pill.active { background: rgba(233, 162, 74, 0.14); border-color: var(--accent); color: var(--accent); }
.script-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; }
.script-header-title { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.script-variation-badge { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; background: rgba(245, 158, 11, 0.1); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); transition: box-shadow 0.4s; }
.script-variation-badge.glow { box-shadow: 0 0 14px rgba(245, 158, 11, 0.6); }
.voice-line { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; font-size: 0.86rem; }
.script-textarea { min-height: 170px; padding: 12px; line-height: 1.6; resize: vertical; font-size: 0.92rem; }
.script-tools-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.btn-tool { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--raise); color: var(--soft); font-size: 0.84rem; font-weight: 600; }
.btn-tool:hover:not(:disabled) { color: var(--ink); background: rgba(255, 255, 255, 0.09); }
.btn-tool:disabled { opacity: 0.55; cursor: progress; }
.btn-tool-variation { grid-column: 1 / -1; }
.btn-primary-voice { width: 100%; margin-top: 8px; min-height: 44px; border-radius: 10px; border: 1px solid rgba(233, 162, 74, 0.45); background: rgba(233, 162, 74, 0.1); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.btn-primary-voice:hover:not(:disabled) { background: rgba(233, 162, 74, 0.18); }
.btn-primary-voice:disabled { opacity: 0.55; cursor: progress; }

/* üret adımı */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.checklist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--field-c); font-size: 0.88rem; }
.ck-k { color: var(--dim); }
.ck-v { text-align: right; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.how { margin: 0; padding: 0; list-style: none; counter-reset: h; display: flex; flex-direction: column; gap: 10px; }
.how li { counter-increment: h; position: relative; padding-left: 30px; display: flex; flex-direction: column; font-size: 0.86rem; }
.how li::before { content: counter(h); position: absolute; left: 0; top: 1px; width: 21px; height: 21px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--soft); }
.how b { font-weight: 700; }
.how span { color: var(--dim); font-size: 0.82rem; }

.rail-cta { flex: none; padding: 12px; border-top: 1px solid var(--line); background: var(--field-d); }
.btn-submit {
  width: 100%; min-height: 52px; border: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #E9A24A, #38bdf8 55%, #60a5fa); color: var(--accent-ink);
  font-weight: 800; font-size: 0.98rem; letter-spacing: -0.005em;
  box-shadow: 0 10px 30px -10px rgba(233, 162, 74, 0.6);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(233, 162, 74, 0.75); }
.btn-submit:disabled { filter: saturate(0.6) brightness(0.85); cursor: progress; }
.cta-legal { margin: 4px 0 0; text-align: center; color: var(--dim); font-size: 0.8rem; }
.cta-legal a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.cta-legal a:hover { color: var(--ink); }
.cta-hint { margin: 8px 0 0; text-align: center; color: var(--dim); font-size: 0.8rem; }

/* danışman: hazır kartlar + isteğe bağlı kendi fotoğrafım (tek menü) */
.consultant-source-tabs[hidden] { display: none; }
#stepBody2[data-src="ai"] .only-real, #stepBody2[data-src="real"] .only-ai { display: none; }
.lock-note { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(233, 162, 74, 0.25); background: rgba(233, 162, 74, 0.06); color: var(--soft); font-size: 0.86rem; line-height: 1.5; }
.lock-note .ic { color: var(--accent); margin-top: 2px; }
.lock-note b { color: var(--ink); }
.form-input[readonly] { color: var(--soft); background: var(--field-c); border-style: dashed; cursor: not-allowed; }
.logo-thumb { display: grid; place-items: center; border-radius: 12px; background: #fff; overflow: hidden; }
.logo-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.logo-empty { color: #64748b; font-size: 0.8rem; text-align: center; padding: 4px; }

/* ---- Orta: sahne ---- */
.stage-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; outline: none; container: stage / inline-size; }
.stage-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aspect-segmented-switch { display: inline-flex; padding: 3px; border-radius: 11px; border: 1px solid var(--line); background: var(--field-b); }
.aspect-switch-btn { min-height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--soft); display: inline-flex; align-items: baseline; gap: 6px; font-size: 0.86rem; font-weight: 700; transition: all 0.15s; }
.aspect-switch-btn .btn-subtext { font-size: 0.8rem; font-weight: 500; color: var(--dim); }
.aspect-switch-btn:hover { color: var(--ink); }
.aspect-switch-btn.active { background: rgba(233, 162, 74, 0.14); border-color: rgba(233, 162, 74, 0.4); color: var(--accent); }
.aspect-switch-btn.active .btn-subtext { color: rgba(233, 162, 74, 0.75); }
.stage-status { font-size: 0.8rem; color: var(--dim); min-height: 1em; }

.stage-well { flex: 1; min-height: 0; container-type: size; display: grid; place-items: center; }
#phoneFrame, .phone-mockup {
  position: relative; overflow: hidden; background: #000;
  aspect-ratio: 9 / 16; height: min(100cqh, calc(100cqw * 16 / 9)); width: auto;
  border-radius: 26px; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(15, 23, 42, 0.85), 0 0 60px rgba(233, 162, 74, 0.1);
}
#phoneFrame.mode-16-9, .phone-mockup.mode-16-9 {
  aspect-ratio: 16 / 9; width: min(100cqw, calc(100cqh * 16 / 9)); height: auto; border-radius: 12px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.9), 0 0 0 5px rgba(15, 23, 42, 0.85), 0 0 60px rgba(233, 162, 74, 0.1);
}
.phone-speaker-slit { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: #1e293b; z-index: 60; pointer-events: none; }
#phoneFrame.mode-16-9 .phone-speaker-slit { display: none; }
.phone-mockup iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.stage-overlay { position: absolute; inset: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: rgba(4, 8, 16, 0.62); backdrop-filter: blur(3px); pointer-events: none; }
.stage-overlay[hidden] { display: none; }
.so-ring { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(233, 162, 74, 0.22); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.so-title { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.so-sub { color: var(--soft); font-size: 0.8rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* taşıma çubuğu */
.transport {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); backdrop-filter: blur(var(--glass-blur)) saturate(1.25); box-shadow: var(--rim);
}
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--raise); color: var(--soft); font-size: 0.84rem; font-weight: 600; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tool-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.09); }
.tool-btn.active { color: var(--accent); border-color: rgba(233, 162, 74, 0.4); background: rgba(233, 162, 74, 0.09); }
.tool-btn.icon-only { width: 40px; padding: 0; }
.tool-btn[hidden] { display: none !important; }
/* Pro özellikler: kilitliyken küçük kilit simgesi, kayıt sırasında nabız */
.tool-btn { position: relative; }
.tool-btn .pro-lock { display: none; width: 13px; height: 13px; position: absolute; top: 3px; right: 3px; color: var(--warn); }
.tool-btn.is-locked .pro-lock { display: block; }
.tool-btn.is-locked { color: var(--dim); }
.tool-btn.is-rec { color: #fecaca; border-color: rgba(248, 113, 113, 0.55); background: rgba(248, 113, 113, 0.12); }
.tool-btn.is-rec .tp-lbl::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--bad); animation: pulse 1.2s infinite; vertical-align: middle; }
.pro-dialog { border: 1px solid var(--line-strong); border-radius: 16px; background: #0b1222; color: var(--ink); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); }
.pro-dialog::backdrop { background: rgba(3, 6, 14, 0.7); }
.pro-box { padding: 26px 26px 22px; }
.pro-box h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin: 0 0 8px; }
.pro-box p { color: var(--soft); line-height: 1.6; margin: 0 0 16px; }
.pro-offers:empty { display: none; }
.pro-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pro-actions a { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.tp-ico { width: 20px; height: 20px; font-size: 0; display: inline-block; flex: none; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5l13 7.5-13 7.5z'/%3E%3C/svg%3E"); }
.play-btn.active .tp-ico { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='4.5' width='4.2' height='15' rx='1.2'/%3E%3Crect x='13.8' y='4.5' width='4.2' height='15' rx='1.2'/%3E%3C/svg%3E"); }
.tp-vol { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4z'/%3E%3Cpath d='M16 9l5 6M21 9l-5 6'/%3E%3C/svg%3E"); }
#btnAudioMute.active .tp-vol { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 010 7M18.5 5.5a9 9 0 010 13'/%3E%3C/svg%3E"); }
.play-btn { min-width: 118px; }
.tp-time { font-size: 0.8rem; color: var(--soft); min-width: 84px; text-align: center; white-space: nowrap; }
@container stage (max-width: 800px) {
  .transport .tp-lbl { display: none; }
  .transport .tool-btn { width: 40px; padding: 0; }
  .transport .play-btn { min-width: 40px; }
  .transport .play-btn .tp-lbl { display: none; }
}
.scrub { position: relative; flex: 1; min-width: 80px; margin: 0 8px; height: 40px; display: flex; align-items: center; cursor: pointer; touch-action: none; border-radius: 8px; }
.scrub-track { position: relative; width: 100%; height: 6px; border-radius: 6px; background: rgba(148, 176, 214, 0.2); }
.scrub-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, #E9A24A, #60a5fa); }
.scrub-thumb { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(233, 162, 74, 0.35); transition: transform 0.12s; }
.scrub:hover .scrub-thumb, .scrub:focus-visible .scrub-thumb { transform: scale(1.25); }
.scrub-marks { position: absolute; inset: 0; pointer-events: none; }
.mk { position: absolute; top: -6px; width: 2px; height: 18px; margin-left: -1px; border-radius: 2px; background: rgba(251, 191, 36, 0.85); }
.mk.sub { top: 1px; height: 4px; background: rgba(255, 255, 255, 0.5); }
.mk.poi { background: #34d399; }
.scrub-tip { position: absolute; bottom: 34px; transform: translateX(-50%); padding: 4px 8px; border-radius: 6px; background: #0d1424; border: 1px solid var(--line-strong); font-size: 0.8rem; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; pointer-events: none; z-index: 5; }
.vol-wrap { position: relative; }
.vol-pop { position: absolute; right: 0; bottom: 50px; z-index: 20; width: 300px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: #0b1222; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8); }
.vol-pop[hidden] { display: none; }
.volume-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; min-height: 36px; }
.vol-label { font-size: 0.82rem; color: var(--soft); }
.vol-val { font-size: 0.8rem; color: var(--ink); text-align: right; }
.vol-slider { width: 100%; accent-color: var(--accent); height: 28px; }

/* ---- Sağ bağlam paneli ---- */
.ctx { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ctx-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); backdrop-filter: blur(var(--glass-blur)) saturate(1.25); box-shadow: var(--rim); padding: 14px 14px 12px; flex: none; }
.ctx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ctx-head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.32rem; letter-spacing: -0.01em; }
.val-badge { font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--soft); white-space: nowrap; }
.val-badge[data-state="solved"] { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.09); }
.val-badge[data-state="benchmark"] { color: #fde68a; border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); }
.val-badge[data-state="cache"] { color: #bfdbfe; border-color: rgba(96, 165, 250, 0.45); background: rgba(96, 165, 250, 0.08); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.td-key { color: var(--dim); font-size: 0.82rem; width: 42%; }
.td-val { text-align: right; font-size: 0.88rem; font-weight: 600; word-break: break-word; }
.val-highlight { color: var(--accent); }
.src-detail { font-size: 0.84rem; display: flex; flex-direction: column; gap: 8px; }
.src-detail p { margin: 0; }
.src-line { display: flex; justify-content: space-between; gap: 12px; }
.src-line .k { color: var(--dim); }
.src-line .v { text-align: right; font-weight: 600; }
.src-note { color: var(--soft); font-size: 0.82rem; padding: 8px 10px; border-radius: 9px; background: var(--raise); border: 1px solid var(--line); }
.chk { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.chk .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.chk.yes { color: #a7f3d0; }
.chk.no { color: #fecaca; }
.poi-radar-list { display: flex; flex-direction: column; gap: 6px; }
.poi-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); }
.poi-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.poi-icon { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; font-size: 0.95rem; }
.icon-hospital { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.icon-highway { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-education { background: rgba(122, 162, 214, 0.15); color: #60a5fa; }
.icon-center { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-airport { background: rgba(139, 92, 246, 0.15); color: #c084fc; }
.poi-name-text { font-size: 0.86rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.poi-sub-text { font-size: 0.8rem; color: var(--dim); }
.poi-stats { text-align: right; flex: none; }
.poi-dist { font-family: var(--font-mono); font-size: 0.84rem; font-weight: 700; }
.poi-time { font-size: 0.8rem; color: var(--warn); font-weight: 600; }

/* ---- Alt: üretim hattı şeridi ---- */
.pipeline {
  flex: none; min-height: var(--pipe-h); display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: 1fr 3px; column-gap: 16px;
  padding: 10px 16px 0; border-top: 1px solid var(--line); background: var(--bar-bg2); backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
}
.pl-meta { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.pl-title { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.pl-state { font-size: 0.8rem; color: var(--soft); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pipeline[data-state="running"] .pl-state { color: var(--accent); }
.pipeline[data-state="done"] .pl-state { color: var(--ok); }
.pipeline[data-state="failed"] .pl-state { color: var(--bad); }
.pl-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; }
.pl-stages li { position: relative; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 4px 10px 4px 0; min-width: 0; }
.pl-dot { grid-row: 1 / 3; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: all 0.25s; }
.pl-name { font-weight: 700; font-size: 0.88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-sub { color: var(--dim); font-size: 0.8rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-stages li.is-active .pl-dot { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.pl-stages li.is-active .pl-name { color: var(--accent); }
.pl-stages li.is-done .pl-dot { border-color: var(--ok); background: rgba(52, 211, 153, 0.18); }
.pl-stages li.is-done .pl-dot::after { content: ""; width: 6px; height: 10px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.pl-stages li.is-done .pl-sub { color: var(--soft); }
.pl-stages li.is-failed .pl-dot { border-color: var(--bad); background: rgba(248, 113, 113, 0.18); }
.pl-stages li.is-failed .pl-name { color: var(--bad); }
.pl-bar { grid-column: 1 / -1; height: 3px; margin: 0 -16px; background: transparent; }
.pl-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #E9A24A, #60a5fa); transition: width 0.5s ease; }
.pipeline[data-state="failed"] .pl-bar-fill { background: var(--bad); }
.pipeline[data-state="done"] .pl-bar-fill { background: var(--ok); }

/* ---- Komut paleti ---- */
.palette { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding-top: 14vh; }
.palette[hidden] { display: none; }
.palette-scrim { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.66); backdrop-filter: blur(6px); }
.palette-box { position: relative; width: min(620px, calc(100vw - 24px)); max-height: 66vh; display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--line-strong); background: #0a1120; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); overflow: hidden; }
.palette-in { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--dim); }
.palette-in input { flex: 1; min-height: 54px; background: transparent; border: 0; outline: none; font-size: 1.02rem; color: var(--ink); }
#paletteList { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.pl-group { padding: 10px 12px 4px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.pl-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-size: 0.92rem; }
.pl-item .hint { color: var(--dim); font-size: 0.8rem; font-family: var(--font-mono); }
.pl-item[aria-selected="true"] { background: rgba(233, 162, 74, 0.12); color: var(--accent); }
.pl-empty { padding: 20px; text-align: center; color: var(--dim); }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.8rem; }

/* ---- Bildirimler ---- */
.toasts { position: fixed; right: 16px; top: calc(var(--topbar-h) + 12px); z-index: 150; display: flex; flex-direction: column; gap: 8px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 4px 1fr auto; gap: 12px; align-items: start; padding: 12px 12px 12px 0; border-radius: 12px; border: 1px solid var(--line-strong); background: #0b1222; box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.85); animation: toastIn 0.28s ease; overflow: hidden; }
.toast::before { content: ""; align-self: stretch; background: var(--info); border-radius: 0 4px 4px 0; }
.toast[data-kind="error"]::before { background: var(--bad); }
.toast[data-kind="warn"]::before { background: var(--warn); }
.toast[data-kind="ok"]::before { background: var(--ok); }
.toast .t-title { font-weight: 700; font-size: 0.92rem; }
.toast .t-msg { color: var(--soft); font-size: 0.86rem; margin-top: 2px; }
.toast .t-x { border: 0; background: transparent; color: var(--dim); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.toast .t-x:hover { color: var(--ink); background: var(--raise); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all 0.25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- Duyarlılık ---- */
@media (max-width: 1360px) {
  :root { --rail-w: 372px; --ctx-w: 0px; }
  .studio-container { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .ctx { position: fixed; z-index: 90; right: 12px; top: calc(var(--topbar-h) + 10px); bottom: calc(var(--pipe-h) + 10px); width: min(360px, calc(100vw - 24px)); padding: 10px; border-radius: var(--r); border: 1px solid var(--line-strong); background: #080e1c; box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.9); }
  .studio-container:not(.ctx-open) .ctx { display: none; }
  .studio-container.ctx-closed { grid-template-columns: var(--rail-w) minmax(0, 1fr); }
  .hide-md { display: none; }
  .brand-sub { display: none; }
  .kbd-hint .kbd-text { display: none; }
}
@media (max-width: 1180px) {
  .crumbs { display: none; }
  .src-badge { max-width: 220px; }
  .pl-sub { display: none; }
  .pipeline { grid-template-columns: 190px minmax(0, 1fr); }
  .tp-lbl { display: none; }
  .play-btn { min-width: 44px; }
  .play-btn .tp-lbl { display: none; }
}
@media (max-width: 960px) {
  body.studio-body { height: auto; min-height: 100dvh; overflow: auto; }
  .topbar { position: sticky; top: 0; z-index: 100; padding: 0 12px; gap: 10px; }
  .brand-name { white-space: nowrap; }
  .src-badge { max-width: 190px; min-height: 36px; }
  .top-actions { gap: 6px; }
  .top-actions .btn-ghost:not(.kbd-hint):not(.tm-btn):not(#btnCtxToggle):not(#btnAmbient):not([data-theme-toggle]) { display: none; }
  .top-actions .btn-ghost[href="/"] { display: inline-flex; width: 40px; padding: 0; }
  .kbd-hint { width: 40px; padding: 0; }
  .kbd-hint kbd, .kbd-hint .kbd-text { display: none; }
  #btnCtxToggle { display: none; }
  .studio-container, .studio-container.ctx-closed { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 132px; overflow: visible; }
  .stage-col { order: -1; position: sticky; top: var(--topbar-h); z-index: 50; padding: 8px 0 4px; background: linear-gradient(rgba(7, 10, 18, 0.5) 90%, rgba(7, 10, 18, 0)); height: min(64dvh, 600px); flex: none; container: none; }
  .stage-head { gap: 8px; }
  .rail { overflow: visible; border-radius: var(--r); }
  .steps { overflow: visible; }
  .ctx, .studio-container:not(.ctx-open) .ctx { display: flex; position: static; width: auto; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .rail-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bar-solid); backdrop-filter: blur(16px); border-top: 1px solid var(--line-strong); }
  .cta-hint, .cta-legal { display: none; }
  .pipeline { position: static; padding: 10px 12px 6px; grid-template-columns: 1fr; row-gap: 6px; border-top: 0; }
  .pl-meta { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .pl-stages { grid-template-columns: repeat(5, auto); justify-content: space-between; }
  .pl-stages li { grid-template-columns: 22px; }
  .pl-stages .pl-name, .pl-stages .pl-sub { display: none; }
  .toasts { top: auto; bottom: 84px; right: 12px; }
  .vol-pop { right: auto; left: 0; }
  .transport { flex-wrap: wrap; gap: 6px 8px; padding: 6px 8px; justify-content: space-between; }
  .tp-time { display: none; }
  .scrub { order: -1; flex: 1 1 100%; margin: 0; height: 32px; }
  .transport .tp-lbl { display: none; }
  .transport .tool-btn { width: 44px; padding: 0; min-height: 44px; }
  .transport .play-btn { min-width: 44px; }
  .vol-pop { width: min(300px, calc(100vw - 40px)); }
  .aspect-switch-btn { min-height: 40px; }
  .stage-status { display: none; }
}
@media (pointer: coarse) {
  /* WCAG 2.5.5 (AAA): dokunma hedefleri en az 44×44 px */
  .neon-dot { width: 44px; height: 44px; }
  .neon-color-grid { gap: 6px; }
  .btn-reset-palette, .tool-btn, .btn-ghost, .imar-pill, .btn-tool, .btn-upload-label, .btn-remove-avatar, .btn-gender, .btn-cons-source, .btn-next, .btn-primary-voice, .aspect-switch-btn, .form-select, .form-input, .toast .t-x, .scrub { min-height: 44px; }
  .toast .t-x { min-width: 44px; }
  .src-badge { min-height: 44px; }
  .btn-ghost.icon-only, .kbd-hint, .btn-ghost { min-width: 44px; }
  .vol-slider { height: 44px; }
  .scrub { height: 44px; }
  .step-head { min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Kart düzenleyici */
.btn-hud-edit { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(233, 162, 74, 0.45); background: linear-gradient(135deg, rgba(233, 162, 74, 0.16), rgba(96, 165, 250, 0.1)); color: var(--ink); min-height: 44px; transition: transform 0.15s, border-color 0.15s; }
.btn-hud-edit:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn-hud-edit .ic { width: 22px; height: 22px; color: var(--accent); flex: none; }
.btn-hud-edit b { display: block; font-size: 0.92rem; }
.btn-hud-edit small { display: block; color: var(--soft); font-size: 0.74rem; margin-top: 2px; }
.btn-hud-edit[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233, 162, 74, 0.2); }
.hud-editor { position: fixed; z-index: 120; right: 18px; top: 68px; width: min(340px, calc(100vw - 24px)); max-height: calc(100vh - 150px); overflow: auto; padding: 14px 14px 12px; border-radius: 16px; border: 1px solid var(--line-strong); background: #0b1222; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9); color: var(--ink); }
.hud-editor[hidden] { display: none; }
.he-head { display: flex; justify-content: space-between; align-items: flex-start; }
.he-head b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.he-head small { display: block; color: var(--dim); font-size: 0.72rem; }
.he-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); color: var(--soft); font-size: 1.3rem; }
.he-hint { color: var(--soft); font-size: 0.78rem; line-height: 1.5; margin: 4px 0 10px; }
.he-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: 10px; }
.he-tab { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); color: var(--soft); font-size: 0.8rem; font-weight: 600; }
.he-tab.on { color: var(--accent); border-color: rgba(233, 162, 74, 0.55); background: rgba(233, 162, 74, 0.1); }
.he-tab:disabled { opacity: 0.4; }
.he-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; margin: 8px 0; }
.he-row label { color: var(--soft); font-size: 0.78rem; }
.he-row input[type="range"] { width: 100%; height: 32px; accent-color: var(--accent); }
.he-row output { color: var(--ink); font-size: 0.78rem; min-width: 42px; text-align: right; }
.he-colors .he-row { grid-template-columns: 52px 1fr; }
.he-sw { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.he-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); padding: 0; }
.he-dot.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(233, 162, 74, 0.3); }
.he-custom { width: 32px; height: 32px; border: 0; background: none; padding: 0; }
.he-warn { color: var(--warn); font-size: 0.74rem; margin: 2px 0 6px; }
.he-sub { color: var(--dim); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 10px 0 6px; }
.he-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.he-preset { display: grid; grid-template-columns: 22px 22px 1fr; gap: 6px; align-items: center; min-height: 44px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); color: var(--soft); font-size: 0.72rem; text-align: left; }
.he-preset i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); }
.he-preset i:nth-child(1) { background: var(--a); }
.he-preset i:nth-child(2) { background: var(--b); }
.he-preset:hover { color: var(--ink); border-color: var(--line-strong); }
.he-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.he-actions .btn-ghost { flex: 1; font-size: 0.74rem; justify-content: center; }
.he-actions .btn-primary-voice { flex: 0 0 100%; margin-top: 2px; }
@media (max-width: 900px) { .hud-editor { right: 8px; left: 8px; top: auto; bottom: 70px; width: auto; max-height: 60vh; } }
@media (pointer: coarse) { .he-dot, .he-custom, .he-x { width: 44px; height: 44px; } .he-row input[type="range"] { height: 44px; } }

/* Arka plan temizleme */
.btn-bg-remove { border-color: rgba(233, 162, 74, 0.5); color: var(--accent); }
.btn-bg-remove.is-busy { opacity: 0.8; cursor: progress; }
.bg-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 16px; }
.bg-cmp figure { margin: 0; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: #0d1424; }
.bg-cmp img { display: block; width: 100%; height: 240px; object-fit: contain; }
.bg-cmp figcaption { padding: 6px 10px; font-size: 0.72rem; color: var(--soft); border-top: 1px solid var(--line); }
.bg-cmp .checker { background: repeating-conic-gradient(#1b2438 0% 25%, #263149 0% 50%) 50% / 16px 16px; }
.bg-dialog { width: min(560px, calc(100vw - 32px)); }

/* ============================ AÇIK TEMA (html[data-theme="light"]) ============================ */
.th-sun { display: none; } .th-moon { display: block; }
html[data-theme="light"] .th-sun { display: block; } html[data-theme="light"] .th-moon { display: none; }
/* düğme, GEÇİLECEK temanın simgesini gösterir: koyuda güneş, açıkta ay */
html:not([data-theme="light"]) .th-moon { display: none; } html:not([data-theme="light"]) .th-sun { display: block; }
html[data-theme="light"] .th-moon { display: block; } html[data-theme="light"] .th-sun { display: none; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #e9eff8; --ink: #0b1224; --soft: #33445f; --dim: #506179;
  --line: rgba(15, 23, 42, 0.16); --line-strong: rgba(15, 23, 42, 0.32); --raise: rgba(15, 23, 42, 0.05);
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 0 0 1px rgba(15, 23, 42, 0.03);
  --accent: #0e7490; --accent-ink: #ffffff; --ok: #047857; --warn: #b45309; --bad: #b91c1c; --info: #1d4ed8;
}
html[data-theme="light"] body.studio-body {
  --surface: rgba(255, 255, 255, var(--glass-a)); --surface-2: rgba(244, 247, 252, var(--glass-a));
  --field-a: rgba(255, 255, 255, 0.9); --field-b: rgba(15, 23, 42, 0.07); --field-c: rgba(15, 23, 42, 0.05); --field-d: rgba(255, 255, 255, 0.75);
  --bar-bg: rgba(255, 255, 255, calc(var(--glass-a) + 0.15)); --bar-bg2: rgba(255, 255, 255, calc(var(--glass-a) + 0.2)); --bar-solid: rgba(246, 248, 252, 0.96);
  background: radial-gradient(1100px 600px at 78% -10%, rgba(14, 116, 144, 0.12), transparent 60%), radial-gradient(900px 600px at 5% 110%, rgba(59, 130, 246, 0.12), transparent 60%), var(--bg);
}
html[data-theme="light"] #skyFx { display: none !important; }
html[data-theme="light"] .pro-dialog, html[data-theme="light"] .hud-editor, html[data-theme="light"] .palette-box, html[data-theme="light"] .toast,
html[data-theme="light"] .vol-pop, html[data-theme="light"] .scrub-tip { background: #ffffff; color: var(--ink); box-shadow: 0 24px 60px -18px rgba(15, 23, 42, 0.35); }
html[data-theme="light"] .pro-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
html[data-theme="light"] .form-select option { background: #ffffff; color: #0b1224; }
html[data-theme="light"] .avatar-thumb-preview, html[data-theme="light"] .persona-avatar-img, html[data-theme="light"] .bg-cmp figure { background: #e2e8f0; }
html[data-theme="light"] .bg-cmp .checker { background: repeating-conic-gradient(#e5eaf3 0% 25%, #cfd8e6 0% 50%) 50% / 16px 16px; }
html[data-theme="light"] .logo-empty { color: #475569; }
html[data-theme="light"] .src-badge[data-state="solved"], html[data-theme="light"] .val-badge[data-state="solved"], html[data-theme="light"] .chk.yes { color: #065f46; border-color: rgba(4, 120, 87, 0.5); background: rgba(4, 120, 87, 0.1); }
html[data-theme="light"] .src-badge[data-state="benchmark"], html[data-theme="light"] .val-badge[data-state="benchmark"] { color: #92400e; border-color: rgba(180, 83, 9, 0.5); background: rgba(180, 83, 9, 0.1); }
html[data-theme="light"] .src-badge[data-state="unknown"], html[data-theme="light"] .chk.no, html[data-theme="light"] .btn-remove-avatar { color: #991b1b; }
html[data-theme="light"] .btn-cons-source.active.real-active, html[data-theme="light"] .script-variation-badge { color: #92400e; }
html[data-theme="light"] .tool-btn.is-rec { color: #991b1b; }
html[data-theme="light"] .tool-btn:hover { background: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .stage-col { background: linear-gradient(#e9eff8 90%, rgba(233, 239, 248, 0)); }
html[data-theme="light"] .topbar, html[data-theme="light"] .rail, html[data-theme="light"] .ctx-card, html[data-theme="light"] .transport, html[data-theme="light"] .pipeline { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 30px -18px rgba(15, 23, 42, 0.25); }
html[data-theme="light"] .btn-primary-voice, html[data-theme="light"] .btn-hud-edit { color: #0b3d4a; }
html[data-theme="light"] .ctx { background: #ffffff; }
html[data-theme="light"] .rail-cta { border-color: var(--line); }
html[data-theme="light"] .card-tag { color: #1e40af; background: rgba(29, 78, 216, 0.08); border-color: rgba(29, 78, 216, 0.4); }
html[data-theme="light"] .aspect-switch-btn.active, html[data-theme="light"] .btn-cons-source.active, html[data-theme="light"] .btn-gender.active, html[data-theme="light"] .he-tab.on { color: #0b4f61; }
html[data-theme="light"] .aspect-switch-btn.active .btn-subtext { color: #0b4f61; }
html[data-theme="light"] .color-picker-tag { color: #0b1224 !important; background: rgba(15, 23, 42, 0.05) !important; }
html[data-theme="light"] .btn-bg-remove { color: #0b4f61; }
.rd-prev { margin: 10px 0 14px; border-radius: 12px; overflow: hidden; background: #05080f; max-height: 46vh; display: grid; place-items: center; border: 1px solid var(--line); }
.rd-prev video, .rd-prev img { max-width: 100%; max-height: 46vh; display: block; }
.rd-note { font-size: 0.72rem; color: var(--dim); margin: 12px 0 0 !important; }
.ready-dialog { width: min(480px, calc(100vw - 32px)); }

/* ---- AÇIK TEMA: premium katman (atmosfer, havada duran paneller, okunaklı metin) ---- */
@keyframes st-cloud { 0% { transform: translate3d(-3%, -2%, 0) scale(1); } 50% { transform: translate3d(3%, 2%, 0) scale(1.07); } 100% { transform: translate3d(-1%, 3%, 0) scale(1.03); } }
html[data-theme="light"] { --soft: #2a3a55; --dim: #465670; --line: rgba(15, 23, 42, 0.13); }
html[data-theme="light"] body.studio-body {
  --surface: rgba(255, 255, 255, calc(var(--glass-a) + 0.22)); --surface-2: rgba(246, 249, 253, calc(var(--glass-a) + 0.25));
  background:
    radial-gradient(1100px 640px at 82% -6%, rgba(56, 189, 248, 0.22), transparent 62%),
    radial-gradient(900px 600px at 2% 104%, rgba(99, 102, 241, 0.13), transparent 62%),
    radial-gradient(900px 600px at 96% 96%, rgba(45, 212, 191, 0.14), transparent 62%),
    linear-gradient(180deg, #f5f8fd, #e9f0f9);
}
html[data-theme="light"] body.studio-body { isolation: isolate; }
html[data-theme="light"] body.studio-body::before, html[data-theme="light"] body.studio-body::after { content: ""; position: fixed; inset: -6%; z-index: -1; pointer-events: none; will-change: transform; }
html[data-theme="light"] body.studio-body::before {
  background: radial-gradient(34vmax 28vmax at 16% 24%, rgba(125, 211, 252, 0.42), transparent 70%), radial-gradient(30vmax 26vmax at 84% 18%, rgba(196, 181, 253, 0.32), transparent 70%);
  filter: blur(30px); animation: st-cloud 52s ease-in-out infinite alternate;
}
html[data-theme="light"] body.studio-body::after {
  background: radial-gradient(36vmax 28vmax at 70% 92%, rgba(153, 246, 228, 0.36), transparent 70%), radial-gradient(28vmax 22vmax at 6% 84%, rgba(253, 230, 138, 0.26), transparent 70%);
  filter: blur(30px); animation: st-cloud 68s ease-in-out infinite alternate-reverse;
}
/* kadastro çizgileri: çok soluk, parsel sınırı motifi */
html[data-theme="light"] .topbar, html[data-theme="light"] .rail, html[data-theme="light"] .ctx-card, html[data-theme="light"] .transport, html[data-theme="light"] .pipeline {
  border: 1px solid rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(1.35); -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 22px -10px rgba(15, 23, 42, 0.12), 0 36px 60px -30px rgba(15, 23, 42, 0.22), 0 44px 70px -50px rgba(14, 116, 144, 0.32), inset 0 1px 0 #ffffff;
}
html[data-theme="light"] .topbar { border-radius: 0; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 14px 30px -18px rgba(15, 23, 42, 0.22), inset 0 -1px 0 rgba(255,255,255,0.9); }
html[data-theme="light"] .pipeline { border-radius: 0; box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.06), 0 -14px 30px -18px rgba(15, 23, 42, 0.18), inset 0 1px 0 #fff; }
html[data-theme="light"] .form-input, html[data-theme="light"] .form-select, html[data-theme="light"] textarea.form-input { background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.07), 0 1px 0 #fff; border-color: rgba(15, 23, 42, 0.16); }
html[data-theme="light"] .persona-card, html[data-theme="light"] .preset-pill, html[data-theme="light"] .qs-card { background: rgba(255, 255, 255, 0.78); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 18px -12px rgba(15, 23, 42, 0.2), inset 0 1px 0 #fff; }
html[data-theme="light"] .persona-card.active, html[data-theme="light"] .preset-pill.active { background: linear-gradient(165deg, rgba(224, 247, 252, 0.95), rgba(255, 255, 255, 0.85)); border-color: rgba(14, 116, 144, 0.55); }
html[data-theme="light"] .tool-btn, html[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.82); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.07), 0 6px 12px -8px rgba(15, 23, 42, 0.2), inset 0 1px 0 #fff; }
html[data-theme="light"] .tool-btn.active { background: linear-gradient(165deg, rgba(224, 247, 252, 0.98), rgba(255, 255, 255, 0.9)); }
html[data-theme="light"] .phone-frame, html[data-theme="light"] #phoneFrame { filter: drop-shadow(0 40px 50px rgba(15, 23, 42, 0.32)) drop-shadow(0 10px 16px rgba(15, 23, 42, 0.16)); }
html[data-theme="light"] .rail-cta { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(18px); box-shadow: 0 -12px 26px -18px rgba(15, 23, 42, 0.25); }
html[data-theme="light"] .btn-primary-voice { background: linear-gradient(165deg, #ecfeff, #d5f3fa); box-shadow: 0 1px 2px rgba(15,23,42,0.08), 0 10px 20px -10px rgba(14,116,144,0.5), inset 0 1px 0 #fff; }
html[data-theme="light"] .hud-editor, html[data-theme="light"] .pro-dialog, html[data-theme="light"] .palette-box, html[data-theme="light"] .toast, html[data-theme="light"] .vol-pop { box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.07), 0 2px 4px rgba(15, 23, 42, 0.06), 0 30px 70px -18px rgba(15, 23, 42, 0.38), inset 0 1px 0 #fff; }
html[data-theme="light"] .brand-name, html[data-theme="light"] .ctx-head h2, html[data-theme="light"] .step-head .step-title { text-shadow: 0 1px 0 #fff; }
html[data-theme="light"] .pl-title, html[data-theme="light"] .brand-sub, html[data-theme="light"] .pl-sub { color: #3b4c66; }

/* Açık tema: gerçek video (sabah sisi altında parseller) + okunurluk perdesi. Panel cam bulanıklığı videonun üstünde çalışır. */
html[data-theme="light"] body[data-ambient="on"] .ambient { opacity: 0.85; }
html[data-theme="light"] body[data-ambient="on"][data-busy="1"]:not([data-ambient-paused="1"]) .ambient { opacity: 1; }
html[data-theme="light"] body[data-ambient="on"][data-ambient-paused="1"] .ambient { opacity: 0.75; }
html[data-theme="light"] .ambient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244, 247, 252, 0.34) 0%, rgba(236, 243, 251, 0.14) 45%, rgba(233, 240, 249, 0.40) 100%); }
html[data-theme="light"] body.studio-body::before, html[data-theme="light"] body.studio-body::after { display: none; }

/* İlan doğrulama göstergesi (EİDS mührü) katmanı: önizleme çerçevesinin sağ üstü; pointer-events yok */
.seal-layer { position: absolute; z-index: 40; left: 79.5%; top: 21%; width: 36%; container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; pointer-events: none; }
body.hud-editing .seal-layer:not([hidden]) { pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: 2px dashed rgba(34, 211, 238, 0.95); outline-offset: 4px; }
body.hud-editing .seal-layer.hud-selected { outline-style: solid; outline-color: #22d3ee; box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.22); }
body.hud-editing .seal-layer:active { cursor: grabbing; }
.seal-layer[hidden] { display: none; }
.seal-canvas, .seal-fb { width: 70%; aspect-ratio: 1; display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)); }
.seal-fb { object-fit: contain; }
.seal-fb[hidden], .seal-canvas[hidden] { display: none; }
/* Numara bloğu: etiket (sağa yaslı) + değer (sola yaslı) iki sütun; mührün altında ortalı, kurumsal ve hizalı. Yazı mührün genişliğiyle orantılı (cqw), --nf ile uzun numarada küçülür. */
.seal-nums { display: grid; grid-template-columns: max-content max-content; justify-content: center; justify-self: start; /* mühürden geniş olsa da mührün altında ORTALI: marj seal.js place() içinde hesaplanır (grid taşmada başa yaslar) */ column-gap: 0.55em; row-gap: 0.14em; width: max-content; max-width: none; white-space: nowrap; font-family: var(--font-mono); font-size: calc(7.6cqw * var(--nf, 1)); font-weight: 500; line-height: 1.25; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
.seal-nums .sn-row { display: contents; }
.seal-nums .sn-row[hidden] { display: none; }
.seal-nums i { font-style: normal; text-align: right; color: rgba(232, 240, 250, 0.85); }
.seal-nums b { font-weight: 700; text-align: left; letter-spacing: 0.02em; }
#phoneFrame { container-type: inline-size; }

/* ====== v6: yazı tipi + gündüz Studio "Lacivert & Tuz + amber" (gece Studio'nun cam kenar menüleri ve arka plan videosu gündüze taşındı) ====== */
.brand-name, .ctx-head h2, .step-head .step-title, .rd-title, h1, h2 { font-weight: 700; letter-spacing: -0.02em; }
html[data-theme="light"] {
  --bg: #E9EFF4; --ink: #0B1F35; --soft: #2A3D54; --dim: #4A5C72; --line: rgba(11, 31, 53, 0.16); --line-strong: rgba(11, 31, 53, 0.32);
  --accent: #0E2A47; --accent-ink: #ffffff; --gold: #D9903A; --amber: #D9903A; --amber-ink: #9A5A0E;
}
html[data-theme="light"] body.studio-body {
  background:
    radial-gradient(1000px 620px at 88% -8%, rgba(217, 144, 58, 0.16), transparent 62%),
    radial-gradient(900px 600px at 0% 108%, rgba(14, 42, 71, 0.14), transparent 62%),
    linear-gradient(180deg, #F3F6F8, #E6ECF1);
}
/* buzlu cam: gecedeki gibi rail/ctx/transport/pipeline; kenarda ince lacivert çizgi + üstte parlak kenar, altta amber ışıma */
html[data-theme="light"] .topbar, html[data-theme="light"] .rail, html[data-theme="light"] .ctx-card, html[data-theme="light"] .transport, html[data-theme="light"] .pipeline {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.46));
  backdrop-filter: blur(24px) saturate(1.45); -webkit-backdrop-filter: blur(24px) saturate(1.45);
  box-shadow: 0 0 0 1px rgba(11, 31, 53, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 26px -12px rgba(11, 31, 53, 0.16), 0 40px 60px -34px rgba(11, 31, 53, 0.3), 0 46px 70px -52px rgba(217, 144, 58, 0.4);
}
html[data-theme="light"] .topbar, html[data-theme="light"] .pipeline { background: rgba(255, 255, 255, 0.7); }
html[data-theme="light"] .btn-primary-voice, html[data-theme="light"] .btn-launch { background: linear-gradient(180deg, #F2B15C, #D9903A); color: #1B1204; border: 0; box-shadow: 0 14px 26px -12px rgba(217, 144, 58, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
html[data-theme="light"] .persona-card.active, html[data-theme="light"] .preset-pill.active { background: linear-gradient(165deg, rgba(255, 244, 226, 0.96), rgba(255, 255, 255, 0.86)); border-color: rgba(217, 144, 58, 0.7); box-shadow: 0 12px 22px -12px rgba(217, 144, 58, 0.55), inset 0 1px 0 #fff; }
html[data-theme="light"] .tool-btn.active { background: linear-gradient(165deg, rgba(255, 244, 226, 0.98), rgba(255, 255, 255, 0.9)); border-color: rgba(217, 144, 58, 0.6); }
/* kartlar/düğmeler: fare ve dokunmada havaya kalkar, altı hafif ışıldar */
html[data-theme="light"] :is(.persona-card, .preset-pill, .qs-card, .tool-btn, .ctx-card) { transition: translate 300ms cubic-bezier(.2, .8, .2, 1), box-shadow 300ms ease, border-color 220ms ease; }
@media (hover: hover) { html[data-theme="light"] :is(.persona-card, .preset-pill, .qs-card, .tool-btn):hover { translate: 0 -4px; border-color: rgba(217, 144, 58, 0.65); box-shadow: 0 16px 24px -12px rgba(217, 144, 58, 0.6), 0 20px 34px -22px rgba(11, 31, 53, 0.35), inset 0 1px 0 #fff; } }
html[data-theme="light"] :is(.persona-card, .preset-pill, .qs-card, .tool-btn):active { translate: 0 -2px; box-shadow: 0 10px 18px -10px rgba(217, 144, 58, 0.6), inset 0 1px 0 #fff; }
@media (prefers-reduced-motion: reduce) { html[data-theme="light"] :is(.persona-card, .preset-pill, .qs-card, .tool-btn):is(:hover, :active) { translate: none; } }
html[data-theme="light"] .ambient::after { background: linear-gradient(180deg, rgba(243, 246, 248, 0.30) 0%, rgba(230, 236, 241, 0.10) 45%, rgba(230, 236, 241, 0.36) 100%); }
html[data-theme="light"] :focus-visible { outline-color: #D9903A; }
html[data-theme="light"] .btn-submit { background: linear-gradient(180deg, #F2B15C, #D9903A) !important; color: #1B1204 !important; border: 0; box-shadow: 0 14px 26px -12px rgba(217, 144, 58, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important; }
html[data-theme="light"] .btn-primary-voice, html[data-theme="light"] .btn-hud-edit { color: #0B1F35; }

/* ====== v7: gündüz Studio = gece Studio'nun buzlu camı (beyaz perde YOK, arka plan videosu görünür) ====== */
html[data-theme="light"] .stage-col { background: transparent; }
html[data-theme="light"] .ctx { background: transparent; }
html[data-theme="light"] .ambient::after { display: none; }
html[data-theme="light"] body[data-ambient="on"] .ambient, html[data-theme="light"] body[data-ambient="on"][data-ambient-paused="1"] .ambient { opacity: 1; }
html[data-theme="light"] body.studio-body {
  --surface: rgba(255, 255, 255, calc(var(--glass-a) * 0.62)); --surface-2: rgba(244, 248, 252, calc(var(--glass-a) * 0.7));
  --bar-bg: rgba(255, 255, 255, calc(var(--glass-a) * 0.66)); --bar-bg2: rgba(255, 255, 255, calc(var(--glass-a) * 0.7)); --glass-blur: 16px;
}
html[data-theme="light"] .topbar, html[data-theme="light"] .rail, html[data-theme="light"] .ctx-card, html[data-theme="light"] .transport, html[data-theme="light"] .pipeline {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5) brightness(1.04); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5) brightness(1.04);
  box-shadow: 0 0 0 1px rgba(11, 31, 53, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 34px -18px rgba(11, 31, 53, 0.35);
}
html[data-theme="light"] .topbar { background: var(--bar-bg); } html[data-theme="light"] .pipeline { background: var(--bar-bg2); }
html[data-theme="light"] .rail-cta { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
html[data-theme="light"] .ctx-card .src-detail, html[data-theme="light"] .ctx-card .chk { backdrop-filter: none; }
@media (max-width: 1360px) { html[data-theme="light"] .ctx { background: rgba(255, 255, 255, 0.62); backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); } }
@media (max-width: 960px) { html[data-theme="light"] .stage-col { background: linear-gradient(rgba(233, 239, 244, 0.82) 88%, rgba(233, 239, 244, 0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } html[data-theme="light"] .ctx { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* ====== v7: GECE Studio'ya gündüzün özellikleri: amber vurgu, kart kalkışı + amber ışıma, ince amber kenar ======  */
html:not([data-theme="light"]) { --accent: #E9A24A; --amber: #E9A24A; }
html:not([data-theme="light"]) .topbar, html:not([data-theme="light"]) .rail, html:not([data-theme="light"]) .ctx-card, html:not([data-theme="light"]) .transport, html:not([data-theme="light"]) .pipeline {
  backdrop-filter: blur(var(--glass-blur)) saturate(1.4); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(233, 162, 74, 0.05), 0 22px 44px -22px rgba(0, 0, 0, 0.7);
}
html:not([data-theme="light"]) :is(.persona-card, .preset-pill, .qs-card, .tool-btn) { transition: translate 300ms cubic-bezier(.2, .8, .2, 1), box-shadow 300ms ease, border-color 220ms ease; }
@media (hover: hover) { html:not([data-theme="light"]) :is(.persona-card, .preset-pill, .qs-card, .tool-btn):hover { translate: 0 -4px; border-color: rgba(233, 162, 74, 0.6); box-shadow: 0 18px 26px -14px rgba(233, 162, 74, 0.45), 0 22px 36px -20px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.14); } }
html:not([data-theme="light"]) :is(.persona-card, .preset-pill, .qs-card, .tool-btn):active { translate: 0 -2px; }
html:not([data-theme="light"]) .persona-card.active, html:not([data-theme="light"]) .preset-pill.active { border-color: rgba(233, 162, 74, 0.7); background: linear-gradient(165deg, rgba(233, 162, 74, 0.16), rgba(255, 255, 255, 0.04)); box-shadow: 0 12px 22px -12px rgba(233, 162, 74, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
html:not([data-theme="light"]) .btn-submit { background: linear-gradient(180deg, #F2B15C, #D9903A) !important; color: #1B1204 !important; border: 0; box-shadow: 0 14px 28px -12px rgba(217, 144, 58, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important; }
html:not([data-theme="light"]) :focus-visible { outline-color: #E9A24A; }
@media (prefers-reduced-motion: reduce) { html:not([data-theme="light"]) :is(.persona-card, .preset-pill, .qs-card, .tool-btn):is(:hover, :active) { translate: none; } }
/* okunurluk: gündüz cam yüzeylerde ikincil metinler koyulaştırıldı, alt çubuk daha opak */
html[data-theme="light"] .pipeline { background: rgba(255, 255, 255, 0.66); }
html[data-theme="light"] .pl-sub, html[data-theme="light"] .pl-title, html[data-theme="light"] .pl-state { color: #1E2F45; }
html[data-theme="light"] .poi-time { color: #7A3B0A; }
html[data-theme="light"] { --dim: #34465C; --soft: #22344B; }
html[data-theme="light"] body.studio-body { --surface: rgba(255, 255, 255, calc(var(--glass-a) * 0.74)); }


/* ---- Arka plan videosu düğmesi + sabit görsel modu (video kapalı) ---- */
.amb-toggle .amb-slash { display: none; }
.amb-toggle[aria-pressed="false"] .amb-slash { display: block; }
.amb-toggle[aria-pressed="false"] { color: var(--dim); border-color: var(--line); }
.amb-toggle .ic { width: 19px; height: 19px; }
.amb-toggle[aria-pressed="true"] { color: var(--accent); border-color: rgba(233, 162, 74, 0.4); }
/* video kapalı: tema görseli (poster) tam görünür, kod animasyonu yok */
body[data-ambient="on"][data-bg="off"] .ambient { opacity: 0.9; }
html[data-theme="light"] body[data-ambient="on"][data-bg="off"] .ambient { opacity: 1; }
body[data-bg="off"] .sky-fx { opacity: 0; }
@media (max-width: 960px) {
  .top-actions .amb-toggle, .top-actions [data-theme-toggle] { display: inline-flex; width: 40px; padding: 0; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .top-actions a.btn-ghost[href="/"] { display: none; }
  .src-badge { max-width: none; min-width: 0; flex: 1 1 0; overflow: hidden; }
  .src-badge #sourceBadgeText { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 520px) { .brand { min-width: 44px; justify-content: center; } }
@media (max-width: 960px) { .pl-bar { margin: 0 -12px; } } /* telefonda üretim çubuğu 4 px yatay taşma yapıyordu (kenar boşluğu 12 px iken -16 px) */

/* Paylaşım kartı seçenekleri (hazır penceresi) */
.rd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 4px 0 10px; font-size: 0.82rem; color: var(--soft); }
.rd-share[hidden], .rd-share label[hidden], .rd-share small[hidden] { display: none; }
.rd-share label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rd-share .rd-ori { display: inline-flex; gap: 12px; }
.rd-share small { flex-basis: 100%; color: var(--dim); font-size: 0.72rem; }

/* ---- Haklarım rozeti, hoş geldin kartı, teklif kartı, kazan paneli (credits.js / offers.js) — GECE ve GÜNDÜZ temalı; yalnız transform/opacity animasyonu (yerleşim kaymaz), sabit konum (CLS 0) ---- */
body.studio-body { --cr-card: #0d1424; --cr-card2: rgba(255,255,255,.06); --cr-edge: rgba(233,162,74,.55); --cr-glow: rgba(233,162,74,.18); --cr-num: #F2B865; --cr-sub: #b9c8de; --cr-shadow: 0 30px 90px -20px rgba(0,0,0,.7); }
html[data-theme="light"] body.studio-body { --cr-card: #ffffff; --cr-card2: rgba(14,116,144,.07); --cr-edge: rgba(14,116,144,.5); --cr-glow: rgba(14,116,144,.14); --cr-num: #0b5f75; --cr-sub: #33445f; --cr-shadow: 0 24px 70px -22px rgba(15,23,42,.42); }
.cr-badge { font-weight: 800; letter-spacing: -.01em; border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); min-height: 40px; }
.cr-badge[hidden] { display: none; }
.cr-badge.is-empty { opacity: .85; }
.cr-pop { position: fixed; z-index: 9000; width: min(320px, calc(100vw - 24px)); padding: 16px; border-radius: 16px; background: var(--cr-card); border: 1px solid var(--line-strong, var(--line)); box-shadow: var(--cr-shadow); color: var(--ink); }
.cr-pop[hidden] { display: none; }
.cr-pop h3 { margin: 0 0 10px; font-size: 1rem; }
.cr-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.cr-list li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.cr-list b { font-family: var(--mono, "JetBrains Mono", monospace); }
.cr-list b.is-zero { opacity: .55; }
.cr-note, .cr-who { margin: 0 0 8px; color: var(--soft); font-size: .8rem; line-height: 1.45; }
.cr-earn, .cr-out { width: 100%; min-height: 44px; justify-content: center; margin-bottom: 6px; }
.cr-earn { background: var(--accent); color: var(--accent-ink, #1B1204); border-color: transparent; font-weight: 800; }
.cr-welcome, .op-offer { position: fixed; z-index: 9100; border-radius: 22px; overflow: hidden; color: var(--ink); background: var(--cr-card); box-shadow: var(--cr-shadow), 0 0 0 1px var(--cr-edge), 0 0 42px var(--cr-glow); animation: crIn .45s cubic-bezier(.2,.8,.2,1) both; will-change: transform, opacity; }
.cr-welcome { right: 20px; bottom: 20px; width: min(420px, calc(100vw - 24px)); padding: 22px 20px 16px; }
.op-offer { left: 20px; bottom: 20px; width: min(380px, calc(100vw - 24px)); padding: 16px 16px 14px; border-radius: 18px; z-index: 9050; }
.cr-w-glow { position: absolute; inset: -40% -20% auto auto; width: 320px; height: 320px; background: radial-gradient(closest-side, var(--cr-glow), transparent); pointer-events: none; }
.cr-w-kick { margin: 0 0 4px; color: var(--accent); font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.cr-welcome h2 { margin: 0 0 8px; font-family: var(--display, "Bricolage Grotesque", sans-serif); font-size: 1.55rem; line-height: 1.1; letter-spacing: -.02em; position: relative; }
.cr-w-sub { margin: 0 0 14px; color: var(--cr-sub); font-size: .88rem; line-height: 1.5; position: relative; }
.cr-w-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; position: relative; }
.cr-w-item { display: grid; gap: 2px; padding: 10px 8px; border-radius: 14px; background: var(--cr-card2); border: 1px solid var(--line); text-align: center; }
.cr-w-item b { font: 800 1.35rem var(--mono, "JetBrains Mono", monospace); color: var(--cr-num); }
.cr-w-item span { font-size: .78rem; font-weight: 700; }
.cr-w-item small { font-size: .68rem; color: var(--soft); }
.cr-w-go, .op-offer-cta, .op-earn .op-btn { width: 100%; min-height: 48px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink, #1B1204); font-weight: 800; font-size: 1rem; font-family: inherit; cursor: pointer; position: relative; }
.cr-w-later, .op-offer-x { display: block; margin: 8px auto 0; min-height: 44px; padding: 0 16px; background: none; border: 0; color: var(--soft); font-weight: 700; font-size: .85rem; font-family: inherit; cursor: pointer; }
.cr-w-go:focus-visible, .cr-w-later:focus-visible, .cr-badge:focus-visible, .op-offer-cta:focus-visible, .op-offer-x:focus-visible, .cr-earn:focus-visible, .op-earn button:focus-visible, .op-earn input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cr-w-foot { margin: 4px 0 0; text-align: center; color: var(--dim); font-size: .74rem; }
.op-offer h3 { margin: 0 0 6px; font-family: var(--display, "Bricolage Grotesque", sans-serif); font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; padding-right: 36px; }
.op-offer p { margin: 0 0 12px; color: var(--cr-sub); font-size: .86rem; line-height: 1.5; }
.op-offer .op-terms { font-size: .72rem; color: var(--dim); margin: 8px 0 0; }
.op-offer-close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; color: var(--soft); font-size: 1.3rem; cursor: pointer; border-radius: 12px; }
.op-offer .op-code { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.op-offer .op-code code { flex: 1; font: 800 1.05rem var(--mono, monospace); padding: 10px 12px; border-radius: 12px; background: var(--cr-card2); border: 1px dashed var(--cr-edge); letter-spacing: .04em; }
.op-offer .op-copy, .op-earn .op-copy { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong, var(--line)); background: none; color: var(--ink); font-weight: 700; cursor: pointer; }
.op-earn { width: min(560px, calc(100vw - 24px)); }
.op-earn .pro-box { padding: 22px 20px; display: grid; gap: 14px; max-height: min(86dvh, 760px); overflow: auto; }
.op-earn h2 { margin: 0; font-family: var(--display, "Bricolage Grotesque", sans-serif); font-size: 1.5rem; letter-spacing: -.02em; }
.op-earn section { padding: 14px; border-radius: 16px; background: var(--cr-card2); border: 1px solid var(--line); display: grid; gap: 10px; }
.op-earn h3 { margin: 0; font-size: 1rem; }
.op-earn p, .op-earn li { color: var(--cr-sub); font-size: .86rem; line-height: 1.5; margin: 0; }
.op-earn ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.op-earn .op-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.op-earn .op-chips span { padding: 4px 10px; border-radius: 999px; background: var(--cr-card); border: 1px solid var(--cr-edge); font-size: .76rem; font-weight: 700; color: var(--ink); }
.op-earn .op-row { display: flex; gap: 8px; }
.op-earn input { flex: 1; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong, var(--line)); background: var(--cr-card); color: var(--ink); font-weight: 500; font-size: .95rem; font-family: inherit; }
.op-earn .op-msg { font-size: .84rem; font-weight: 700; color: var(--ok, #16a34a); }
.op-earn .op-msg.is-err { color: var(--bad, #dc2626); }
.op-earn .op-actions { display: flex; justify-content: flex-end; }
.op-earn .op-close { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-strong, var(--line)); background: none; color: var(--ink); font-weight: 700; cursor: pointer; }
@keyframes crIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .cr-welcome { right: 12px; left: 12px; bottom: 12px; width: auto; } .op-offer { left: 12px; right: 12px; bottom: 12px; width: auto; } .cr-badge { padding: 0 10px; } }
@media (prefers-reduced-motion: reduce) { .cr-welcome, .op-offer { animation: none; will-change: auto; } }

/* ---- Kilitli profil fotoğrafı: başka fotoğraf yükleme/kaldırma/arka plan denetimleri gizli (profil sayfasında bir kez yapılır) ---- */
body.has-locked-photo label[for="inpAvatarUpload"], body.has-locked-photo #btnRemoveAvatar, body.has-locked-photo #btnBgRemove, body.has-locked-photo #btnBgUndo, body.has-locked-photo #bgHint { display: none !important; }

/* Belirgin hesap düğmesi: Studio üst çubuğunda kullanıcı paneline (bireysel) / ofis paneline gider */
.cr-acct { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; font-weight: 800; text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--ink); }
.cr-acct[hidden] { display: none; }
.cr-acct svg { color: var(--accent); flex: none; }
.cr-acct:hover { background: color-mix(in srgb, var(--accent) 26%, transparent); }
.cr-acct:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 520px) { .cr-acct { padding: 0 10px; } .cr-acct-t { display: none; } .cr-acct { min-width: 44px; justify-content: center; } }

/* ======== KUTLAMA KARTLARI (sanatsal sürüm): hoş geldin, fırsat kartı, kazan paneli, hak penceresi — GECE + GÜNDÜZ; yalnız transform/opacity animasyonu ======== */
html[data-theme="light"] body.studio-body { --cr-edge: rgba(217,144,58,.7); --cr-glow: rgba(217,144,58,.2); --cr-num: #8A4E08; --cr-sub: #1c2f4a; --cr-card2: rgba(14,42,71,.06); }
body.studio-body { --cr-art: linear-gradient(155deg, #0B1F35 0%, #123a5c 52%, #1c6a8a 100%); }
.opm { display: block; }
.opm svg { display: block; overflow: visible; }
.opm-bob { animation: opmBob 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.opm-prop { transform-box: fill-box; transform-origin: center; animation: opmProp .22s linear infinite; }
.opm-prop.p2 { animation-delay: -.11s; }
.opm-arm { transform-box: fill-box; animation: opmWave 1.3s ease-in-out infinite; }
.opm-arm.l { transform-origin: 90% 90%; } .opm-arm.r { transform-origin: 10% 90%; animation-delay: -.65s; }
.opm-spark path, .opm-spark circle { transform-box: fill-box; transform-origin: center; animation: opmTwinkle 1.8s ease-in-out infinite; }
.opm-spark .s2 { animation-delay: -.5s; } .opm-spark .s3 { animation-delay: -1s; } .opm-spark .s4 { animation-delay: -.3s; } .opm-spark .s5 { animation-delay: -1.3s; }
@keyframes opmBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes opmProp { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.42); } }
@keyframes opmWave { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes opmTwinkle { 0%, 100% { transform: scale(.55); opacity: .5; } 50% { transform: scale(1.15); opacity: 1; } }
.opm-cf { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; }
.opm-cf i { position: absolute; top: -16px; display: block; opacity: 0; animation-name: opmFall; animation-timing-function: cubic-bezier(.3,.6,.4,1); animation-fill-mode: both; will-change: transform, opacity; }
@keyframes opmFall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(var(--dx), 520px, 0) rotate(var(--rot)); } }

/* Hoş geldin kartı */
.cr-welcome { padding: 0; width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; border-radius: 26px; }
.cr-w-art { position: relative; height: 178px; background: radial-gradient(circle at 18% 8%, rgba(233,162,74,.5), transparent 46%), radial-gradient(circle at 92% 90%, rgba(56,189,248,.35), transparent 50%), var(--cr-art); display: grid; place-items: end center; overflow: hidden; }
.cr-w-art .opm { width: 210px; height: 143px; margin-bottom: -6px; }
.cr-w-flag, .op-earn-flag { position: absolute; left: 14px; top: 14px; z-index: 2; margin: 0; padding: 7px 13px; border-radius: 999px; background: linear-gradient(180deg, #FBD48A, #E9A24A); color: #1B1204; font-weight: 800; font-size: .86rem; font-family: var(--body, inherit); letter-spacing: .01em; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.cr-w-body { padding: 16px 20px 16px; }
.cr-welcome h2 { font-size: 1.85rem; font-weight: 800; line-height: 1.05; margin: 0 0 6px; color: var(--ink); }
.cr-w-big { margin: 0 0 6px; font-size: 1.02rem; font-weight: 800; color: var(--ink); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cr-w-big b { font: 800 2.7rem/1 var(--display, "Bricolage Grotesque", sans-serif); letter-spacing: -.04em; background: linear-gradient(180deg, #F6C46E, #E08A1F); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .cr-w-big b { background: linear-gradient(180deg, #C9740E, #8A4E08); -webkit-background-clip: text; background-clip: text; }
.cr-w-sub { color: var(--cr-sub); font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.cr-w-grid { grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cr-w-item { grid-column: span 3; padding: 10px 8px 9px; border-radius: 16px; background: var(--cr-card2); border: 1px solid var(--cr-edge); }
.cr-w-item:nth-child(-n+3) { grid-column: span 2; }
.cr-w-item em { font-style: normal; font-size: 1.5rem; line-height: 1.1; }
.cr-w-item b { font-size: 1.4rem; color: var(--cr-num); }
.cr-w-item span { font-size: .84rem; font-weight: 800; color: var(--ink); }
.cr-w-item small { font-size: .72rem; font-weight: 600; color: var(--cr-sub); }
.cr-w-go, .op-offer-cta, .op-earn .op-btn { background: linear-gradient(180deg, #FBD48A, #E9A24A); color: #1B1204; font-weight: 800; box-shadow: 0 14px 26px -14px rgba(217,144,58,.9), inset 0 1px 0 rgba(255,255,255,.55); transition: transform .18s; }
.cr-w-go:hover, .op-offer-cta:hover { transform: translateY(-2px); } .cr-w-go:active, .op-offer-cta:active { transform: scale(.98); }
.cr-w-go { font-size: 1.08rem; min-height: 52px; }
.cr-w-later, .op-offer-x { color: var(--cr-sub); font-weight: 700; }
.cr-w-foot { color: var(--cr-sub); font-size: .76rem; font-weight: 600; }
/* Fırsat kartı */
.op-offer { padding: 0 0 14px; width: min(400px, calc(100vw - 24px)); border-radius: 22px; }
.op-offer-band { position: relative; height: 78px; margin-bottom: 12px; background: radial-gradient(circle at 12% 0%, rgba(233,162,74,.5), transparent 55%), var(--cr-art); display: flex; align-items: center; gap: 10px; padding: 0 14px; overflow: hidden; }
.op-offer-emo { font-size: 2.1rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.op-offer-tag { padding: 5px 11px; border-radius: 999px; background: linear-gradient(180deg, #FBD48A, #E9A24A); color: #1B1204; font-weight: 800; font-size: .78rem; font-family: inherit; }
.op-offer-band .opm.is-mini { position: absolute; right: 30px; bottom: -14px; width: 118px; height: 80px; }
.op-offer h3, .op-offer p, .op-offer .op-terms, .op-offer-cta, .op-offer .op-code { margin-left: 16px; margin-right: 16px; }
.op-offer h3 { font-size: 1.25rem; font-weight: 800; padding-right: 0; color: var(--ink); }
.op-offer p { color: var(--cr-sub); font-weight: 600; font-size: .9rem; }
.op-offer .op-terms { color: var(--cr-sub); font-weight: 500; }
.op-offer-cta { width: calc(100% - 32px); }
.op-offer-close { z-index: 4; top: 2px; right: 2px; width: 44px; height: 44px; color: #fff; background: none; font-size: 1.2rem; }   /* dokunma alanı 44 px; görünür daire ::before */
.op-offer-close::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: rgba(0,0,0,.34); z-index: -1; }
.op-offer .op-coupon-h { font-size: 1.4rem; margin-top: 16px; }
/* Kazan paneli */
.op-earn-art { position: relative; height: 138px; margin: -22px -20px 4px; background: radial-gradient(circle at 15% 0%, rgba(233,162,74,.5), transparent 50%), var(--cr-art); display: grid; place-items: end center; overflow: hidden; border-radius: 18px 18px 0 0; }
.op-earn-art .opm { width: 164px; height: 112px; margin-bottom: -6px; }
.op-earn h2 { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.op-earn section { border: 1px solid var(--cr-edge); }
.op-earn h3 { font-size: 1.08rem; font-weight: 800; color: var(--ink); }
.op-earn p, .op-earn li { color: var(--cr-sub); font-weight: 600; }
.op-earn .op-chips span { font-size: .82rem; font-weight: 800; border: 1px solid var(--cr-edge); }
/* Hak penceresi (üst çubuk rozetinden) */
.cr-pop { padding: 18px; border-radius: 20px; }
.cr-pop h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.cr-list li { font-size: .98rem; font-weight: 700; color: var(--ink); padding: 3px 0; }
.cr-list b { font-size: 1.05rem; color: var(--cr-num); }
.cr-note, .cr-who { color: var(--cr-sub); font-weight: 600; }
body.studio-body .cr-pop .cr-earn { background: linear-gradient(180deg, #FBD48A, #E9A24A); color: #1B1204; border-color: transparent; font-weight: 800; }
body.studio-body .cr-pop .cr-panel { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-bottom: 6px; background: var(--cr-card2); color: var(--ink); border: 1px solid var(--cr-edge); text-decoration: none; font-weight: 800; border-radius: 12px; }
body.studio-body .cr-pop .cr-out { color: var(--ink); font-weight: 700; }
@media (max-width: 520px) { .cr-w-art { height: 150px; } .cr-w-art .opm { width: 176px; height: 120px; } .cr-welcome h2 { font-size: 1.55rem; } .cr-w-big b { font-size: 2.3rem; } }
@media (prefers-reduced-motion: reduce) { .opm-bob, .opm-prop, .opm-arm, .opm-spark path, .opm-spark circle, .opm-cf i { animation: none !important; } .opm-cf { display: none; } }

/* TELEFON (≤960 px): yapışkan sahne alanı artık opak DEĞİL — arka plan videosu görünür (eskiden gece temasında düz #070a12 örtü videoyu tamamen kapatıyordu; iPhone 13'te yeniden üretildi).
   Ağır bulanıklık yok (iOS'ta video üstünde büyük backdrop-filter kare hızını düşürür): hafif cam + video biraz daha görünür. */
@media (max-width: 960px) {
  body[data-ambient="on"] .ambient { opacity: 0.8; }
  body[data-ambient="on"][data-busy="1"]:not([data-ambient-paused="1"]) .ambient { opacity: 0.92; }
  body[data-ambient="on"][data-ambient-paused="1"] .ambient { opacity: 0.55; }
  html[data-theme="light"] body[data-ambient="on"] .ambient, html[data-theme="light"] body[data-ambient="on"][data-ambient-paused="1"] .ambient { opacity: 1; }
}
@media (pointer: coarse) { .aspect-switch-btn { align-items: center; } }   /* 44 px yükseklikte metin üstte kalıyordu */

/* TELEFON: oynatma çubuğu ince/hafif (iPhone 13'te kaba ve ağır duruyordu) — ilerleme çubuğu üst kenarda ince çizgi, tuşlar yumuşak; dokunma alanları (≥44 px) KORUNUR */
@media (max-width: 960px) {
  .stage-col { padding: 4px 0 2px; gap: 6px; }
  .stage-head .aspect-switch { padding: 2px; border-radius: 12px; }
  .transport { padding: 0 6px 6px; gap: 0 3px; border-radius: 18px; background: rgba(10, 16, 30, 0.4); border: 1px solid rgba(148, 176, 214, 0.16); box-shadow: none; }
  html[data-theme="light"] .transport { background: rgba(255, 255, 255, 0.5); border-color: rgba(11, 31, 53, 0.12); }
  .transport .scrub { position: relative; z-index: 0; margin: 0 4px -8px; }
  .transport .scrub-track { height: 4px; }
  .transport .scrub-thumb { width: 16px; height: 16px; margin: -8px 0 0 -8px; box-shadow: 0 0 0 4px rgba(233, 162, 74, 0.28); }
  .transport .tool-btn, .transport .play-btn { position: relative; z-index: 1; border-color: transparent; background: rgba(255, 255, 255, 0.06); border-radius: 14px; }
  html[data-theme="light"] .transport .tool-btn, html[data-theme="light"] .transport .play-btn { background: rgba(11, 31, 53, 0.06); }
  .transport .play-btn { background: rgba(233, 162, 74, 0.18); }
  .transport .tool-btn svg, .transport .play-btn svg { width: 19px; height: 19px; }
}

/* ======== TELEFON: yapışkan sahne → SABİT + kompakt mod (html.stage-compact; mobile.js) ========
   Tam durumda sahne üstte büyük; aşağı kaydırınca ya da ayar alanına dokununca 170 px'lik kompakt şeride iner (solda mini önizleme, sağda 4'lü tuş ızgarası).
   İçerik boşluğu (padding-top) yumuşakça değişir; sahne kutusu yalnızca bir kez yeniden boyutlanır (kare kare değil). */
@media (max-width: 960px) {
  :root { --stage-full: min(60dvh, 540px); --stage-compact: 172px; --stage-cur: var(--stage-full); }
  html.stage-compact { --stage-cur: var(--stage-compact); }
  html { scroll-padding-top: calc(var(--topbar-h) + var(--stage-cur) + 10px); }
  .stage-col { position: fixed; order: 0; top: var(--topbar-h); left: 12px; right: 12px; z-index: 50; height: var(--stage-cur); }
  .studio-container, .studio-container.ctx-closed { padding-top: calc(var(--stage-cur) + 10px); transition: padding-top .26s cubic-bezier(.2, .8, .2, 1); }
  html.stage-compact .stage-col { display: grid; grid-template-columns: minmax(92px, 33%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: 8px; align-items: stretch; padding: 4px 0; }
  html.stage-compact .stage-head { display: none; }
  html.stage-compact .stage-well { grid-column: 1; grid-row: 1; }
  html.stage-compact .transport { grid-column: 2; grid-row: 1; align-self: center; display: grid; grid-template-columns: repeat(4, 44px); justify-content: space-between; gap: 2px 0; padding: 0 4px 6px; }
  html.stage-compact .transport .scrub { grid-column: 1 / -1; grid-row: 1; margin: 0 2px -6px; }
  html.stage-compact .transport .tp-time { display: none; }
  html.stage-compact .transport #btnOrbit, html.stage-compact .transport #btnFocus { display: none; }
  html.stage-compact #phoneFrame { border-radius: 16px; box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.85); }
}
@media (max-width: 960px) and (prefers-reduced-motion: reduce) { .studio-container, .studio-container.ctx-closed { transition: none; } }

/* Telefon: kaydırınca içerik üst çubuğun/sahnenin ALTINDAN geçer → arkası dolgun olmalı (metin çakışması yok). Sahne tam durumda (sayfa başı) video görünsün diye şeffaf kalır. */
@media (max-width: 960px) {
  .stage-col { left: 0; right: 0; padding-left: 12px; padding-right: 12px; box-sizing: border-box; }
  html.stage-compact .stage-col { background: linear-gradient(rgba(7, 10, 18, 0.94) 92%, rgba(7, 10, 18, 0)); backdrop-filter: none; -webkit-backdrop-filter: none; }
  html[data-theme="light"].stage-compact .stage-col { background: linear-gradient(rgba(240, 245, 249, 0.94) 92%, rgba(240, 245, 249, 0)); }
  html.stage-compact .transport { grid-template-columns: repeat(3, 44px); background: transparent; border-color: transparent; padding: 0 0 0; }
  html.stage-compact .transport .scrub { margin: 0 2px -4px; }
}

/* ======== HAK PENCERESİ (premium): koyu başlık bandı + büyük toplam + emoji satırları + net üç düğme (btn-ghost DEĞİL → tema/renk paketi ezemez) ======== */
.cr-pop { width: min(340px, calc(100vw - 20px)); padding: 0; overflow: hidden; border-radius: 22px; box-shadow: var(--cr-shadow), 0 0 0 1px var(--cr-edge), 0 0 40px var(--cr-glow); }
.cr-pop-head { position: relative; padding: 16px 16px 12px; background: radial-gradient(circle at 12% 0%, rgba(233,162,74,.5), transparent 55%), var(--cr-art); color: #fff; min-height: 96px; }
.cr-pop-kick { display: inline-block; padding: 5px 11px; border-radius: 999px; background: linear-gradient(180deg, #FBD48A, #E9A24A); color: #1B1204; font-weight: 800; font-size: .8rem; font-family: inherit; }
.cr-pop-total { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.cr-pop-total b { font: 800 2.6rem/1 var(--display, "Bricolage Grotesque", sans-serif); letter-spacing: -.04em; color: #FBD48A; }
.cr-pop-total span { font-weight: 700; font-size: .9rem; color: #e6eefb; }
.cr-pop-head .opm.is-pop { position: absolute; right: 8px; bottom: -6px; width: 120px; height: 82px; }
.cr-pop .cr-list { padding: 12px 14px 0; grid-template-columns: 1fr; gap: 6px; margin: 0; }
.cr-pop .cr-list li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--cr-card2); border: 1px solid var(--line); font-size: .95rem; font-weight: 800; color: var(--ink); }
.cr-pop .cr-list li.is-zero { opacity: .62; }
.cr-pop .cr-list em { font-style: normal; font-size: 1.15rem; }
.cr-pop .cr-list b { font: 800 1.15rem var(--mono, "JetBrains Mono", monospace); color: var(--cr-num); }
.cr-pop .cr-note, .cr-pop .cr-who { margin: 10px 14px 0; }
.cr-pop .cr-who { font-size: .76rem; word-break: break-all; }
.cr-btn { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(100% - 28px); min-height: 46px; margin: 8px 14px 0; padding: 0 14px; border-radius: 14px; font-weight: 800; font-size: .96rem; font-family: inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.cr-pop .cr-btn:last-child { margin-bottom: 14px; }
.cr-btn-main { background: linear-gradient(180deg, #FBD48A, #E9A24A); color: #1B1204; box-shadow: 0 12px 24px -14px rgba(217,144,58,.95), inset 0 1px 0 rgba(255,255,255,.55); }
.cr-btn-side { background: var(--cr-card2); color: var(--ink); border-color: var(--cr-edge); }
.cr-btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-strong, var(--line)); font-weight: 700; }
.cr-btn:hover { transform: translateY(-1px); } .cr-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 960px) and (orientation: landscape) and (max-height: 540px) { .stage-col { background: transparent !important; } }


/* ======== TELEFON: BUZLU CAM YALNIZCA SAHNE ALANINDAN KALDIRILDI (sahibin düzeltmesi: "telefonun tamamında değil, işaretlediğim alandan") ========
   Sahne alanı (9:16/16:9 anahtarı + telefon önizlemesi + oynatma çubuğu) tam durumda hiç cam/örtü taşımaz → arka plan videosu komple görünür.
   Sayfanın geri kalanı (üst çubuk, ayar kartları, üretim şeridi) ÖZGÜN buzlu cam görünümünü korur. Kompakt sahne (kaydırınca) düz dolgun zemin kullanır (cam değil). */
@media (max-width: 960px) {
  body[data-ambient="on"] .ambient { opacity: 0.92; }
  .stage-col, .stage-col * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  html:not(.stage-compact) .stage-col { background: transparent; }
  /* oynatma çubuğunun ARKASI buzlu cam (yalnız telefon; sahne/video keskin kalır, blur yalnız çubuğun altındaki piksellere uygulanır) */
  html:not(.stage-compact) .stage-col .transport { background: rgba(10, 16, 30, 0.42); border-color: rgba(148, 176, 214, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px -14px rgba(0, 0, 0, 0.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.4) !important; -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4) !important; }
  html[data-theme="light"]:not(.stage-compact) .stage-col .transport { background: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 0 0 1px rgba(11, 31, 53, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px -14px rgba(11, 31, 53, 0.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.5) brightness(1.04) !important; -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5) brightness(1.04) !important; }
  html[data-theme="light"]:not(.stage-compact) .stage-col .transport .scrub-track { background: rgba(11, 31, 53, 0.22); }
  .topbar { backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
}

/* Üst şerit: marka yazısı rozetin (Kaynak) üstüne hiçbir genişlikte binmez. Logo küçülmez; dar ekranda yazı gizlenir (yalnız logo kalır). */
.brand { flex: none; }
@media (max-width: 640px) {
  .brand-name, .brand-sub { display: none; }
}

/* ======== TELEFON (≤960 px) — SAHİBİN İSTEĞİ: sadeleştirme (masaüstüne DOKUNMAZ) ========
   1) örnek parseller: iri 2×2 kart yerine tek satırlık yana kaydırılan ince çipler
   2) 9:16 / 16:9: iki yan yana düğme yerine tek tuşlu birleşik anahtar
   3) üst çubuk: arama yerine ⋮ menüsü; Haklarım + Panelim menünün içinde */
.tm-btn, .tm-panel, .aspect-flip, .step-lead .lead-short { display: none; }
@media (max-width: 960px) {
  /* 1) örnek parsel çipleri */
  .step-lead .lead-full { display: none; }
  .step-lead .lead-short { display: inline; }
  .qs-grid { display: flex; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -2px -8px; padding: 5px 2px 14px; }
  .qs-grid::-webkit-scrollbar { display: none; }
  .preset-pill.qs-card { flex: 0 0 auto; flex-direction: row; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 999px; white-space: nowrap; scroll-snap-align: start; align-items: center; }
  .qs-place { font-size: 0.9rem; }
  .qs-sub { font-size: 0.74rem; }

  /* 2) tek tuşlu oran anahtarı */
  .aspect-segmented-switch { display: none; }
  .aspect-flip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--field-b); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .af-frame { flex: none; width: 15px; height: 26px; color: var(--accent); transition: transform 0.28s cubic-bezier(.3, .8, .3, 1); }
  .aspect-flip[data-mode="16:9"] .af-frame { transform: rotate(90deg); }
  .af-txt { display: inline-flex; align-items: baseline; gap: 6px; }
  .af-r { font-size: 0.9rem; font-weight: 800; }
  .af-swap { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-left: 2px; border-radius: 50%; background: rgba(233, 162, 74, 0.16); border: 1px solid rgba(233, 162, 74, 0.4); color: var(--accent); }
  .af-swap svg { width: 18px; height: 18px; transition: transform 0.28s cubic-bezier(.3, .8, .3, 1); }
  .aspect-flip[data-mode="16:9"] .af-swap svg { transform: rotate(180deg); }
  .aspect-flip:active .af-swap { background: rgba(233, 162, 74, 0.3); }
  .aspect-flip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  html[data-theme="light"] .aspect-flip { background: rgba(255, 255, 255, 0.7); border-color: rgba(11, 31, 53, 0.16); }
  html[data-theme="light"] .af-frame { color: #B86F1B; }
  html[data-theme="light"] .af-swap { color: #8A5209; background: rgba(217, 144, 58, 0.16); border-color: rgba(217, 144, 58, 0.5); }
  @media (prefers-reduced-motion: reduce) { .af-frame, .af-swap svg { transition: none; } }

  /* 3) ⋮ menüsü (arama düğmesi telefonda yok; ⌘K/Ctrl K masaüstünde durur) */
  #btnPalette { display: none; }
  .top-actions .tm-btn { display: inline-flex; width: 40px; padding: 0; }
  .top-actions .tm-btn[hidden], .tm-panel > [hidden] { display: none !important; }
  .tm-btn[aria-expanded="true"] { color: var(--accent); border-color: rgba(233, 162, 74, 0.5); }
  .tm-panel:not([hidden]) { display: flex; flex-direction: column; gap: 4px; position: absolute; z-index: 110; top: calc(100% + 6px); right: 10px; width: min(260px, calc(100vw - 24px)); padding: 6px; border-radius: 16px; background: var(--bar-solid); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 40px -16px rgba(0, 0, 0, 0.7); }
  .tm-panel > .btn-ghost { display: flex; width: 100%; min-height: 48px; padding: 0 14px; justify-content: flex-start; gap: 10px; border-radius: 12px; font-size: 0.95rem; }
  .tm-panel > .cr-acct { min-width: 0; }
  .tm-panel .cr-acct-t { display: inline; }
  html[data-theme="light"] .tm-panel:not([hidden]) { box-shadow: 0 0 0 1px rgba(11, 31, 53, 0.06), inset 0 1px 0 #fff, 0 18px 40px -16px rgba(11, 31, 53, 0.4); }
}

/* ---- Telefonda adım adım parsel seçici (parcelwizard.js): il › ilçe › mahalle › ada/parsel; seçilen kutular yerine tek alan ---- */
.pw[hidden], .pw-view[hidden], .pw-msg[hidden], .pw-retry[hidden] { display: none !important; }
html.pw-on .pw-src { display: none; }
.pw { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; min-width: 0; }
.pw-crumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.pw-crumbs::-webkit-scrollbar { display: none; }
.pw-chip { flex: 0 0 auto; scroll-snap-align: center; display: inline-flex; align-items: center; min-height: 40px; max-width: 46vw; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--field-a); color: var(--soft); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.pw-chip-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-chip + .pw-chip { position: relative; margin-left: 8px; }
.pw-chip + .pw-chip::before { content: "›"; position: absolute; left: -11px; top: 50%; transform: translateY(-52%); color: var(--dim); font-size: 1.1rem; pointer-events: none; }
.pw-chip.is-done { color: var(--ink); border-color: rgba(52, 211, 153, 0.45); }
.pw-chip.is-now { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 800; }
.pw-chip.is-todo { opacity: 0.55; cursor: default; }
.pw-chip:focus-visible, .pw-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-view { min-width: 0; overflow: hidden; }
.pw-panel { display: flex; flex-direction: column; gap: 8px; will-change: transform, opacity; }
.pw-head { display: flex; align-items: center; gap: 10px; }
.pw-search { flex: 1 1 auto; min-width: 0; }
.pw-count { flex: none; font-size: 0.78rem; font-weight: 600; min-width: 3.2em; text-align: right; }
.pw-list { display: flex; flex-direction: column; gap: 4px; max-height: min(34dvh, 224px); min-height: 92px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 2px; border-radius: 12px; }
.pw-opt { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 14px; text-align: left; border-radius: 10px; border: 1px solid transparent; background: var(--raise); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.pw-opt:active { transform: scale(0.985); }
.pw-opt.is-on { border-color: var(--accent); background: rgba(233, 162, 74, 0.16); }
.pw-msg { margin: 0; padding: 22px 8px; text-align: center; color: var(--soft); font-size: 0.9rem; }
.pw-msg.is-wait::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: pwspin 0.8s linear infinite; }
.pw-msg.is-bad { color: #fca5a5; }
.pw-retry { align-self: center; }
@keyframes pwspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pw-msg.is-wait::before { animation: none; } .pw-opt:active { transform: none; } }
html[data-theme="light"] .pw-chip { background: rgba(255, 255, 255, 0.92); color: #2a3a55; }
html[data-theme="light"] .pw-chip.is-done { color: #0b1224; border-color: rgba(4, 120, 87, 0.5); }
html[data-theme="light"] .pw-chip.is-now { background: var(--accent); color: var(--accent-ink); }
html[data-theme="light"] .pw-opt { background: rgba(255, 255, 255, 0.88); color: #0b1224; border-color: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .pw-opt.is-on { background: rgba(180, 83, 9, 0.13); border-color: rgba(180, 83, 9, 0.6); }
html[data-theme="light"] .pw-msg.is-bad { color: #991b1b; }

/* ---- Telefonda örnek parsel döngü düğmesi (presetcycler.js): "Parsel" başlığının yanında küçük hap; 4 kartlık şerit ve açıklama metni gizlenir ---- */
.pc[hidden] { display: none !important; }
html.pc-on #stepBody1 .qs-grid, html.pc-on #stepBody1 .step-inner > .step-lead { display: none; }
.step[data-step="1"] { position: relative; }
.step[data-step="1"]:not(.is-open) > .pc { display: none; }
.pc { position: absolute; z-index: 3; display: flex; align-items: center; justify-content: flex-start; min-width: 0; margin: 0; pointer-events: none; }
.pc-btn { pointer-events: auto; position: relative; flex: 0 1 auto; min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 11px 0 9px; border-radius: 999px; border: 1px solid var(--accent); background: rgba(233, 162, 74, 0.14); color: var(--ink); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.pc-btn::before { content: ""; position: absolute; inset: -6px -3px; } /* dokunma alanı ≥ 44 px, görünüm küçük */
.pc-btn:active { transform: scale(0.97); }
.pc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.pc-txt { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.pc-place { font-size: 0.88rem; font-weight: 800; white-space: nowrap; }
.pc-il { font-family: var(--font-mono); font-size: 0.72rem; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-n { flex: none; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; color: var(--dim); padding-left: 7px; border-left: 1px solid var(--line-strong); }
.pc.is-pending .pc-btn { border-style: dashed; }
@media (prefers-reduced-motion: reduce) { .pc-ic { transition: none; } .pc-btn:active { transform: none; } }
html[data-theme="light"] .pc-btn { background: rgba(255, 247, 235, 0.92); border-color: rgba(180, 83, 9, 0.6); color: #0b1224; }
html[data-theme="light"] .pc-ic { stroke: #92400e; }
html[data-theme="light"] .pc-n { color: #3b4c66; }

.pc.is-mine .pc-btn { border-style: solid; background: rgba(52, 211, 153, 0.13); border-color: rgba(52, 211, 153, 0.6); }
.pc.is-mine .pc-ic { stroke: #34d399; }
html[data-theme="light"] .pc.is-mine .pc-btn { background: rgba(236, 253, 245, 0.94); border-color: rgba(4, 120, 87, 0.6); }
html[data-theme="light"] .pc.is-mine .pc-ic { stroke: #047857; }

/* ======== YATAY TELEFON (≤960 px genişlik, ≤540 px yükseklik, yatay) ========
   Sol sütun (%60): en üstte ince şerit = 9:16 / 16:9 anahtarı + oynatma/araç tuşları; altında video; en altta ince ilerleme çubuğu.
   Sağ sütun: ayar adımları (kaydırılır). Haklarım / Panelim ⋮ menüsünde. Kompakt mod bu yönde kapalıdır. */
@media (max-width: 960px) and (orientation: landscape) and (max-height: 540px) {
  :root { --stage-cur: 0px; --topbar-h: 48px; }
  html { scroll-padding-top: calc(var(--topbar-h) + 8px); }
  .topbar { padding: 0 8px; }
  .stage-col { top: var(--topbar-h); bottom: 0; left: 0; right: auto; width: 60%; height: auto; display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 6px 10px; box-sizing: border-box; background: transparent; }
  .studio-container, .studio-container.ctx-closed { padding-top: 6px; padding-left: calc(60% + 6px); padding-right: 10px; transition: none; }
  .stage-head { flex: none; flex-wrap: nowrap; gap: 6px; align-items: center; justify-content: flex-start; }
  .stage-head .aspect-segmented-switch, .stage-head .aspect-switch { flex: none; }
  .stage-head .aspect-switch-btn { padding: 0 8px; min-height: 44px; font-size: .8rem; }
  .stage-head .aspect-switch-btn .btn-subtext { display: none; }
  .stage-acct { display: flex; flex: 1; min-width: 0; gap: 3px; align-items: center; justify-content: flex-end; }
  .stage-acct .tool-btn, .stage-acct .vol-wrap .tool-btn { width: 44px; min-width: 44px; min-height: 44px; padding: 0; flex: none; }
  .stage-acct .tp-lbl { display: none; }
  .stage-acct .vol-wrap { position: relative; flex: none; } .stage-acct .vol-pop { top: 50px; bottom: auto; right: 0; left: auto; }
  .stage-well { flex: 1; min-height: 0; }
  .transport { flex: none; padding: 0; gap: 0; background: transparent; border: 0; box-shadow: none; }
  .transport .scrub { margin: 0 4px; height: 26px; min-height: 26px; }
  .stage-status, .rail-cta { display: none; }
  .rail-cta { display: flex; }
  .pipeline { display: none; }
  html:not(.stage-compact) .stage-col .transport { background: transparent; border-color: transparent; box-shadow: none; }
}

/* .stage-acct (yatay telefon araç şeridi) 39b0dc9'da yanlışlıkla silinmişti; geri eklendi (SKILL.md §17). */
.stage-acct { display: none; }
@media (max-width: 960px) and (orientation: landscape) and (max-height: 540px) { .stage-acct { display: flex; } }

/* ======== TELEFON (dikey + yatay): oynatma/araç tuşları 9:16↔16:9 düğmesinin YANINDA (mobile.js `html.tools-in-head`) ========
   Sahibin isteği: zaman çizgisi altındaki 6 kalın tuş yer kaplıyordu → tuşlar başlık satırına taşındı; videonun altında yalnız ince ilerleme çizgisi kalır.
   Tuşlar kalan genişliğe esner (32–44 px; yükseklik 44 px). Kompakt sahnede (kaydırınca) eski 4'lü ızgaraya döner. */
@media (max-width: 960px) {
  html.tools-in-head .stage-head { flex-wrap: nowrap; gap: 6px; justify-content: flex-start; align-items: center; }
  html.tools-in-head .aspect-flip { flex: none; padding: 0 3px 0 10px; gap: 6px; }
  html.tools-in-head .af-swap { width: 32px; height: 32px; margin-left: 0; }
  html.tools-in-head .af-swap svg { width: 16px; height: 16px; }
  html.tools-in-head .stage-acct { display: flex; flex: 1 1 0; min-width: 0; gap: 2px; align-items: center; justify-content: flex-end; }
  html.tools-in-head .stage-acct > .tool-btn, html.tools-in-head .stage-acct > .vol-wrap { flex: 1 1 0; min-width: 30px; max-width: 44px; }
  html.tools-in-head .stage-acct .tool-btn { width: 100%; min-width: 0; height: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
  html.tools-in-head .stage-acct .tp-lbl { display: none; }
  html.tools-in-head .stage-acct .tool-btn svg, html.tools-in-head .stage-acct .tool-btn .tp-ico { width: 19px; height: 19px; }
  html.tools-in-head .stage-acct .vol-wrap { position: relative; }
  html.tools-in-head .stage-acct .vol-pop { top: 50px; bottom: auto; right: 0; left: auto; width: min(280px, calc(100vw - 32px)); }
  /* videonun altında yalnız ince ilerleme çizgisi */
  html.tools-in-head:not(.stage-compact) .stage-col .transport { padding: 0; gap: 0; background: transparent; border-color: transparent; box-shadow: none; }
  html.tools-in-head:not(.stage-compact) .stage-col .transport .scrub { margin: 0 4px; height: 26px; min-height: 26px; }
  html.tools-in-head:not(.stage-compact) .stage-col .transport .tp-time { display: none; }
  :root { --stage-full: min(54dvh, 500px); }
}
@media (max-width: 960px) and (orientation: landscape) and (max-height: 540px) { :root { --stage-cur: 0px; } }
/* ilerleme çizgisi videonun altında tek başına: belirgin iz (her iki temada) */
@media (max-width: 960px) {
  html.tools-in-head:not(.stage-compact) .stage-col .transport .scrub-track { height: 6px; background: rgba(255, 255, 255, 0.38); box-shadow: 0 0 0 1px rgba(4, 8, 16, 0.28); }
  html[data-theme="light"].tools-in-head:not(.stage-compact) .stage-col .transport .scrub-track { background: rgba(11, 31, 53, 0.34); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
  html.tools-in-head:not(.stage-compact) .stage-col .transport .scrub-thumb { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 4px rgba(233, 162, 74, 0.32), 0 2px 6px rgba(0, 0, 0, 0.35); }
}

/* ======== TELEFON DİKEY 9:16: tuşlar videonun iki yanındaki BOŞ dikey alanlarda, alt alta (mobile.js `html.tools-rails`) ========
   Sol ray: 9:16↔16:9 çevir, oynat/duraklat, parsel rengi, ses, ses ayarları. Sağ ray: ekran görüntüsü, indirme. Başlık satırı boşalır → video yukarı doğru büyür.
   (16:9'da video tüm genişliği kaplar, yan boşluk yok → orada `tools-in-head` şeridi geçerli.) */
@media (max-width: 960px) {
  .stage-well { position: relative; }
  .stage-rail { position: absolute; top: 0; bottom: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 2px 0; pointer-events: none; }
  .stage-rail > * { pointer-events: auto; }
  .stage-rail.rail-l { left: 0; } .stage-rail.rail-r { right: 0; }
  html.tools-rails .stage-head { display: none; }
  html.tools-rails .stage-rail .tool-btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 13px; flex: none; }
  html.tools-rails .stage-rail .tp-lbl { display: none; }
  html.tools-rails .stage-rail .tool-btn svg, html.tools-rails .stage-rail .tool-btn .tp-ico { width: 19px; height: 19px; }
  html.tools-rails .stage-rail .vol-wrap { position: relative; flex: none; }
  html.tools-rails .stage-rail .vol-pop { top: 0; bottom: auto; left: 52px; right: auto; width: min(260px, calc(100vw - 96px)); }
  /* çevir düğmesi ray içinde dikey ve dar */
  html.tools-rails .stage-rail .aspect-flip { flex-direction: column; gap: 2px; width: 44px; min-height: 0; padding: 5px 0 4px; border-radius: 14px; }
  html.tools-rails .stage-rail .af-frame { width: 12px; height: 21px; }
  html.tools-rails .stage-rail .af-r { font-size: 0.72rem; }
  html.tools-rails .stage-rail .af-swap { width: 22px; height: 22px; margin: 0; }
  html.tools-rails .stage-rail .af-swap svg { width: 12px; height: 12px; }
  html.tools-rails:not(.stage-compact) .stage-col .transport { padding: 0; gap: 0; background: transparent; border-color: transparent; box-shadow: none; }
  html.tools-rails:not(.stage-compact) .stage-col .transport .scrub { margin: 0 4px; height: 26px; min-height: 26px; }
  html.tools-rails:not(.stage-compact) .stage-col .transport .tp-time { display: none; }
  html.tools-rails:not(.stage-compact) .stage-col .transport .scrub-track { height: 6px; background: rgba(255, 255, 255, 0.38); box-shadow: 0 0 0 1px rgba(4, 8, 16, 0.28); }
  html[data-theme="light"].tools-rails:not(.stage-compact) .stage-col .transport .scrub-track { background: rgba(11, 31, 53, 0.34); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5); }
  html.tools-rails:not(.stage-compact) .stage-col .transport .scrub-thumb { width: 18px; height: 18px; margin: -9px 0 0 -9px; box-shadow: 0 0 0 4px rgba(233, 162, 74, 0.32), 0 2px 6px rgba(0, 0, 0, 0.35); }
}
/* Tuşlar raya/başlık şeridine taşındığında oynatma çubuğu yalnız ince çizgidir: arkasındaki buzlu cam gereksiz → sahne alanı camsız (sahibin kuralı) */
@media (max-width: 960px) {
  html.tools-rails:not(.stage-compact) .stage-col .transport, html.tools-in-head:not(.stage-compact) .stage-col .transport { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* telefon: ilerleme çizgisinin dokunma alanı ≥44 px (görünüm ince kalır) */
@media (max-width: 960px) { .transport .scrub { position: relative; } .transport .scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); } }

/* ======== KÜNYE + VERİ KAYNAĞI: sıkı, teknolojik görünüm (ctxcompact.js) ======== */
.ctx-card { padding: 12px 12px 12px; } .ctx-head { margin-bottom: 8px; } .ctx-head h2 { font-size: 1.12rem; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kv-k { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim); }
.kv-v { display: block; margin-top: 2px; font-size: 0.86rem; font-weight: 600; word-break: break-word; }
.kv-hero, .kv-place, .kv-c { min-width: 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); }
.kv-hero .kv-v { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.01em; } .kv-hero.is-accent { border-color: rgba(233, 162, 74, 0.45); background: rgba(233, 162, 74, 0.09); } .kv-hero.is-accent .kv-v { color: var(--accent); }
.kv-place, .kv-wide { grid-column: 1 / -1; } .kv-place .kv-v { font-size: 0.86rem; } .kv-place i { font-style: normal; color: var(--dim); }
.kv-c[hidden] { display: none; }
.src-detail { gap: 6px; }
.src-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.src-chips .chk { padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid currentColor; font-size: 0.72rem; font-weight: 700; line-height: 1.3; }
.src-chips .chk .ic { width: 12px; height: 12px; }
.src-idle { font-size: 0.78rem; line-height: 1.4; }
.src-toggle { align-self: flex-start; min-height: 28px; padding: 0 2px; background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 0.76rem; font-family: var(--font-body, inherit); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.src-more { display: flex; flex-direction: column; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.28s ease, opacity 0.2s ease; }
.src-more.is-open { max-height: 320px; opacity: 1; }
@media (pointer: coarse) { .src-toggle { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .src-more { transition: none; } }
html[data-theme="light"] .kv-hero, html[data-theme="light"] .kv-place, html[data-theme="light"] .kv-c { background: rgba(255, 255, 255, 0.7); border-color: rgba(15, 23, 42, 0.12); }
html[data-theme="light"] .kv-hero.is-accent { background: rgba(217, 144, 58, 0.14); border-color: rgba(180, 83, 9, 0.5); } html[data-theme="light"] .kv-hero.is-accent .kv-v { color: #92400e; }
html[data-theme="light"] .kv-k { color: #465670; } html[data-theme="light"] .src-toggle { color: #92400e; }

/* ---- ikinci sıkıştırma: künye = 2 büyük hücre + konum satırı + satır içi rozetler; kaynak = tek satır rozet, "Ayrıntı" başlığın sağında ---- */
.kv { display: flex; flex-wrap: wrap; gap: 6px; }
.kv-hero { flex: 1 1 calc(50% - 3px); padding: 7px 10px; }
.kv-hero .kv-v { font-size: 1.05rem; margin-top: 1px; }
.kv-place { flex: 1 1 100%; padding: 2px 2px 0; border: 0; background: none; } .kv-place .kv-k { display: inline; margin-right: 6px; } .kv-place .kv-v { display: inline; margin: 0; font-size: 0.84rem; }
.kv-c { flex: 0 1 auto; display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 999px; }
.kv-c .kv-k { display: inline; font-size: 0.62rem; } .kv-c .kv-v { display: inline; margin: 0; font-size: 0.8rem; }
.kv-c.kv-wide { flex: 1 1 100%; border: 0; background: none; padding: 0 2px; border-radius: 0; } .kv-c.kv-wide .kv-v { font-size: 0.74rem; color: var(--soft); }
#srcCard { position: relative; }
.src-toggle { position: absolute; top: 11px; right: 12px; align-self: auto; }
.src-chips .chk { padding: 2px 8px 2px 6px; font-size: 0.68rem; }

/* ---- Sunum PDF'i iletişim kutusu (pdfdeck.js) ---- */
.deck-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; box-sizing: border-box; }
.deck-dialog .pro-box { display: grid; gap: 10px; }
.dk-f { display: grid; gap: 4px; font-size: 0.8rem; font-weight: 600; color: var(--soft); min-width: 0; } .dk-f input, .dk-f textarea { width: 100%; box-sizing: border-box; min-height: 42px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--field-a); color: var(--ink); font: inherit; font-size: 0.9rem; }
.dk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .dk-checks { grid-template-columns: 1fr; gap: 6px; } .dk-checks label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 0.86rem; }
.dk-photos { display: flex; flex-wrap: wrap; gap: 8px; } .dk-th { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-strong); } .dk-th img { width: 100%; height: 100%; object-fit: cover; display: block; } .dk-th button { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 1rem; cursor: pointer; }
.dk-prog { position: relative; height: 34px; border-radius: 10px; background: var(--field-a); border: 1px solid var(--line); overflow: hidden; } .dk-prog i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #E9A24A, #38bdf8); opacity: .55; transition: width .25s; } .dk-prog span { position: relative; display: block; padding: 0 12px; line-height: 34px; font-size: 0.8rem; font-weight: 700; }
@media (max-width: 520px) { .dk-row { grid-template-columns: 1fr; } }
html[data-theme="light"] .dk-f input, html[data-theme="light"] .dk-f textarea { background: #fff; }

/* ======== TELEFON: STÜDYO TUŞLARI HAFİF BUZLU CAM (sahibin isteği: "böyle çok saydam", arka plan tatlı görünsün) ========
   Yalnız küçük tuşların/kapsülün KENDİ arkası bulanır (sahne/video keskin kalır; iOS'ta kare hızı etkilenmez: alan ≈ 44×44 px). */
@media (max-width: 960px) {
  .stage-col .stage-acct .tool-btn, .stage-col .stage-rail .tool-btn, .stage-rail .tool-btn, .stage-col .stage-head .aspect-flip, .stage-rail .aspect-flip {
    background: rgba(18, 28, 48, 0.46); border-color: rgba(160, 188, 224, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px -10px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px) saturate(1.5) !important; -webkit-backdrop-filter: blur(10px) saturate(1.5) !important;
  }
  .stage-col .stage-acct .tool-btn.active, .stage-col .stage-rail .tool-btn.active, .stage-rail .tool-btn.active { background: rgba(233, 162, 74, 0.2); border-color: rgba(233, 162, 74, 0.5); }
  html[data-theme="light"] .stage-col .stage-acct .tool-btn, html[data-theme="light"] .stage-col .stage-rail .tool-btn, html[data-theme="light"] .stage-rail .tool-btn, html[data-theme="light"] .stage-col .stage-head .aspect-flip, html[data-theme="light"] .stage-rail .aspect-flip {
    background: rgba(255, 255, 255, 0.5); border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 1px rgba(11, 31, 53, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 16px -10px rgba(11, 31, 53, 0.4);
    backdrop-filter: blur(10px) saturate(1.5) brightness(1.04) !important; -webkit-backdrop-filter: blur(10px) saturate(1.5) brightness(1.04) !important;
  }
  html[data-theme="light"] .stage-col .stage-acct .tool-btn.active, html[data-theme="light"] .stage-col .stage-rail .tool-btn.active, html[data-theme="light"] .stage-rail .tool-btn.active { background: rgba(233, 162, 74, 0.28); }
}

/* Bayrak rozetleri (hediye/hoş geldin): <p> olduğu için `.pro-box p` / `.cr-welcome p` gibi daha özgül kurallar yazı rengini açık griye çekiyordu (altın zeminde okunmuyordu) → koyu mürekkep KESİN */
.cr-w-art > .cr-w-flag, .op-earn-art > .op-earn-flag, .cr-welcome .cr-w-flag, .pro-box .op-earn-flag { color: #1B1204 !important; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); font-weight: 800; }

/* ======== MİSAFİR VİTRİNİ (guest.js): kayıt kartı + "Dokun ve dinle" rozeti ======== */
.gs-scrim { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: 16px; background: rgba(3, 6, 14, 0.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: gsFade .25s ease both; }
.gs-card { width: min(420px, 100%); box-sizing: border-box; padding: 0 0 18px; border-radius: 24px; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, rgba(30, 42, 66, 0.98), rgba(14, 20, 36, 0.98)); border: 1px solid rgba(233, 162, 74, 0.38); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 46px rgba(233, 162, 74, 0.14); animation: gsPop .38s cubic-bezier(.2, .8, .2, 1) both; }
.gs-art { position: relative; height: 92px; display: grid; place-items: center; background: radial-gradient(120% 140% at 50% 0%, rgba(233, 162, 74, 0.34), rgba(233, 162, 74, 0) 70%), linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); }
.gs-em { font-size: 2.6rem; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); }
.gs-flag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(180deg, #FBD48A, #E9A24A); color: #1B1204; font-weight: 800; font-size: 0.8rem; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.gs-card h2 { margin: 16px 20px 6px; font-size: 1.3rem; line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; color: #F3F7FC; }
.gs-lead { margin: 0 20px 10px; color: #C4D0E2; font-size: 0.94rem; line-height: 1.5; font-weight: 500; }
.gs-list { margin: 0 20px 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.gs-list li { display: flex; align-items: center; gap: 9px; min-height: 30px; padding: 4px 12px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; color: #F3F7FC; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.gs-list li::before { content: "✓"; flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 0.72rem; font-weight: 900; color: #1B1204; background: linear-gradient(180deg, #FBD48A, #E9A24A); }
.gs-note { margin: 4px 20px 14px; color: #9FB0C9; font-size: 0.8rem; line-height: 1.4; }
.gs-go, .gs-login, .gs-back { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(100% - 40px); min-height: 48px; margin: 8px 20px 0; border-radius: 14px; font-weight: 800; font-size: 1rem; font-family: inherit; text-decoration: none; cursor: pointer; }
.gs-go { color: #1B1204; background: linear-gradient(180deg, #FBD48A, #E9A24A); border: 0; box-shadow: 0 14px 26px -14px rgba(217, 144, 58, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55); transition: transform 0.18s; }
.gs-go:hover { transform: translateY(-2px); } .gs-go:active { transform: scale(0.98); }
.gs-login { color: #F3F7FC; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); }
.gs-back { color: #C4D0E2; background: none; border: 0; min-height: 44px; font-weight: 700; }
.gs-go:focus-visible, .gs-login:focus-visible, .gs-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html[data-theme="light"] .gs-card { background: linear-gradient(180deg, #FFFFFF, #F1F5FA); border-color: rgba(217, 144, 58, 0.5); box-shadow: 0 30px 70px -26px rgba(11, 31, 53, 0.45), inset 0 1px 0 #fff; }
html[data-theme="light"] .gs-card h2 { color: #0B1F35; } html[data-theme="light"] .gs-lead { color: #3A4C60; } html[data-theme="light"] .gs-note { color: #52657C; }
html[data-theme="light"] .gs-list li { color: #0B1F35; background: #fff; border-color: rgba(11, 31, 53, 0.12); } html[data-theme="light"] .gs-login { color: #0B1F35; background: #fff; border-color: rgba(11, 31, 53, 0.2); } html[data-theme="light"] .gs-back { color: #3A4C60; }
.gs-listen { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid rgba(233, 162, 74, 0.6); border-radius: 999px; color: #1B1204; font-weight: 800; font-size: 0.95rem; font-family: inherit; cursor: pointer; background: linear-gradient(180deg, #FBD48A, #E9A24A); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(233, 162, 74, 0.5); animation: gsPulse 2.2s ease-out infinite; }
.gs-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; } .gs-eq i { display: block; width: 3px; border-radius: 2px; background: #1B1204; animation: gsEq 0.9s ease-in-out infinite; } .gs-eq i:nth-child(1) { height: 6px; } .gs-eq i:nth-child(2) { height: 14px; animation-delay: 0.15s; } .gs-eq i:nth-child(3) { height: 9px; animation-delay: 0.3s; }
@keyframes gsFade { from { opacity: 0; } } @keyframes gsPop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes gsPulse { 0% { box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 0 rgba(233, 162, 74, 0.55); } 100% { box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 0 16px rgba(233, 162, 74, 0); } }
@keyframes gsEq { 0%, 100% { transform: scaleY(0.45); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .gs-scrim, .gs-card, .gs-listen, .gs-eq i { animation: none; } }
html.is-guest .cr-acct.is-guest { font-weight: 800; }

/* Vitrin kipinde "Dronu uçur" düğmesi PASİF görünür (tıklayınca neden açıklanır) */
.btn-submit.is-showcase-off { filter: grayscale(0.7); opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.btn-submit.is-showcase-off::after { content: " 🔒"; }
