/* Saha Tahsilat demo · Liga Technology
   Token kaynağı: tanıtım broşürü (:root). Yeni değer gerekiyorsa önce token. */

:root {
  /* Marka (broşürle birebir) */
  --navy: #0B1F3F;
  --navy2: #15356B;
  --acc: #2F6BFF;
  --acc-s: #EAF1FF;
  --ok: #0E9F6E;
  --ok-s: #E7F7F0;
  --warn: #D98A0B;
  --warn-s: #FFF5E0;
  --err: #D9363E;
  --err-s: #FDECEC;
  --bg: #F3F6FB;
  --line: #DFE6F1;
  --ink: #16233A;
  --mut: #5C6B83;

  /* Metin için koyulaştırılmış durum tonları (AA 4.5:1, açık zemin üzerinde) */
  --acc-ink: #1E54D9;
  --acc-strong: #2860F0;
  --acc-press: #1E54D9;
  --acc-line: #9DBBFF;
  --acc-tint: #F6F9FF;
  --ok-ink: #0A7A55;
  --ok-press: #086447;
  --warn-ink: #8F5A04;
  --err-ink: #B4232B;
  --seg-bg: #E4EAF4;
  --line-soft: #EDF1F7;
  --check-line: #B4C0D4;
  --surface: #FFFFFF;
  --desk: #D7DDE7;
  --on-navy: #FFFFFF;
  --on-navy-mut: rgba(255, 255, 255, .72);
  --on-navy-line: rgba(255, 255, 255, .16);
  --on-navy-fill: rgba(255, 255, 255, .1);
  --cam-bg: #05090F;
  --cam-shade: rgba(5, 9, 15, .62);
  --scan-line: #56E0A6;
  --scan-glow: rgba(86, 224, 166, .55);
  --paper-ink: #1D2634;
  --paper-rule: #8A94A6;

  /* Tipografi */
  --font-head: 'Sora', 'Inter', system-ui, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'Roboto Mono', 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;
  --fs-xs: .75rem;      /* 12 */
  --fs-sm: .8125rem;    /* 13 */
  --fs-md: .9375rem;    /* 15 */
  --fs-input: 1.0625rem;/* 17, iOS zoom eşiğinin üstü */
  --fs-lg: 1.0625rem;   /* 17 */
  --fs-xl: 1.25rem;     /* 20 */
  --fs-2xl: 1.5rem;     /* 24 */
  --fs-3xl: 1.875rem;   /* 30 */
  --lh-tight: 1.2;
  --lh-body: 1.45;

  /* Aralık (4 tabanlı) */
  --s1: .25rem;
  --s2: .5rem;
  --s3: .75rem;
  --s4: 1rem;
  --s5: 1.25rem;
  --s6: 1.5rem;
  --s8: 2rem;
  --s10: 2.5rem;
  --s12: 3rem;

  /* Boyut */
  --tap: 2.75rem;        /* 44 */
  --tap-lg: 3.25rem;     /* 52 */
  --shutter: 4.5rem;     /* 72 */
  --avatar: 2.5rem;
  --col-max: 27.5rem;    /* 440 */
  --rcp-w: 18.5rem;      /* ~ 80mm fiş görünümü */
  --thumb-w: 6rem;

  /* Yarıçap */
  --r-xs: .25rem;
  --r-sm: .5rem;
  --r-md: .625rem;
  --r-lg: .875rem;
  --r-xl: 1.25rem;
  --r-pill: 999px;

  /* Gölge */
  --sh-1: 0 1px 2px rgba(11, 31, 63, .08);
  --sh-2: 0 6px 18px rgba(11, 31, 63, .12);
  --sh-3: 0 14px 36px rgba(4, 14, 38, .28);
  --ring: 0 0 0 3px rgba(47, 107, 255, .35);

  /* Hareket */
  --ease-out: cubic-bezier(.25, 1, .5, 1);   /* quart */
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 150ms;
  --t-base: 200ms;
  --t-slow: 250ms;

  /* Katman */
  --z-sticky: 10;
  --z-appbar: 20;
  --z-overlay: 30;
  --z-sheet: 40;
  --z-toast: 50;
  --z-banner: 60;

  /* Güvenli alan */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--desk);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i--sm { width: 1rem; height: 1rem; }
svg.i--lg { width: 1.75rem; height: 1.75rem; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.noscript { padding: var(--s6); }

:focus-visible { outline: none; box-shadow: var(--ring); }

/* ---------- Uygulama kolonu ---------- */
.app {
  position: relative;
  max-width: var(--col-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
@media (min-width: 30rem) {
  .app { box-shadow: var(--sh-3); }
}
.view { flex: 1; display: flex; flex-direction: column; }

.screen { flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }
.screen__body {
  flex: 1;
  padding: var(--s4) calc(var(--s4) + var(--safe-r)) var(--s6) calc(var(--s4) + var(--safe-l));
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.screen__body > .demo-note { margin-top: auto; }

/* Ekran geçişi */
.screen.is-forward { animation: in-forward var(--t-base) var(--ease-out); }
.screen.is-back { animation: in-back var(--t-base) var(--ease-out); }
.screen.is-fade { animation: in-fade var(--t-base) var(--ease-out); }
@keyframes in-forward { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes in-back { from { opacity: 0; transform: translateX(-1.5rem); } }
@keyframes in-fade { from { opacity: 0; } }

/* ---------- Üst bar ---------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: var(--z-appbar);
  background: var(--navy);
  color: var(--on-navy);
  padding: calc(var(--s2) + var(--safe-t)) calc(var(--s2) + var(--safe-r)) var(--s2) calc(var(--s2) + var(--safe-l));
}
.appbar__row { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); }
.appbar__brand { display: flex; flex-direction: column; gap: 2px; padding-left: var(--s2); margin-right: auto; }
.appbar__logo { height: 1.25rem; width: auto; }
.appbar__demo { font-size: var(--fs-xs); color: var(--on-navy-mut); letter-spacing: .01em; }
.appbar__title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); line-height: var(--lh-tight); margin-right: auto; }
.appbar__step { font-size: var(--fs-sm); color: var(--on-navy-mut); padding-right: var(--s2); white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s1); padding: var(--s2) var(--s2) 0; }
.steps span { height: 3px; border-radius: var(--r-pill); background: var(--on-navy-line); }
.steps span.is-done { background: var(--acc); }
.steps span.is-now { background: var(--on-navy); }

.iconbtn {
  width: var(--tap); height: var(--tap);
  display: grid; place-items: center;
  border-radius: var(--r-md);
  color: inherit;
  transition: background-color var(--t-fast) var(--ease-out);
}
.iconbtn:active { background: var(--on-navy-fill); }
@media (hover: hover) { .iconbtn:hover { background: var(--on-navy-fill); } }
.iconbtn--dark:active { background: var(--seg-bg); }

.roles {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--on-navy-fill);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 2px;
}
.roles button {
  min-height: 2.375rem;
  padding: 0 var(--s3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-navy-mut);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.roles button[aria-pressed="true"] { background: var(--surface); color: var(--navy); }

/* Ana ekran başlık bloğu (navy, üst barın devamı) */
.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: var(--s2) calc(var(--s5) + var(--safe-r)) var(--s6) calc(var(--s5) + var(--safe-l));
  display: grid;
  gap: var(--s4);
}
.hero h1 { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-2xl); line-height: var(--lh-tight); outline: none; }
.hero__date { color: var(--on-navy-mut); font-size: var(--fs-sm); margin-top: var(--s1); }
.hero__fig { display: grid; gap: 2px; }
.hero__fig span { font-size: var(--fs-sm); color: var(--on-navy-mut); }
.hero__fig b { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-3xl); line-height: 1.1; letter-spacing: -.01em; }
.hero__fig small { font-size: var(--fs-sm); color: var(--on-navy-mut); }

.erp {
  justify-self: start;
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: var(--tap);
  padding: 0 var(--s4) 0 var(--s3);
  border-radius: var(--r-pill);
  background: var(--on-navy-fill);
  border: 1px solid var(--on-navy-line);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--on-navy);
}
.erp__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--scan-line); flex: none; }
.erp small { font-weight: 400; color: var(--on-navy-mut); }
.erp.is-busy svg { animation: spin 900ms linear infinite; }
.erp.is-busy .erp__dot { display: none; }
.erp:not(.is-busy) svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Bölüm başlığı ---------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.sec-h h2 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-md); color: var(--navy); }
.sec-h span { font-size: var(--fs-sm); color: var(--mut); }
.lbl { font-size: var(--fs-sm); font-weight: 600; color: var(--mut); }

/* ---------- Liste satırları ---------- */
.list { display: grid; gap: var(--s2); padding: 0; list-style: none; }
.row {
  width: 100%;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 4rem;
  padding: var(--s3) var(--s3) var(--s3) var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
button.row:active, a.row:active { transform: scale(.985); background: var(--acc-tint); }
@media (hover: hover) { button.row:hover { border-color: var(--acc-line); } }
.row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.row__main b { font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__main small { font-size: var(--fs-sm); color: var(--mut); }
.row__end { display: grid; justify-items: end; gap: var(--s1); text-align: right; }
.row__amt { font-weight: 700; color: var(--navy); white-space: nowrap; }
.row__end small { font-size: var(--fs-xs); color: var(--mut); }
.row > svg.i:last-child { color: var(--mut); }

.av {
  width: var(--avatar); height: var(--avatar);
  border-radius: 50%;
  background: var(--acc);
  color: var(--on-navy);
  display: grid; place-items: center;
  font-weight: 700; font-size: var(--fs-sm);
  flex: none;
}
.av--navy { background: var(--navy2); }

.pill {
  display: inline-flex; align-items: center; gap: var(--s1);
  font-size: var(--fs-xs); font-weight: 600;
  padding: 2px var(--s2);
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.pill--ok { background: var(--ok-s); color: var(--ok-ink); }
.pill--warn { background: var(--warn-s); color: var(--warn-ink); }
.pill--err { background: var(--err-s); color: var(--err-ink); }
.pill--acc { background: var(--acc-s); color: var(--acc-ink); }

/* ---------- Boş durum ---------- */
.empty {
  display: grid; justify-items: center; gap: var(--s3);
  text-align: center;
  padding: var(--s8) var(--s5);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--mut);
}
.empty__ico { width: 3.5rem; height: 3.5rem; border-radius: var(--r-lg); background: var(--acc-s); color: var(--acc-ink); display: grid; place-items: center; }
.empty b { color: var(--navy); font-size: var(--fs-md); }
.empty p { font-size: var(--fs-sm); max-width: 30ch; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap-lg);
  padding: 0 var(--s5);
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: var(--fs-md);
  background: var(--acc-strong);
  color: var(--on-navy);
  border: 1px solid transparent;
  text-align: center;
  line-height: var(--lh-tight);
  transition: background-color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
  -webkit-user-select: none; user-select: none;
}
.btn:active:not(:disabled) { transform: scale(.98); background: var(--acc-press); }
@media (hover: hover) { .btn:hover:not(:disabled) { background: var(--acc-press); } }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ok { background: var(--ok-ink); }
.btn--ok:active:not(:disabled) { background: var(--ok-press); }
@media (hover: hover) { .btn--ok:hover:not(:disabled) { background: var(--ok-press); } }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:active:not(:disabled) { background: var(--bg); }
@media (hover: hover) { .btn--ghost:hover:not(:disabled) { background: var(--bg); } }
.btn--dashed { background: var(--surface); color: var(--acc-ink); border: 1.5px dashed var(--acc-line); }
.btn--dashed:active:not(:disabled) { background: var(--acc-tint); }
@media (hover: hover) { .btn--dashed:hover:not(:disabled) { background: var(--acc-tint); } }
.btn--danger { background: var(--surface); color: var(--err-ink); border-color: var(--err-s); }
.btn--danger:active:not(:disabled) { background: var(--err-s); }
@media (hover: hover) { .btn--danger:hover:not(:disabled) { background: var(--err-s); } }
.btn--warn { background: var(--warn-ink); }
.btn--warn:active:not(:disabled) { background: var(--paper-ink); }
.btn--sm { min-height: var(--tap); padding: 0 var(--s4); font-size: var(--fs-sm); }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
  content: "";
  width: 1rem; height: 1rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
.filebtn { position: relative; cursor: pointer; }
.filebtn input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filebtn:focus-within { box-shadow: var(--ring); }
/* [hidden] must win over component display rules (class + attribute > class) */
:is(.camctl, .shutter, .panel, .printer, .field__warn, .field__err, .cam__err, .seg__badge)[hidden] { display: none; }
.link {
  display: inline-flex; align-items: center; gap: var(--s1);
  min-height: var(--tap);
  color: var(--acc-ink);
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* ---------- Alt yapışkan aksiyon barı ---------- */
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky);
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(11, 31, 63, .06);
  padding: var(--s3) calc(var(--s4) + var(--safe-r)) calc(var(--s3) + var(--safe-b)) calc(var(--s4) + var(--safe-l));
  display: grid;
  gap: var(--s3);
}
.actionbar__sum { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.actionbar__sum span { font-size: var(--fs-sm); color: var(--mut); }
.actionbar__sum b { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl); color: var(--navy); }
.actionbar__hint { font-size: var(--fs-xs); color: var(--mut); text-align: center; }
.actionbar__duo { display: grid; grid-template-columns: auto 1fr; gap: var(--s2); }
.actionbar__duo > .btn { white-space: nowrap; }
.actionbar__even { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }

/* ---------- Cari kartı ---------- */
.cust {
  display: flex; gap: var(--s3); align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s3);
}
.cust b { display: block; color: var(--navy); font-weight: 600; }
.cust small { font-size: var(--fs-sm); color: var(--mut); }

/* ---------- Segment ---------- */
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: var(--seg-bg);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 3px;
}
.seg button {
  min-height: var(--tap);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--mut);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: var(--sh-1); }
.seg__badge { font-size: var(--fs-xs); background: var(--acc-s); color: var(--acc-ink); border-radius: var(--r-pill); padding: 0 var(--s2); line-height: 1.5; }

/* ---------- Arama ---------- */
.search { position: relative; }
.search svg { position: absolute; left: var(--s3); top: 50%; transform: translateY(-50%); color: var(--mut); pointer-events: none; }
.search input { padding-left: calc(var(--s3) + 1.25rem + var(--s2)); }

/* ---------- Form ---------- */
.field { display: grid; gap: var(--s2); }
.field__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 1.25rem; }
.field label, .field__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.input {
  width: 100%;
  min-height: var(--tap-lg);
  padding: 0 var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-input);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: var(--mut); opacity: 1; }
.input:focus { outline: none; border-color: var(--acc); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--err); background: var(--err-s); }
.input.is-missing { border-color: var(--warn); background: var(--warn-s); }
textarea.input { padding: var(--s3); min-height: 5.5rem; resize: vertical; line-height: var(--lh-body); }
.input-money { position: relative; }
.input-money > span { position: absolute; left: var(--s3); top: 50%; transform: translateY(-50%); color: var(--mut); font-weight: 600; pointer-events: none; }
.input-money .input { padding-left: calc(var(--s3) + 1.25rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.field__err { font-size: var(--fs-sm); color: var(--err-ink); font-weight: 500; }
.field__help { font-size: var(--fs-sm); color: var(--mut); }
.field__warn { font-size: var(--fs-sm); color: var(--warn-ink); font-weight: 500; display: flex; gap: var(--s1); align-items: center; }

.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); border: 0; padding: 0; }
.choice legend { font-size: var(--fs-sm); font-weight: 600; margin-bottom: var(--s2); padding: 0; }
.choice label {
  position: relative;
  min-height: var(--tap-lg);
  display: grid; place-items: center;
  text-align: center;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--mut);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--acc); background: var(--acc-tint); color: var(--navy); }
.choice label:has(input:focus-visible) { box-shadow: var(--ring); }

/* AI rozeti */
.ai {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
  background: var(--acc-s); color: var(--acc-ink);
  border-radius: var(--r-pill);
  padding: 1px var(--s2);
}
.ai--edit { background: var(--seg-bg); color: var(--mut); letter-spacing: 0; font-weight: 600; }

/* ---------- Fatura satırı ---------- */
.inv {
  position: relative;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 4rem;
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.inv:has(input:checked) { border-color: var(--acc); background: var(--acc-tint); }
.inv:has(input:focus-visible) { box-shadow: var(--ring); }
.inv:has(input:disabled) { cursor: not-allowed; background: var(--bg); }
.inv input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cb {
  width: 1.375rem; height: 1.375rem;
  border: 1.5px solid var(--check-line);
  border-radius: var(--r-xs);
  display: grid; place-items: center;
  color: transparent;
  background: var(--surface);
  flex: none;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.cb svg { width: .9rem; height: .9rem; stroke-width: 2.6; }
.inv:has(input:checked) .cb { background: var(--acc); border-color: var(--acc); color: var(--on-navy); }
.inv__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inv__main b { color: var(--navy); font-weight: 600; }
.inv__main small { font-size: var(--fs-sm); color: var(--mut); }
.inv__amt { display: grid; justify-items: end; gap: 2px; }
.inv__amt b { font-weight: 700; color: var(--navy); white-space: nowrap; }
.inv__amt small { font-size: var(--fs-xs); color: var(--mut); white-space: nowrap; }

/* ---------- Bilgi mesajı ---------- */
.msg {
  display: flex; gap: var(--s2); align-items: flex-start;
  padding: var(--s3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1.4;
}
.msg svg.i { margin-top: 1px; }
.msg b { font-weight: 700; }
.msg--ok { background: var(--ok-s); color: var(--ok-ink); }
.msg--warn { background: var(--warn-s); color: var(--warn-ink); }
.msg--err { background: var(--err-s); color: var(--err-ink); }
.msg--info { background: var(--acc-s); color: var(--acc-ink); }
.msg__body { display: grid; gap: var(--s2); flex: 1; }
.msg__body .btn { justify-self: start; }

/* ---------- Bakiye bloğu ---------- */
.bal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); display: grid; gap: var(--s3); }
.kv { display: flex; justify-content: space-between; gap: var(--s3); align-items: baseline; font-size: var(--fs-md); }
.kv span { color: var(--mut); }
.kv b { color: var(--navy); font-weight: 600; text-align: right; }
.kv--total { border-top: 1px solid var(--line); padding-top: var(--s3); }
.kv--total b { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl); }
.bar { height: .5rem; border-radius: var(--r-pill); background: var(--seg-bg); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--navy2); border-radius: inherit; transform: translateX(calc(var(--p, 0%) - 100%)); transition: transform var(--t-slow) var(--ease-out); }
.bar--ok > i { background: var(--ok); }

/* ---------- Çek listesi ---------- */
.clist { display: grid; gap: var(--s2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s2); }
.citem { display: flex; align-items: center; gap: var(--s2); border-radius: var(--r-md); }
.citem__open {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: var(--s3);
  min-height: 3.75rem;
  padding: var(--s2);
  border-radius: var(--r-md);
  text-align: left;
}
.citem__open:active { background: var(--acc-tint); }
.citem__k { width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: var(--acc-s); color: var(--acc-ink); display: grid; place-items: center; flex: none; overflow: hidden; }
.citem__k img { width: 100%; height: 100%; object-fit: cover; }
.citem__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.citem__main b { color: var(--navy); font-weight: 600; font-size: var(--fs-md); }
.citem__main small { font-size: var(--fs-xs); color: var(--mut); }
.citem__amt { font-weight: 700; color: var(--navy); white-space: nowrap; display: grid; justify-items: end; gap: 2px; }
.citem__del { width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: var(--r-md); color: var(--mut); flex: none; }
.citem__del:active { background: var(--err-s); color: var(--err-ink); }
.citem + .citem { border-top: 1px solid var(--line-soft); padding-top: var(--s2); }
.st { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-xs); font-weight: 600; }
.st--ok { color: var(--ok-ink); }
.st--warn { color: var(--warn-ink); }
.st--error { color: var(--err-ink); }

.sumbar { display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: var(--s3); background: var(--navy); color: var(--on-navy); border-radius: var(--r-md); padding: var(--s3) var(--s4); }
.sumbar small { display: block; font-size: var(--fs-xs); color: var(--on-navy-mut); }
.sumbar b { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-md); }

.ocrline { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--mut); min-height: 1.5rem; }
.ocrline .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--warn); flex: none; }
.ocrline.is-ready .dot { background: var(--ok); }
.ocrline.is-loading .dot { animation: pulse 1.2s var(--ease-out) infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.compare { display: grid; gap: var(--s2); }

/* ---------- Kamera / tarama ---------- */
.screen--cam {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  max-width: var(--col-max);
  margin: 0 auto;
  background: var(--cam-bg);
  color: var(--on-navy);
  min-height: 0;
  overflow: hidden;
}
.camhead {
  position: absolute; left: 0; right: 0; top: 0;
  z-index: 2;
  display: flex; align-items: center; gap: var(--s2);
  padding: calc(var(--s2) + var(--safe-t)) calc(var(--s2) + var(--safe-r)) var(--s2) calc(var(--s2) + var(--safe-l));
  background: linear-gradient(to bottom, rgba(5, 9, 15, .7), transparent);
}
.camhead h1 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); margin-right: auto; outline: none; }
.camhead .link { color: var(--on-navy); padding: 0 var(--s3); }
.cam { position: absolute; inset: 0; }
.cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam__guide {
  position: absolute;
  left: 50%; top: 44%;
  width: min(88%, 30rem);
  aspect-ratio: 2.2 / 1;
  transform: translate(-50%, -50%);
  border-radius: var(--r-md);
  box-shadow: 0 0 0 200vmax var(--cam-shade);
  pointer-events: none;
}
.cam__guide i { position: absolute; width: 1.75rem; height: 1.75rem; border: 3px solid var(--on-navy); }
.cam__guide i:nth-of-type(1) { left: -3px; top: -3px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r-md); }
.cam__guide i:nth-of-type(2) { right: -3px; top: -3px; border-left: 0; border-bottom: 0; border-top-right-radius: var(--r-md); }
.cam__guide i:nth-of-type(3) { left: -3px; bottom: -3px; border-right: 0; border-top: 0; border-bottom-left-radius: var(--r-md); }
.cam__guide i:nth-of-type(4) { right: -3px; bottom: -3px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r-md); }
.cam__guide.is-live i { border-color: var(--scan-line); }
.cam__hint, .cam__sub { position: absolute; left: -2rem; right: -2rem; text-align: center; }
.cam__hint { bottom: calc(100% + var(--s4)); font-weight: 600; font-size: var(--fs-md); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.cam__sub { top: calc(100% + var(--s4)); font-size: var(--fs-sm); color: var(--on-navy-mut); }
.cam__flash { position: absolute; inset: 0; background: var(--on-navy); opacity: 0; pointer-events: none; }
.cam__flash.is-on { animation: flash 260ms var(--ease-out); }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam__err {
  position: absolute; left: var(--s4); right: var(--s4); top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s5);
  display: grid; gap: var(--s3);
  box-shadow: var(--sh-3);
}
.cam__err h2 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); color: var(--navy); display: flex; gap: var(--s2); align-items: center; }
.cam__err h2 svg { color: var(--warn-ink); }
.cam__err p { font-size: var(--fs-sm); color: var(--mut); }
.camctl {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: var(--s3);
  padding: var(--s5) calc(var(--s4) + var(--safe-r)) calc(var(--s6) + var(--safe-b)) calc(var(--s4) + var(--safe-l));
  background: linear-gradient(to top, rgba(5, 9, 15, .8), transparent);
}
.camctl__side {
  position: relative;
  display: grid; justify-items: center; gap: var(--s1);
  min-height: var(--tap-lg);
  padding: var(--s1);
  font-size: var(--fs-xs); font-weight: 600;
  color: var(--on-navy);
  border-radius: var(--r-md);
  cursor: pointer;
}
.camctl__side:active { background: var(--on-navy-fill); }
.camctl__side:focus-within { box-shadow: var(--ring); }
.camctl__side input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shutter {
  width: var(--shutter); height: var(--shutter);
  border-radius: 50%;
  border: 4px solid var(--on-navy);
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.shutter::after { content: ""; width: calc(var(--shutter) - 1rem); height: calc(var(--shutter) - 1rem); border-radius: 50%; background: var(--on-navy); }
.shutter:active:not(:disabled) { transform: scale(.92); }
.shutter:disabled { opacity: .35; cursor: not-allowed; }

/* Okuma aşaması */
.read {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s5);
  padding: calc(var(--s12) + var(--safe-t)) calc(var(--s5) + var(--safe-r)) calc(var(--s8) + var(--safe-b)) calc(var(--s5) + var(--safe-l));
}
.read__frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--on-navy-line);
}
.read__frame img, .read__frame canvas { width: 100%; height: auto; }
.read__frame::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--scan-line);
  box-shadow: 0 0 14px 4px var(--scan-glow);
  animation: sweep 1.6s var(--ease-out) infinite alternate;
}
@keyframes sweep { from { top: 4%; } to { top: 94%; } }
.read__stage { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); text-align: center; }
.read__meta { display: grid; gap: var(--s2); }
.read__pct { text-align: center; font-size: var(--fs-sm); color: var(--on-navy-mut); }
.progress { height: .375rem; border-radius: var(--r-pill); background: var(--on-navy-line); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--scan-line); border-radius: inherit; transform: translateX(calc(var(--p, 0%) - 100%)); transition: transform var(--t-base) var(--ease-out); }
.read .btn--ghost { justify-self: center; align-self: center; background: transparent; color: var(--on-navy); border-color: var(--on-navy-line); }

/* Örnek çek seçici */
.samples { display: grid; gap: var(--s3); }
.sample {
  display: flex; align-items: center; gap: var(--s3);
  width: 100%;
  padding: var(--s2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  text-align: left;
  min-height: var(--tap-lg);
}
.sample:active { background: var(--acc-tint); border-color: var(--acc); }
.sample img { width: var(--thumb-w); aspect-ratio: 2.2 / 1; object-fit: cover; border-radius: var(--r-xs); background: var(--bg); border: 1px solid var(--line-soft); }
.sample b { color: var(--navy); font-weight: 600; flex: 1; }

/* İnceleme */
.chqimg { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.chqimg img { width: 100%; height: auto; }
.meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: var(--fs-sm); color: var(--mut); align-items: center; }
.meta span { display: inline-flex; gap: var(--s1); align-items: center; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); display: grid; gap: var(--s4); }
.panel__h { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); }
.panel__h h2 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-md); color: var(--navy); }

.checks { list-style: none; padding: 0; display: grid; gap: var(--s3); }
.checks li { display: flex; gap: var(--s3); align-items: flex-start; }
.checks .ck { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; flex: none; }
.checks .ck svg { width: 1rem; height: 1rem; stroke-width: 2.4; }
.checks .ck--ok { background: var(--ok-s); color: var(--ok-ink); }
.checks .ck--warn { background: var(--warn-s); color: var(--warn-ink); }
.checks .ck--error { background: var(--err-s); color: var(--err-ink); }
.checks b { display: block; font-weight: 600; color: var(--navy); font-size: var(--fs-md); }
.checks p { font-size: var(--fs-sm); color: var(--mut); }

details.raw { font-size: var(--fs-sm); }
details.raw summary { min-height: var(--tap); display: flex; align-items: center; color: var(--acc-ink); font-weight: 600; cursor: pointer; list-style-position: inside; }
details.raw pre { margin-top: var(--s2); padding: var(--s3); background: var(--bg); border-radius: var(--r-md); font-family: var(--font-mono); font-size: var(--fs-xs); white-space: pre-wrap; word-break: break-word; max-height: 16rem; overflow: auto; color: var(--ink); }

/* ---------- Durum ekranı ---------- */
.status { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding: var(--s6) var(--s2) var(--s2); }
.status__ico { width: 4rem; height: 4rem; border-radius: 50%; display: grid; place-items: center; background: var(--warn-s); color: var(--warn-ink); }
.status__ico svg { width: 2rem; height: 2rem; }
.status__ico--ok { background: var(--ok-s); color: var(--ok-ink); }
.status__ico--err { background: var(--err-s); color: var(--err-ink); }
.status h1 { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl); color: var(--navy); outline: none; }
.status p { color: var(--mut); font-size: var(--fs-md); max-width: 32ch; }

.timeline { list-style: none; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 1.75rem 1fr; gap: var(--s3); position: relative; padding-bottom: var(--s4); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: calc(.875rem - 1px); top: 1.75rem; bottom: 0; width: 2px; background: var(--line); }
.timeline .tdot { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--seg-bg); color: var(--mut); }
.timeline .tdot svg { width: .95rem; height: .95rem; stroke-width: 2.4; }
.timeline .tdot--ok { background: var(--ok-s); color: var(--ok-ink); }
.timeline .tdot--wait { background: var(--warn-s); color: var(--warn-ink); }
.timeline .tdot--wait svg { animation: pulse 1.4s var(--ease-out) infinite; }
.timeline .tdot--err { background: var(--err-s); color: var(--err-ink); }
.timeline b { display: block; color: var(--navy); font-weight: 600; }
.timeline small { font-size: var(--fs-sm); color: var(--mut); }

/* ---------- Bildirim / onay ---------- */
.notif { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: var(--s4); display: grid; gap: var(--s3); }
.notif__hd { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--mut); }
.notif__app { width: 1.75rem; height: 1.75rem; border-radius: var(--r-sm); background: var(--navy); color: var(--on-navy); display: grid; place-items: center; }
.notif__app svg { width: 1rem; height: 1rem; }
.notif__hd span:last-child { margin-left: auto; }
.notif h1, .notif h2 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); color: var(--navy); outline: none; }
.dl { display: grid; }
.dl > div { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line-soft); font-size: var(--fs-md); }
.dl > div:last-child { border-bottom: 0; }
.dl dt { color: var(--mut); }
.dl dd { color: var(--navy); font-weight: 600; text-align: right; }
.dl--total dd { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xl); }

.plines { display: grid; gap: var(--s2); list-style: none; padding: 0; }
.pline { display: flex; gap: var(--s3); align-items: center; }
.pline__img { width: var(--thumb-w); aspect-ratio: 2.2 / 1; border-radius: var(--r-xs); overflow: hidden; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; color: var(--mut); flex: none; }
.pline__img img { width: 100%; height: 100%; object-fit: cover; }
.pline__img--btn { cursor: zoom-in; }
.pline__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pline__main b { color: var(--navy); font-weight: 600; font-size: var(--fs-md); }
.pline__main small { font-size: var(--fs-xs); color: var(--mut); }
.pline__amt { font-weight: 700; color: var(--navy); white-space: nowrap; }

.reject { display: grid; gap: var(--s3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { min-height: 2.25rem; padding: 0 var(--s3); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.chip:active { background: var(--acc-tint); border-color: var(--acc); }

/* Üstten kayan bildirim */
.banner-slot { position: fixed; left: 0; right: 0; top: 0; z-index: var(--z-banner); max-width: var(--col-max); margin: 0 auto; pointer-events: none; padding: calc(var(--s2) + var(--safe-t)) var(--s2) 0; }
.banner {
  pointer-events: auto;
  display: flex; align-items: flex-start; gap: var(--s2);
  background: rgba(255, 255, 255, .97);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  border: 1px solid var(--line);
  animation: drop var(--t-slow) var(--ease-expo);
}
.banner.is-out { animation: lift var(--t-base) var(--ease-out) forwards; }
@keyframes drop { from { transform: translateY(-120%); opacity: 0; } }
@keyframes lift { to { transform: translateY(-120%); opacity: 0; } }
.banner__open { flex: 1; display: grid; gap: 2px; text-align: left; padding: var(--s3) var(--s1) var(--s3) var(--s3); min-height: var(--tap-lg); border-radius: var(--r-xl); }
.banner__open .notif__hd { font-size: var(--fs-xs); }
.banner__open b { font-weight: 600; color: var(--navy); font-size: var(--fs-md); }
.banner__open small { font-size: var(--fs-sm); color: var(--mut); }
.banner__close { width: var(--tap); height: var(--tap); display: grid; place-items: center; color: var(--mut); border-radius: var(--r-md); margin: var(--s1); }

/* Toast */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--s12) + var(--s6) + var(--safe-t)); z-index: var(--z-toast); max-width: var(--col-max); margin: 0 auto; padding: 0 var(--s4); display: grid; gap: var(--s2); pointer-events: none; }
.toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s3);
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--r-md);
  padding: var(--s3) var(--s4);
  font-size: var(--fs-sm);
  font-weight: 500;
  box-shadow: var(--sh-3);
  animation: rise var(--t-base) var(--ease-out);
}
.toast--err { background: var(--err-ink); }
.toast span { flex: 1; }
.toast button { min-height: 2.25rem; padding: 0 var(--s2); font-weight: 700; color: var(--acc-line); }
@keyframes rise { from { transform: translateY(-.75rem); opacity: 0; } }

/* ---------- Alt sayfa (menü / örnek seçici) ---------- */
dialog.sheet {
  position: fixed;
  inset: auto 0 0 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--col-max);
  max-height: 85dvh;
  border: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s2) calc(var(--s4) + var(--safe-r)) calc(var(--s5) + var(--safe-b)) calc(var(--s4) + var(--safe-l));
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-3);
}
dialog.sheet[open] { animation: sheet-up var(--t-slow) var(--ease-expo); }
dialog.sheet::backdrop { background: rgba(5, 12, 25, .5); }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet__grab { width: 2.5rem; height: 4px; border-radius: var(--r-pill); background: var(--line); margin: 0 auto var(--s3); }
.sheet__h { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.sheet__h h2 { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-lg); color: var(--navy); }
.menu { display: grid; gap: var(--s1); list-style: none; padding: 0; }
.menu button {
  width: 100%;
  display: flex; align-items: center; gap: var(--s3);
  min-height: var(--tap-lg);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-md);
  text-align: left;
  font-weight: 500;
}
.menu button:active { background: var(--bg); }
.menu button.is-danger { color: var(--err-ink); }
.menu small { display: block; font-size: var(--fs-xs); color: var(--mut); font-weight: 400; }
.sheet__foot { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--mut); }

/* ---------- Makbuz ---------- */
.rcp-wrap { background: var(--seg-bg); border-radius: var(--r-lg); padding: var(--s6) var(--s3) var(--s8); }
.rcp {
  position: relative;
  width: 100%;
  max-width: var(--rcp-w);
  margin: 0 auto;
  background: var(--surface);
  padding: var(--s5) var(--s4) var(--s6);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--paper-ink);
  box-shadow: var(--sh-2);
  font-variant-numeric: tabular-nums;
}
.rcp::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.5rem;
  height: .5rem;
  background:
    linear-gradient(-45deg, transparent .35rem, var(--surface) 0) 0 0 / .7rem .5rem,
    linear-gradient(45deg, transparent .35rem, var(--surface) 0) 0 0 / .7rem .5rem;
  transform: scaleY(-1);
}
.rcp .c { text-align: center; }
.rcp .t { font-weight: 700; font-size: var(--fs-md); letter-spacing: .06em; }
.rcp hr { border: 0; border-top: 1px dashed var(--paper-rule); margin: var(--s2) 0; }
.rcp .r { display: flex; justify-content: space-between; gap: var(--s2); }
.rcp .r > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.rcp .r > span:last-child { text-align: right; white-space: nowrap; }
.rcp .sub { font-size: var(--fs-xs); color: var(--mut); padding-left: var(--s2); }
.rcp .big { font-weight: 700; font-size: var(--fs-md); }
.rcp .sig { margin-top: var(--s6); border-top: 1px solid var(--paper-ink); padding-top: var(--s1); text-align: center; font-size: var(--fs-xs); }
.rcp .qr { display: grid; justify-items: center; gap: var(--s1); margin-top: var(--s4); font-size: var(--fs-xs); }
.rcp .qr svg { width: 6rem; height: 6rem; shape-rendering: crispEdges; }
.rcp.is-printing { animation: feed 1.4s var(--ease-out); }
@keyframes feed { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.chiprow { display: flex; flex-wrap: wrap; gap: var(--s2); }
.printer { display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); }
.printer__ico { width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: var(--acc-s); color: var(--acc-ink); display: grid; place-items: center; flex: none; }
.printer.is-done .printer__ico { background: var(--ok-s); color: var(--ok-ink); }
.printer.is-busy .printer__ico svg { animation: pulse 1s var(--ease-out) infinite; }
.printer b { display: block; color: var(--navy); font-weight: 600; }
.printer small { color: var(--mut); }

.demo-note { font-size: var(--fs-xs); color: var(--mut); text-align: center; padding-top: var(--s2); }

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 1ms; --t-base: 1ms; --t-slow: 1ms; }
  .screen.is-forward, .screen.is-back, .screen.is-fade { animation: in-fade 120ms linear; }
  .banner, dialog.sheet[open], .toast { animation: in-fade 120ms linear; }
  .banner.is-out { animation: none; opacity: 0; }
  .read__frame::after { animation: none; top: 50%; opacity: .8; }
  .erp.is-busy svg, .btn.is-loading::before { animation-duration: 2s; }
  .timeline .tdot--wait svg, .ocrline.is-loading .dot, .printer.is-busy .printer__ico svg { animation: none; }
  .cam__flash.is-on { animation: none; }
  .rcp.is-printing { animation: none; }
}

/* ---------- Yazdırma: yalnız makbuz ---------- */
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body { background: #fff; }
  body * { visibility: hidden; }
  .rcp, .rcp * { visibility: visible; }
  .rcp { position: absolute; left: 0; top: 0; width: 72mm; max-width: none; box-shadow: none; padding: 0; font-size: 9pt; }
  .rcp::after { display: none; }
  .app { box-shadow: none; }
}
