/* Tablo okuyucu
   Tasarım dili Yoldaş paneliyle aynı: gri zemin, tek beyaz tabaka, tek vurgu rengi indigo,
   hap biçimli düğmeler, hat çizgisi kadar ince ayırıcılar. Hareket yalnızca transform ve opacity ile. */

:root {
  color-scheme: light;
  --background: #eef0f6;
  --foreground: #16181d;
  --card: #ffffff;
  --muted: #f7f7fb;
  --muted-foreground: #6b6f78;
  --secondary: #f1f2f7;
  --border: #e9ebef;
  --input: #dfe2e7;
  --primary: #5146e1;
  --primary-hover: #4338d0;
  --primary-soft: #eeedfc;
  --primary-soft-foreground: #3f35c8;
  --destructive: #d93f3f;
  --success: #1f9254;
  --warning: #c27a12;
  --amber: #fcf1d9;
  --amber-foreground: #8f5d07;
  --coral: #f0714f;
  --ring: rgba(81, 70, 225, 0.35);
  --radius-input: 10px;
  --radius-card: 20px;
  --radius-sheet: 28px;
  --popover-shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 12px 32px rgba(22, 24, 29, 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --bar-h: 64px;
}
@media (min-width: 1024px) { :root { --bar-h: 80px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; }
body.is-locked { overflow: hidden; }
p, h1, h2, h3, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
a { color: var(--primary); }
img { max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); border-radius: 8px; }
[hidden] { display: none !important; }
.only-fine { display: none; }
@media (pointer: fine) { .only-fine { display: revert; } .only-touch { display: none !important; } }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- yazı ölçeği */
.t-large { font-size: 32px; line-height: 1.15; font-weight: 600; letter-spacing: -0.024em; }
.t-title { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.018em; }
.t-title2 { font-size: 20px; line-height: 1.25; font-weight: 600; }
.t-head { font-size: 15px; line-height: 1.35; font-weight: 600; }
.t-foot { font-size: 13px; line-height: 1.4; }
.muted { color: var(--muted-foreground); }
@media (max-width: 699px) { .t-large { font-size: 26px; } }

/* ---------- hareket */
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
@keyframes slide-in-left { from { opacity: 0; transform: translate3d(-20px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slide-in-right { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes wire-fill-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes wire-fill-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ring-out { from { opacity: 0.5; transform: scale(0.8); } to { opacity: 0; transform: scale(2.1); } }
@keyframes scan-sweep { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--scan-h, 260px), 0); } }
@keyframes zoom-in { from { opacity: 0.4; transform: scale(0.965) translate3d(0, 8px, 0); } to { opacity: 1; transform: none; } }
@keyframes ord-in { from { opacity: 0; transform: translate3d(44px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes card-out { to { opacity: 0; transform: translate3d(-24px, 0, 0); } }
@keyframes card-in { from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes flash { from { opacity: 0.9; } to { opacity: 0; } }
@keyframes cell-out { to { opacity: 0; transform: scale(0.96); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes toast-in { from { opacity: 0; transform: translate3d(-50%, 14px, 0); } to { opacity: 1; transform: translate3d(-50%, 0, 0); } }
@keyframes dlg-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.rise { animation: rise-in 420ms var(--ease) both; }
.fade { animation: fade-in 280ms var(--ease) both; }

/* ---------- iskelet: Yoldaş çalışma alanı gibi, kenar çubuğu zeminde, sayfa tek beyaz tabakada */
.app { display: grid; min-height: 100dvh; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr;
  grid-template-areas: "logo bar" "steps steps" "sheet sheet"; }
.logo { grid-area: logo; display: flex; align-items: center; gap: 10px; height: var(--bar-h); padding: 0 12px; color: var(--foreground); text-decoration: none; border-radius: 16px; }
.logo-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card); flex: none; }
.logo-mark { width: 24px; height: 24px; fill: none; stroke-width: 6.5; stroke-linecap: round; }
.logo-mark .a { stroke: var(--primary); }
.logo-mark .b { stroke: var(--coral); mix-blend-mode: multiply; }
.logo-word { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.bar { grid-area: bar; display: flex; align-items: center; justify-content: flex-end; gap: 8px; height: var(--bar-h); padding: 0 12px; }
.bar form { margin: 0; }
.steps { grid-area: steps; position: sticky; top: 0; z-index: 20; padding: 0 8px 8px; background: color-mix(in srgb, var(--background) 94%, transparent); }
.sheet { grid-area: sheet; background: var(--card); border-radius: var(--radius-sheet); margin: 0 8px 8px; padding: 28px 20px 40px; animation: rise-in 420ms var(--ease) 60ms backwards; min-width: 0; }
@media (max-width: 1023px) { .sheet { animation-name: fade-in; } }  /* transform bırakan animasyon, içindeki position:fixed çubuğu tabakaya bağlar */
.sheet-in { max-width: 1120px; margin: 0 auto; }
body.has-actions .sheet { padding-bottom: 104px; }

@media (min-width: 1024px) {
  .app { grid-template-columns: 256px minmax(0, 1fr); grid-template-rows: var(--bar-h) 1fr; grid-template-areas: "logo bar" "steps sheet"; }
  .logo { margin: 0 16px; padding: 0 4px; animation: slide-in-left 360ms var(--ease) both; }
  .bar { padding: 0 32px; }
  .steps { position: sticky; top: 0; align-self: start; padding: 4px 16px 20px; background: none; animation: slide-in-left 360ms var(--ease) both; }
  .sheet { margin: 0 12px 12px 0; padding: 48px; min-height: calc(100dvh - var(--bar-h) - 12px); }
  body.has-actions .sheet { padding-bottom: 48px; }
}

/* ---------- adım çubuğu: masaüstünde kenar çubuğu, telefonda yatay şerit */
.steps ol { display: flex; gap: 4px; }
.steps li { position: relative; flex: 1 1 0; min-width: 0; }
.step { appearance: none; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; min-height: 62px; padding: 8px 2px; border: 0; border-radius: 16px; background: none; color: var(--muted-foreground); text-align: center; cursor: pointer; transition: background 160ms var(--ease), color 160ms var(--ease); }
.step:disabled { cursor: default; opacity: 0.55; }
.step:not(:disabled):hover { background: rgba(255, 255, 255, 0.7); color: var(--foreground); }
.step-ic { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, 0.75); flex: none; transition: background 200ms var(--ease), color 200ms var(--ease); }
.step-tx { display: block; min-width: 0; max-width: 100%; }
.step-l { display: block; font-size: 13px; font-weight: 500; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-s { display: none; font-size: 13px; line-height: 1.3; color: var(--muted-foreground); }
.step .i-done { display: none; }
.is-active .step { background: var(--card); color: var(--foreground); }
.is-active .step-ic, .is-done .step-ic { background: var(--primary-soft); color: var(--primary); }
.is-done .i-main { display: none; }
.is-done .i-done { display: block; animation: pop-in 360ms var(--ease) both; }
.steps li + li::before { content: ""; position: absolute; z-index: 1; left: calc(-50% + 16px); right: calc(50% + 20px); top: 23px; height: 2px; border-radius: 2px; background: var(--input); pointer-events: none; }
.steps li.line-on::before { background: var(--primary); transform-origin: left; animation: wire-fill-x 520ms var(--ease) both; }
@media (min-width: 1024px) {
  .steps ol { flex-direction: column; gap: 2px; }
  .step { flex-direction: row; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; text-align: left; border-radius: 14px; }
  .step-ic { width: 34px; height: 34px; }
  .step-l { font-size: 15px; }
  .step-s { display: block; }
  .steps li + li::before { left: 28px; right: auto; top: -8px; width: 2px; height: 14px; transform-origin: top; }
  .steps li.line-on::before { animation-name: wire-fill-y; }
  .steps li { animation: fade-in 300ms var(--ease) both; }
  .steps li:nth-child(1) { animation-delay: 140ms; } .steps li:nth-child(2) { animation-delay: 170ms; }
  .steps li:nth-child(3) { animation-delay: 200ms; } .steps li:nth-child(4) { animation-delay: 230ms; }
}

/* ---------- düğmeler ve alanlar */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none; transition: background 160ms var(--ease), color 160ms var(--ease), transform 100ms var(--ease), opacity 160ms; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--card); border-color: var(--border); color: var(--foreground); }
.btn-outline:hover { background: var(--muted); }
.btn-secondary { background: var(--secondary); color: var(--foreground); }
.btn-secondary:hover { background: #e8eaf1; }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.7); }
.sheet .btn-ghost:hover { background: var(--muted); }
.btn-danger { background: rgba(217, 63, 63, 0.1); color: var(--destructive); }
.btn-danger:hover { background: rgba(217, 63, 63, 0.18); }
.btn-lg { height: 44px; padding: 0 24px; font-weight: 600; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn-block { width: 100%; }
.link { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 2px; border: 0; background: none; color: var(--primary); font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; border-radius: 8px; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .ic { width: 16px; height: 16px; }
.icon-btn { appearance: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted-foreground); cursor: pointer; transition: background 160ms, color 160ms; }
.icon-btn:hover { background: var(--muted); color: var(--foreground); }
.field { display: block; }
.field > span { display: block; margin-bottom: 6px; color: var(--muted-foreground); font-size: 13px; }
.input { display: block; width: 100%; height: 40px; padding: 4px 12px; border: 1px solid var(--input); border-radius: var(--radius-input); background: var(--card); color: var(--foreground); outline: none; transition: border-color 160ms, box-shadow 160ms; }
.input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring); }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--secondary); gap: 2px; }
.seg button { appearance: none; flex: 1; min-height: 34px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--muted-foreground); font-size: 13px; font-weight: 500; cursor: pointer; transition: background 160ms, color 160ms; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgba(22, 24, 29, 0.08); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--input); }
.dot.good { background: var(--success); } .dot.warn { background: var(--warning); } .dot.brand { background: var(--primary); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-foreground); font-size: 12px; font-weight: 600; white-space: nowrap; }
.hint { margin-top: 8px; color: var(--destructive); font-size: 13px; }
.hint:empty { display: none; }
.note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding: 12px 16px; border-radius: 16px; background: var(--amber); color: var(--amber-foreground); font-size: 14px; animation: rise-in 360ms var(--ease) both; }
.note b { font-weight: 600; }
.note .grow { flex: 1; min-width: 220px; }
.note .link { color: var(--amber-foreground); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.note.is-error { background: rgba(217, 63, 63, 0.1); color: var(--destructive); }
.note.is-info { background: var(--primary-soft); color: var(--primary-soft-foreground); }
.note.is-info .link { color: var(--primary-soft-foreground); }

/* ---------- sayfa başlığı */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.ph > div:first-child { min-width: 0; }
.ph-desc { margin-top: 8px; color: var(--muted-foreground); max-width: 62ch; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1023px) {
  .actions.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; flex-wrap: nowrap; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--border); animation: rise-in 320ms var(--ease) both; }
  .actions.dock .btn { flex: 1; height: 46px; min-width: 0; padding: 0 12px; font-size: 14px; gap: 6px; }
  .actions.dock .btn.fit { flex: 0 0 auto; }
}

/* ---------- ana sayfa: yükleme */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.home-grid > * { min-width: 0; }
@media (min-width: 1024px) { .home-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 340px; padding: 36px 24px; border-radius: 22px; background: var(--muted); text-align: center; cursor: pointer; transition: background 200ms var(--ease), transform 200ms var(--ease); animation: rise-in 420ms var(--ease) 80ms both; }
.drop:hover { background: var(--secondary); }
.drop:focus-within { box-shadow: 0 0 0 3px var(--ring); }
.drop.is-over { background: var(--primary-soft); transform: scale(1.01); }
.drop-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--card); color: var(--primary); margin-bottom: 10px; transition: transform 300ms var(--ease); }
.drop:hover .drop-ic, .drop.is-over .drop-ic { transform: translateY(-3px) scale(1.04); }
.drop-ic .ic { width: 28px; height: 28px; }
.drop h2 { font-size: 20px; font-weight: 600; }
.drop p { color: var(--muted-foreground); max-width: 34ch; }
.drop .btn { margin-top: 14px; }
.drop-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 14px; }
.drop-btns .btn { margin-top: 0; }
.how { counter-reset: n; display: grid; gap: 18px; }
.how li { position: relative; padding-left: 40px; color: var(--muted-foreground); animation: rise-in 420ms var(--ease) both; }
.how li:nth-child(1) { animation-delay: 140ms; } .how li:nth-child(2) { animation-delay: 185ms; } .how li:nth-child(3) { animation-delay: 230ms; }
.how li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-soft-foreground); font-size: 13px; font-weight: 600; }
.how b { color: var(--foreground); font-weight: 600; }
.block { margin-top: 36px; }
.block h2 { font-size: 15px; font-weight: 600; }
.rows { margin-top: 10px; border-top: 1px solid var(--border); }
.rows li { border-bottom: 1px solid var(--border); animation: fade-in 280ms var(--ease) both; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 4px; color: inherit; text-decoration: none; border-radius: 12px; transition: background 160ms; }
.row:hover { background: var(--muted); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: block; color: var(--muted-foreground); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-st { color: var(--muted-foreground); font-size: 13px; text-align: right; white-space: nowrap; }
.tips ul { margin-top: 8px; display: grid; gap: 4px; color: var(--muted-foreground); }
.tips li { padding-left: 14px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--input); }
.foot { margin-top: 28px; color: var(--muted-foreground); font-size: 13px; max-width: 62ch; }
.phone-open { display: none; margin-top: 28px; gap: 16px; align-items: center; padding: 16px; border-radius: 20px; background: var(--muted); }
@media (pointer: fine) { .phone-open { display: flex; } }
.phone-open .url { font-weight: 600; word-break: break-all; }
.qr { flex: none; line-height: 0; border-radius: 10px; overflow: hidden; background: #fff; padding: 6px; }

/* ---------- okuma ekranı: kendi fotoğrafını tarayan ışık ve adımlar */
.scan { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(22, 24, 29, 0.28); animation: fade-in 220ms var(--ease) both; }
.scan-card { width: min(100%, 720px); display: grid; gap: 28px; padding: 28px; border-radius: var(--radius-sheet); background: var(--card); box-shadow: var(--popover-shadow); animation: dlg-in 300ms var(--ease) both; }
@media (min-width: 700px) { .scan-card { grid-template-columns: 220px minmax(0, 1fr); align-items: center; } }
.scan-photo { position: relative; width: 100%; max-width: 220px; aspect-ratio: 210 / 297; margin: 0 auto; border-radius: 14px; background: var(--muted); overflow: hidden; --scan-h: 270px; }
.scan-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-photo svg { position: absolute; inset: 8%; width: 84%; height: 84%; color: var(--input); }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--primary); box-shadow: 0 0 18px 4px rgba(81, 70, 225, 0.5); animation: scan-sweep 1.7s ease-in-out infinite alternate; }
.scan-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(81, 70, 225, 0.0), rgba(81, 70, 225, 0.08)); pointer-events: none; }
.scan-body h2 { font-size: 20px; font-weight: 600; }
.scan-body > p { margin-top: 4px; color: var(--muted-foreground); }
.phases { margin-top: 16px; }
.phases li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--muted-foreground); transition: color 300ms var(--ease); }
.phases li:last-child { border-bottom: 0; }
.phases li.is-run, .phases li.is-done { color: var(--foreground); }
.ph-ic { position: relative; display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ph-ic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--input); }
.is-run .ph-ic::before { width: 16px; height: 16px; background: none; border: 2px solid var(--input); border-top-color: var(--primary); animation: spin 0.8s linear infinite; }
.is-done .ph-ic::before { display: none; }
.is-done .ph-ic .ic { color: var(--primary); animation: pop-in 360ms var(--ease) both; }
.ph-ic .ic { display: none; width: 20px; height: 20px; }
.is-done .ph-ic .ic { display: block; }
.scan-time { margin-top: 14px; color: var(--muted-foreground); font-size: 13px; font-variant-numeric: tabular-nums; }

/* ---------- inceleme: ortak */
.stage { animation: rise-in 420ms var(--ease) backwards; }
.stage.no-anim { animation: none; }
/* telefonda alt çubuk "fixed": üst öğede transform kalmasın diye yalnızca saydamlık */
@media (max-width: 1023px) { .stage { animation-name: fade-in; } }
.btn .val { max-width: 16ch; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); font-weight: 600; }
.tickpop { position: absolute; right: 20px; top: 20px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; animation: pop-in 280ms var(--ease) both; }
.tickpop .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.count { font-variant-numeric: tabular-nums; }

/* kontrol adımı */
.check { display: grid; gap: 24px; }
@media (min-width: 1100px) { .check { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: start; } }
.progress { display: flex; gap: 3px; height: 6px; margin-bottom: 16px; }
.progress i { flex: 1; position: relative; border-radius: 3px; background: var(--secondary); overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.progress i.is-on::after { transform: none; }
.cellcard { position: relative; border-radius: 22px; background: var(--muted); padding: 22px 20px 20px; }
@media (min-width: 700px) { .cellcard { padding: 28px; } }
.cellcard.is-entering { animation: card-in 380ms var(--ease) both; }
.cellcard.is-leaving { animation: card-out 220ms var(--ease) both; }
.cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cc-title { font-size: 20px; font-weight: 600; line-height: 1.25; }
.cc-where { margin-top: 2px; color: var(--muted-foreground); }
.cc-reason { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--amber-foreground); font-size: 14px; }
.cc-reason .dot { margin-top: 7px; background: var(--warning); }
.cc-crop { margin-top: 18px; }
.cc-crop-img { display: block; padding: 8px; border-radius: 14px; background: #fff; }
.cc-crop-img img { display: block; width: 100%; height: auto; max-height: 120px; object-fit: contain; }
.cc-label { display: block; margin: 18px 0 8px; color: var(--muted-foreground); font-size: 13px; }
.crop-cap { display: block; margin-bottom: 6px; color: var(--muted-foreground); font-size: 13px; }
.reading { font: 600 28px/1.2 var(--mono); letter-spacing: 0; word-break: break-word; font-variant-numeric: tabular-nums; }
.reading.is-words { font-family: var(--font); font-size: 24px; letter-spacing: -0.01em; }
.reading.is-long { font-size: 20px; }
.reading .empty { color: var(--muted-foreground); font: 400 16px var(--font); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choices.is-long { grid-template-columns: 1fr; }
.choice { appearance: none; position: relative; min-height: 52px; padding: 8px 16px; border: 0; border-radius: 14px; background: var(--card); color: var(--foreground); text-align: left; cursor: pointer; font: 500 18px/1.2 var(--mono); word-break: break-word; box-shadow: inset 0 0 0 1px var(--input); transition: box-shadow 160ms var(--ease), background 160ms var(--ease), transform 100ms var(--ease); }
.choice:hover { box-shadow: inset 0 0 0 1.5px var(--muted-foreground); }
.choice:active { transform: translateY(1px); }
.choices.is-words .choice { font: 500 16px/1.25 var(--font); }
.choice[aria-pressed="true"] { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); color: var(--primary-soft-foreground); }
.choice kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--secondary); color: var(--muted-foreground); font: 600 11px/20px var(--font); text-align: center; }
@media (pointer: fine) { .choice kbd { display: block; } }
.cc-input { display: block; width: 100%; height: 52px; margin-top: 8px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card); color: var(--foreground); font: 500 20px var(--mono); box-shadow: inset 0 0 0 2px var(--primary); outline: none; }
.cc-input.is-words { font: 500 18px var(--font); }
.cc-input:focus { box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px var(--ring); }
.cc-tools { margin-top: 8px; }
.cc-actions { margin-top: 22px; }
.photo { display: none; }
@media (min-width: 1100px) { .photo { display: block; position: sticky; top: 24px; animation: fade-in 500ms var(--ease) 120ms both; } }
.photo-cap { margin-bottom: 8px; color: var(--muted-foreground); font-size: 13px; }
.photo-frame { position: relative; overflow: hidden; border-radius: 22px; background: var(--muted); padding: 10px; }
.photo-frame > div { position: relative; overflow: hidden; border-radius: 12px; line-height: 0; }
.photo-frame img { width: 100%; height: auto; display: block; }
.photo-mark { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; background: rgba(81, 70, 225, 0.10); box-shadow: 0 0 0 4000px rgba(22, 24, 29, 0.32); transition: transform 520ms var(--ease); pointer-events: none; }
.done-card { display: grid; justify-items: center; gap: 6px; padding: 56px 20px 48px; border-radius: 22px; background: var(--muted); text-align: center; animation: rise-in 420ms var(--ease) both; }
.done-tile { position: relative; display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 14px; border-radius: 24px; background: var(--primary); color: #fff; animation: pop-in 520ms var(--ease) 80ms both; }
.done-tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); animation: ring-out 900ms var(--ease) 200ms both; }
.done-tile .ic { width: 34px; height: 34px; stroke-width: 2.25; position: relative; z-index: 1; }
.done-card h2 { font-size: 22px; font-weight: 600; }
.done-card p { color: var(--muted-foreground); max-width: 46ch; }
.done-card .actions { margin-top: 18px; justify-content: center; }
.done-nums { display: flex; gap: 28px; margin-top: 10px; }
.done-nums div { text-align: center; }
.done-nums b { display: block; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.018em; }
.done-nums span { color: var(--muted-foreground); font-size: 13px; }

/* sütunlar adımı: Excel önizleme */
.grid-wrap { position: relative; max-height: min(66vh, 700px); overflow: auto; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scroll-behavior: smooth; }
.xl { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 100%; font-variant-numeric: tabular-nums; }
.xl th, .xl td { padding: 0; text-align: left; }
.xl thead th { position: sticky; top: 0; z-index: 3; background: var(--muted); border-bottom: 1px solid var(--border); vertical-align: bottom; font-weight: 400; }
.xl th.corner, .xl th.rowh { position: sticky; left: 0; z-index: 2; width: 46px; min-width: 46px; background: var(--muted); border-right: 1px solid var(--border); }
.xl thead th.corner { z-index: 4; }
.xl th.rowh { border-bottom: 1px solid var(--border); color: var(--muted-foreground); font-size: 13px; font-weight: 400; text-align: center; }
.xl th.rowh button, .xl th.rowh span { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 100%; min-height: 48px; cursor: pointer; }
.xl th.rowh span { cursor: default; }
.xl th.rowh button:hover { color: var(--primary); }
.xl th.colh { min-width: 160px; padding: 6px 6px 6px 8px; transition: background 200ms var(--ease); }
.colh-in { display: flex; align-items: center; gap: 2px; }
.colh .role { display: block; margin: 2px 0 0 8px; color: var(--primary-soft-foreground); font-size: 11px; font-weight: 600; line-height: 1.2; }
.colname { appearance: none; flex: 1; min-width: 0; min-height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--foreground); font-size: 13px; font-weight: 600; text-align: left; cursor: text; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background 160ms; }
.colname:hover { background: var(--card); box-shadow: inset 0 0 0 1px var(--input); }
.colname.is-pending { background: var(--amber); color: var(--amber-foreground); }
.colname i { font-style: normal; color: var(--muted-foreground); font-weight: 400; }
.colname-input { flex: 1; min-width: 0; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: var(--card); color: var(--foreground); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 2px var(--primary); outline: none; }
.colmenu { appearance: none; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 8px; background: none; color: var(--muted-foreground); cursor: pointer; transition: background 160ms, color 160ms; }
.colmenu:hover { background: var(--card); color: var(--foreground); }
.xl th.colh.is-key { background: var(--primary-soft); }
.xl td { position: relative; border-bottom: 1px solid var(--border); max-width: 280px; }
.xl tbody tr:last-child td, .xl tbody tr:last-child th { border-bottom: 0; }
.xl td > button { all: unset; box-sizing: border-box; display: block; width: 100%; min-height: 48px; padding: 14px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: background 160ms; }
.xl td > button:hover { background: var(--muted); }
.xl td > button:focus-visible { box-shadow: inset 0 0 0 2px var(--primary); border-radius: 0; }
.xl td.is-num > button { text-align: right; }
.xl td.is-key > button { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.xl td.is-pending { background: var(--amber); }
.xl td.is-pending > button { color: var(--amber-foreground); font-weight: 500; }
.xl td.is-pending > button:hover { background: #f8e6bd; }
.xl td.is-edited::after { content: ""; position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.xl td.is-empty > button { color: var(--muted-foreground); }
.xl td.is-dup > button { box-shadow: inset 3px 0 0 var(--destructive); }
.xl tr.flash td::before, .xl tr.flash th::before { content: ""; position: absolute; inset: 0; background: var(--primary-soft); pointer-events: none; animation: flash 1400ms var(--ease) both; }
.xl td.col-flash::before { content: ""; position: absolute; inset: 0; background: var(--primary-soft); pointer-events: none; animation: flash 1200ms var(--ease) both; }
.xl .is-new { animation: fade-in 420ms var(--ease) both; }
.xl .is-gone { animation: cell-out 220ms var(--ease) both; }
.xl.enter tbody tr { animation: rise-in 420ms var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms + 140ms); }
.grid-actions { display: flex; gap: 20px; margin-top: 10px; }
.page-image { margin-top: 28px; }
.page-image summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--primary); font-weight: 500; cursor: pointer; list-style: none; }
.page-image summary::-webkit-details-marker { display: none; }
.page-image img { display: block; margin-top: 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--border); }

/* siparişler adımı */
.orders { display: grid; gap: 20px; }
@media (min-width: 1024px) { .orders { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; } }
.orders-sheet { min-width: 0; animation: zoom-in 520ms var(--ease) both; }
.orders .grid-wrap { max-height: min(70vh, 720px); }
@media (max-width: 1023px) { .orders .grid-wrap { max-height: 46vh; } .slip { order: -1; } }
.xl-orders td { transition: background 240ms var(--ease), color 240ms var(--ease); }
.xl-orders td:not(.ord), .xl-orders th.rowh { opacity: 1; transition: opacity 260ms var(--ease), background 240ms var(--ease); }
.xl-orders tr.is-done:not(.is-now) td:not(.ord) { opacity: 0.55; }
.xl-orders tr.is-now td, .xl-orders tr.is-now th.rowh { background: var(--primary-soft); }
.xl-orders tr.is-now td { box-shadow: inset 0 2px 0 var(--primary), inset 0 -2px 0 var(--primary); }
.xl-orders tr.is-now th.rowh { color: var(--primary); font-weight: 600; box-shadow: inset 2px 0 0 var(--primary), inset 0 2px 0 var(--primary), inset 0 -2px 0 var(--primary); }
.xl-orders tr { cursor: pointer; }
.xl-orders tr:not(.is-now):hover td { background: var(--muted); }
.xl-orders td > span { display: block; min-height: 48px; padding: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xl-orders td.is-num > span { text-align: right; }
.xl-orders td.is-key > span { font-family: var(--mono); font-weight: 500; font-size: 14px; }
.xl-orders th.ordh, .xl-orders td.ord { position: sticky; right: 0; z-index: 1; min-width: 160px; background: var(--card); box-shadow: inset 1px 0 0 var(--border); animation: ord-in 520ms var(--ease) 140ms both; }
.xl-orders thead th.ordh { z-index: 3; background: var(--primary-soft); color: var(--primary-soft-foreground); font-weight: 600; font-size: 13px; padding: 0 14px; height: 50px; vertical-align: middle; }
.xl-orders td.ord > span { font-family: var(--mono); font-weight: 600; color: var(--primary-soft-foreground); }
.xl-orders td.ord.is-blank > span::before { content: "—"; color: var(--input); font-weight: 400; }
.xl-orders tr.is-now td.ord { background: var(--primary-soft); }
.xl-orders td.ord.is-live > span { color: var(--primary); }
.xl-orders td.ord.just > span { animation: pop-in 420ms var(--ease) both; }
.slip { position: sticky; top: 16px; padding: 22px 20px 20px; border-radius: 22px; background: var(--muted); animation: slide-in-right 460ms var(--ease) 120ms both; }
@media (max-width: 1023px) { .slip { top: 72px; z-index: 5; } }
@media (min-width: 1024px) { .slip { top: 24px; padding: 26px; } }
.slip-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.slip-count { font-size: 26px; font-weight: 600; letter-spacing: -0.018em; font-variant-numeric: tabular-nums; }
.slip-count small { margin-left: 6px; color: var(--muted-foreground); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.slip .progress { margin: 12px 0 18px; }
.slip-now { color: var(--muted-foreground); font-size: 13px; }
.ids { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 18px; margin: 10px 0 14px; }
.id { position: relative; min-width: 0; padding: 10px 12px; border-radius: 14px; background: var(--card); animation: rise-in 360ms var(--ease) both; }
.id dt { display: flex; align-items: center; justify-content: space-between; color: var(--muted-foreground); font-size: 12px; }
.id dd { margin-top: 2px; font: 600 19px/1.25 var(--mono); letter-spacing: 0; word-break: break-all; font-variant-numeric: tabular-nums; }
.id dd.is-empty { color: var(--input); }
.id .edit { all: unset; cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--muted-foreground); }
.id .edit:hover { background: var(--secondary); color: var(--primary); }
.id .edit .ic { width: 14px; height: 14px; }
.slip-rest { margin-bottom: 14px; color: var(--muted-foreground); font-size: 13px; }
.slip-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.slip-input { display: block; width: 100%; height: 58px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card); color: var(--foreground); font: 600 26px var(--mono); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; box-shadow: inset 0 0 0 2px var(--primary); outline: none; transition: box-shadow 160ms; }
.slip-input:focus { box-shadow: inset 0 0 0 2px var(--primary), 0 0 0 4px var(--ring); }
.slip-input::placeholder { color: var(--input); letter-spacing: 0; font-weight: 400; }
.slip-actions { display: flex; gap: 8px; margin-top: 14px; }
.slip-actions .btn-primary { flex: 1; min-width: 0; }
.slip-sub { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.slip-keys { margin-top: 12px; color: var(--muted-foreground); font-size: 12px; }
.slip-keys kbd { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 6px; background: var(--secondary); font: 600 11px/20px var(--font); text-align: center; }
.slip.is-finished { text-align: center; padding: 36px 24px 28px; }
.slip.is-finished .done-tile { margin: 0 auto 14px; }
.slip.is-finished .actions { justify-content: center; margin-top: 18px; flex-direction: column; }
.slip.is-finished .actions .btn { width: 100%; }

/* telefonda sipariş kartı: sabit durduğu için kısa olmalı (kimlikler tek satır, girdi ve düğmeler görünür) */
@media (max-width: 1023px) {
  .slip { padding: 14px 14px 14px; border-radius: 20px; }
  .slip-count { font-size: 22px; }
  .slip .progress { margin: 8px 0 8px; }
  .slip-now { font-size: 12px; }
  .ids { grid-template-columns: 1fr; gap: 6px; margin: 6px 0 10px; }
  .id { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-radius: 12px; }
  .id dt { justify-content: flex-start; gap: 6px; min-width: 96px; }
  .id dd { margin: 0; font-size: 16px; text-align: right; }
  .slip-rest { display: none; }
  .slip-field > span { margin-bottom: 4px; }
  .slip-input { height: 50px; font-size: 22px; }
  .slip-actions { margin-top: 10px; }
  .slip-actions .btn { height: 46px; }
  .slip-sub { margin-top: 2px; }
  .slip-sub .link { min-height: 32px; font-size: 14px; }
}

/* ---------- pencere */
.dlg { width: calc(100vw - 24px); max-width: 448px; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 0; border-radius: var(--radius-sheet); background: var(--card); color: var(--foreground); box-shadow: var(--popover-shadow); overscroll-behavior: contain; overflow: auto; }
.dlg::backdrop { background: rgba(22, 24, 29, 0.2); animation: fade-in 200ms var(--ease) both; }
.dlg[open] { animation: dlg-in 220ms var(--ease) both; }
.dlg-body { padding: 26px 24px 22px; }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.menu { display: grid; gap: 6px; margin-top: 16px; }
.menu .btn { justify-content: flex-start; width: 100%; }
.menu-sep { height: 1px; background: var(--border); margin: 8px 0; }
.dlg .cellcard { padding: 0; background: none; }
.dlg .cc-title { font-size: 20px; }
.dlg .cc-input { background: var(--muted); }
.dlg .choice { background: var(--muted); }
.dlg .cc-crop-img { background: var(--muted); }
.dlg .reading { font-size: 24px; }
.mv { display: flex; gap: 8px; }
.mv .btn { flex: 1; }

/* ---------- bildirim */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate3d(-50%, 0, 0); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--foreground); color: #fff; font-size: 14px; box-shadow: var(--popover-shadow); animation: toast-in 320ms var(--ease) both; }
.toast button { appearance: none; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 500; cursor: pointer; }
body.has-actions .toast { bottom: 96px; }
@media (min-width: 1024px) { body.has-actions .toast { bottom: 24px; } }

/* ---------- giriş */
.login-shell { display: grid; place-items: center; min-height: 100dvh; padding: 16px; }
.login-card { width: min(100%, 420px); padding: 36px 32px 32px; border-radius: var(--radius-sheet); background: var(--card); animation: rise-in 420ms var(--ease) both; }
.login-card .logo-tile { background: var(--muted); }
.login-card h1 { margin: 22px 0 6px; }
.login-form { display: grid; gap: 14px; margin-top: 22px; }
.login-form .input { height: 46px; }


/* ---------- kopyalanabilir rozetler (sipariş kartı) */
.ids { grid-template-columns: 1fr; gap: 8px; }
.id { position: relative; padding: 10px 14px 12px; transition: background 160ms var(--ease), transform 160ms var(--ease); }
.id.cp { cursor: pointer; }
.id.cp:hover { background: #fbfbfe; transform: translateY(-1px); }
.id.cp:active { transform: scale(0.99); }
.id dt { display: flex; align-items: center; gap: 8px; justify-content: flex-start; }
.id dt .lb { flex: 1; font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--muted-foreground); }
.id dt .acts { display: flex; align-items: center; gap: 2px; }
.id.crm dt .lb { flex: 1; }
.cpi { display: grid; place-items: center; width: 24px; height: 24px; color: var(--muted-foreground); opacity: 0; transition: opacity 160ms var(--ease); }
.cpi .ic { width: 15px; height: 15px; }
.id:hover .cpi { opacity: 1; }
@media (pointer: coarse) { .cpi { opacity: 1; } }
.kb { display: inline-block; padding: 0 6px; border-radius: 6px; background: var(--secondary); color: var(--muted-foreground); font: 600 10.5px/17px var(--font); letter-spacing: 0; }
.id-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cpb { appearance: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--primary-soft); color: var(--primary-soft-foreground); font: 600 12.5px var(--font); cursor: pointer; transition: background 160ms var(--ease), transform 100ms var(--ease); }
.cpb:hover { background: #e2dffa; }
.cpb:active { transform: translateY(1px); }
.cpb .ic { width: 14px; height: 14px; }
.cpb .kb { background: rgba(255, 255, 255, 0.7); color: var(--primary-soft-foreground); }
.cpb[disabled] { opacity: 0.4; pointer-events: none; }
.rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rchip { appearance: none; position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; max-width: 100%; padding: 5px 11px 6px; border: 0; border-radius: 12px; background: var(--card); color: var(--foreground); text-align: left; cursor: pointer; transition: background 160ms var(--ease), transform 160ms var(--ease); animation: rise-in 360ms var(--ease) 120ms backwards; }
.rchip:hover { background: #fbfbfe; transform: translateY(-1px); }
.rchip:active { transform: scale(0.98); }
.rchip .rl { font-size: 10.5px; line-height: 1.3; color: var(--muted-foreground); }
.rchip .rv { font-size: 13px; line-height: 1.3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cp.copied { box-shadow: inset 0 0 0 2px var(--primary); }
.cp.copied::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--primary); opacity: 0; animation: copy-flash 700ms var(--ease) both; pointer-events: none; }
.cp.copied::after { content: "Kopyalandı"; position: absolute; left: 50%; top: -4px; z-index: 6; padding: 4px 11px; border-radius: 999px; background: var(--foreground); color: #fff; font: 500 12px var(--font); white-space: nowrap; pointer-events: none; animation: copy-pop 1500ms var(--ease) both; }
.cp.copy-fail { box-shadow: inset 0 0 0 2px var(--destructive); }
@keyframes copy-flash { 0% { opacity: 0.22; } 100% { opacity: 0; } }
@keyframes copy-pop { 0% { opacity: 0; transform: translate(-50%, -40%) scale(0.85); } 14% { opacity: 1; transform: translate(-50%, -100%) scale(1); } 78% { opacity: 1; transform: translate(-50%, -100%); } 100% { opacity: 0; transform: translate(-50%, -150%); } }
.xl-orders td.ord.is-landing > span { opacity: 0; }
#slipDone { display: inline-block; }
.slip-count .bump { animation: bump 460ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.fly { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; transform-origin: left center; color: var(--primary); white-space: nowrap; will-change: transform, opacity; }
.spark { position: fixed; z-index: 90; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; background: var(--c, #5146e1); pointer-events: none; animation: spark 900ms var(--ease) both; }
@keyframes spark { 0% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } 100% { opacity: 0; transform: translate3d(var(--dx), var(--dy), 0) scale(0.35); } }

/* ---------- kontrol: komple geç, yakınlaşan fotoğraf */
.skip-line { margin-top: 14px; }
.photo-cap small { margin-left: 8px; color: var(--muted-foreground); opacity: 0.8; }
.zoomer { position: relative; overflow: hidden; border-radius: 12px; line-height: 0; cursor: zoom-in; }
.zoom-in { position: relative; transform-origin: 50% 50%; transition: transform 300ms var(--ease); will-change: transform; }
.zoomer.is-zoom { cursor: crosshair; }
.zoomer.is-zoom .zoom-in { transform: scale(2.6); }
.photo-frame > .zoomer { border-radius: 12px; }

/* ---------- adımlar arası geçiş: yöne göre kayar, başlık ve eylemler sırayla gelir */
@keyframes slide-fwd { from { opacity: 0; transform: translate3d(56px, 0, 0); } }
@keyframes slide-back { from { opacity: 0; transform: translate3d(-56px, 0, 0); } }
.stage[data-dir="fwd"] { animation: slide-fwd 520ms var(--ease) backwards; }
.stage[data-dir="back"] { animation: slide-back 520ms var(--ease) backwards; }
@media (max-width: 1023px) { .stage[data-dir] { animation-name: fade-in; } }
.stage:not(.no-anim) .ph h1 { animation: rise-in 560ms var(--ease) 70ms backwards; }
.stage:not(.no-anim) .ph-desc { animation: rise-in 560ms var(--ease) 130ms backwards; }
.stage:not(.no-anim) .progress { animation: fade-in 500ms var(--ease) 160ms backwards; }
.stage:not(.no-anim) .cc-actions, .stage:not(.no-anim) .skip-line { animation: rise-in 520ms var(--ease) 260ms backwards; }
.cellcard.is-entering .cc-head { animation: rise-in 420ms var(--ease) 60ms backwards; }
.cellcard.is-entering .cc-crop { animation: rise-in 440ms var(--ease) 110ms backwards; }
.cellcard.is-entering .choice { animation: rise-in 420ms var(--ease) backwards; }
.cellcard.is-entering .choice:nth-child(1) { animation-delay: 150ms; }
.cellcard.is-entering .choice:nth-child(2) { animation-delay: 200ms; }
.cellcard.is-entering .choice:nth-child(3) { animation-delay: 250ms; }
.cellcard.is-entering .choice:nth-child(n+4) { animation-delay: 290ms; }
.grid-actions, .page-image { animation: fade-in 500ms var(--ease) 350ms backwards; }
.xl td.is-edited::after { animation: pop-in 320ms var(--ease) both; }
.photo-mark { transition: transform 560ms var(--ease), opacity 300ms var(--ease); }
@media (max-width: 1023px) {
  .id { flex-wrap: wrap; }
  .id-btns { flex-basis: 100%; margin-top: 6px; }
  .id dt { min-width: 96px; }
  .rchips { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
