/* REKTEFE — "atölye tabelası" tasarım dili (app.css + theme.css + polish.css yerine tek dosya).
   İlkeler
   · Sarı = yap (birincil eylem, seçili durum). Siyah yazı sarının üstünde; sarı hiçbir zaman beyaz üstünde yazı olmaz.
   · Kartlar yok: içerik kenardan kenara beyaz bantlar, ince çizgiler. Tek "nesne" araç kartı ve plaka.
   · Rakamlar (km, tutar, plaka) Barlow Condensed; metin Barlow. Ölçek: 13/15/17/22/30/44.
   · Boşluk 4·8·12·16·20·28; yarıçap 10 (kontrol) / 16 (sayfa nesnesi). Hareket yalnızca dokunmaya cevap verir. */
:root {
  --paper: #eff0f3; --surface: #fff; --surface2: #e6e8ed; --line: #cdd2da; --line2: #e3e6eb;
  --ink: #12141a; --ink2: #3f4756;
  --signal: #ffc400; --signal-d: #e8b100; --on-signal: #12141a; --on-signal-rgb: 18,20,26; --signal-rgb: 255,196,0;
  --link: #1546b8; --blue: #1546b8; --blue-soft: #e3ebfb; --plate: #0a3fa6;
  --red: #c42b20; --red-soft: #fbe3e0; --amber: #8a4700; --amber-soft: #fcebc9; --green: #13763f; --green-soft: #dcf2e4; --wa: #12803d;
  --brand-green: #9afe11; --fs-body: 16px; --fs-label: 18px; --fs-sec: 22px; --fs-title: 30px; --fs-num: 44px; --tap: 52px; --gap-btn: 12px;
  --r: 10px; --r2: 16px; --navh: 64px; --rail: 88px; --side: 360px;
  --sh: 0 10px 30px rgba(18,20,26,.16);
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d0e11; --surface: #17191e; --surface2: #23262d; --line: #363b46; --line2: #272a32;
    --ink: #f2f3f6; --ink2: #a3abb8;
    --link: #8fb3ff; --blue: #8fb3ff; --blue-soft: #1a2845;
    --red: #ff7468; --red-soft: #3b1b19; --amber: #f5b04d; --amber-soft: #36290f; --green: #4cc28a; --green-soft: #12301f;
    --sh: 0 12px 32px rgba(0,0,0,.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0e11; --surface: #17191e; --surface2: #23262d; --line: #363b46; --line2: #272a32;
  --ink: #f2f3f6; --ink2: #a3abb8; --link: #8fb3ff; --blue: #8fb3ff; --blue-soft: #1a2845;
  --red: #ff7468; --red-soft: #3b1b19; --amber: #f5b04d; --amber-soft: #36290f; --green: #4cc28a; --green-soft: #12301f; --sh: 0 12px 32px rgba(0,0,0,.6);
}
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Temel ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior-y: contain; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 16px/1.5 var(--sans); min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a, button, input, select, textarea, label, summary, [role=button] { touch-action: manipulation; }
button, .btn, .qtile, .opt, #nav a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
::selection { background: var(--signal); color: var(--on-signal); }
h1, h2, h3, p { margin: 0; } a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
small { font-size: var(--fs-body); }
.muted { color: var(--ink2); } .small { font-size: var(--fs-body); } .center { text-align: center; }
.num { font-family: var(--cond); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.h1 { font: 700 40px/1 var(--cond); }
.h2 { font: 700 22px/1.1 var(--cond); letter-spacing: .005em; }
.sec { margin: 28px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sec span, .panehead span { color: var(--ink2); font-size: var(--fs-body); font-weight: 600; }
.link { color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; margin: 0 -8px; }
button.link { border: 0; background: none; font: inherit; font-weight: 600; }
.foot-note .link, p .link, li .link, .checkrow .link { min-height: 0; display: inline; padding: 0; margin: 0; }
#app.enter { animation: fade .16s ease-out; } .pane { animation: fade .14s ease-out; }
@keyframes fade { from { opacity: 0; } }
.skel { display: grid; gap: 12px; padding-top: 80px; }
.skel i { display: block; height: 72px; border-radius: var(--r); background: linear-gradient(100deg, var(--surface2) 30%, var(--surface) 50%, var(--surface2) 70%) 0 0 / 220% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:first-child { height: 150px; } @keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- Kabuk ---------- */
#shell { min-height: 100dvh; } #side { display: none; }
#app { max-width: 640px; margin: 0 auto; padding: 0 20px calc(var(--navh) + 40px + env(safe-area-inset-bottom)); overflow-wrap: anywhere; }
body.public #app { padding-bottom: 48px; } body.public #nav { display: none; }
.plate, .num, .wordmark, .btn, .qtile b { overflow-wrap: normal; }

#nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--navh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--surface); border-top: 1px solid var(--line); }
#nav[hidden] { display: none; } #nav .logo { display: none; }
#nav a { flex: 1; display: grid; place-items: center; align-content: center; gap: 2px; font-size: var(--fs-body); font-weight: 600; color: var(--ink2); position: relative; }
#nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#nav a.on { color: var(--ink); font-weight: 700; }
#nav a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--ink); border-radius: 0 0 3px 3px; }
#nav a[data-tab=new] { flex: 1.3; margin: 8px 6px; border-radius: 14px; background: var(--signal); color: var(--on-signal); font-weight: 700; }
#nav a[data-tab=new]::before { display: none; }
body[data-focus] #nav { display: none; }

@media (min-width: 960px) {
  #shell { display: grid; grid-template-columns: var(--rail) var(--side) minmax(0, 1fr); }
  #nav { position: sticky; top: 0; height: 100dvh; width: var(--rail); flex-direction: column; justify-content: flex-start; gap: 4px; padding: 20px 8px; border-top: 0; border-right: 1px solid var(--line); }
  #nav a { flex: none; height: 68px; border-radius: 12px; }
  #nav a.on { background: var(--surface2); } #nav a.on::before { display: none; }
  #nav a[data-tab=new] { flex: none; margin: 0; }
  #nav .logo { display: grid; place-items: center; height: 56px; margin-bottom: 12px; }
  body[data-focus] #nav { display: flex; }
  #side { display: block; position: sticky; top: 0; height: 100dvh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 20px 40px; }
  #stage { min-width: 0; }
  #app { max-width: 880px; margin: 0; padding: 36px 48px 80px; }
  body.public #shell { display: block; } body.public #side { display: none; } body.public #app { margin: 0 auto; }
}

/* ---------- Düğmeler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .07s, background .12s, border-color .12s; }
.btn:active { transform: scale(.985); }
@media (hover: hover) { .btn:hover { border-color: var(--ink2); } }
.btn svg, .ibtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
@media (hover: hover) { .btn.primary:hover { background: var(--signal-d); border-color: var(--signal-d); } }
.btn.primary:active { background: var(--signal-d); }
.btn.big { min-height: 58px; font-size: 17px; width: 100%; border-radius: 12px; }
.btn.sm { min-height: 48px; padding: 0 16px; font-size: var(--fs-body); }
.btn.ghost { background: none; border-color: transparent; color: var(--ink2); }
.btn.danger { color: var(--red); }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn:disabled { background: var(--surface2); border-color: var(--surface2); color: var(--ink2); }
.ibtn { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; flex: none; }
.xbtn { border: 0; background: none; color: var(--ink2); font-size: 26px; line-height: 1; width: 48px; height: 48px; cursor: pointer; }
.btnrow { display: flex; gap: var(--gap-btn); flex-wrap: wrap; } .btnrow .btn { cursor: pointer; }

/* ---------- Form ---------- */
label { display: grid; gap: 6px; font-size: var(--fs-body); font-weight: 600; color: var(--ink2); }
input, textarea, select { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r); font-weight: 500; font-size: 16px; color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink2) 65%, transparent); }
textarea { resize: vertical; line-height: 1.4; }
.form { display: grid; gap: 20px; }
.form > *, .stackl > *, .row2 > *, .row3 > *, .actrow > *, .vact > * { min-width: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } @media (max-width: 520px) { .row3 { grid-template-columns: 1fr; } }
.group { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); } .group > .h2 { margin-bottom: 2px; }
details.more { border-top: 1px solid var(--line); padding-top: 12px; }
details.more > summary { cursor: pointer; font-weight: 700; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font: 700 28px/1 var(--cond); } details.more[open] > summary::after { content: "–"; }
details.more > div { display: grid; gap: 14px; margin-top: 10px; }
.err { color: var(--red); font-weight: 600; font-size: var(--fs-body); } p.err { background: var(--red-soft); padding: 10px 12px; border-radius: var(--r); } .err[hidden] { display: none; }
.warnline { color: var(--red); font-weight: 600; font-size: var(--fs-body); }
.savebar { position: sticky; bottom: 0; z-index: 5; margin: 8px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); display: grid; gap: 8px; }
@media (min-width: 960px) { .savebar { margin: 8px 0 0; padding: 12px 0 0; position: static; border: 0; } }
.checkrow { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); font-size: var(--fs-body); min-height: 48px; }
.checkrow input { width: 28px; height: 28px; min-height: 0; flex: none; accent-color: var(--ink); }
.item { display: grid; grid-template-columns: 1fr 64px 96px 44px; gap: 8px; margin-bottom: 8px; align-items: center; } .item input { min-height: 48px; padding: 8px 10px; }
.field .small { margin-bottom: 8px; }

/* Seçmeli düğmeler: seçili = sarı dolgu + siyah çerçeve */
.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; } @media (min-width: 560px) { .opts { grid-template-columns: repeat(3, 1fr); } }
.opt { text-align: left; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 600; font-size: var(--fs-body); line-height: 1.15; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.opt::after { content: ""; width: 20px; height: 20px; border: 2px solid var(--line); border-radius: 50%; flex: none; }
.opt[aria-pressed=true] { background: var(--signal); border-color: var(--on-signal); color: var(--on-signal); box-shadow: inset 0 0 0 1px var(--on-signal); }
.opt[aria-pressed=true]::after { border-color: var(--on-signal); background: var(--on-signal); box-shadow: inset 0 0 0 3px var(--signal); }
.opts.fuel { grid-template-columns: repeat(3, 1fr); } .opts.fuel .opt::after { display: none; } .opts.fuel .opt { justify-content: center; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; min-height: 48px; font-weight: 700; cursor: pointer; color: var(--ink2); } .seg button[aria-pressed=true] { background: var(--signal); color: var(--on-signal); }

/* ---------- Plaka ve marka ---------- */
.plate { --s: 26px; display: inline-flex; align-items: stretch; font-size: var(--s); background: #fff; color: #12141a; border: .075em solid #12141a; border-radius: .2em; overflow: hidden; font-family: var(--cond); font-weight: 700; letter-spacing: .05em; white-space: nowrap; flex: none; line-height: 1; }
.plate i { background: var(--plate); color: #fff; font-style: normal; font-size: .42em; padding: 0 .5em .3em; display: flex; align-items: flex-end; letter-spacing: .02em; }
.plate b { padding: .14em .42em .12em; font-weight: 700; }
.plate.sm { --s: 19px; } .plate.lg { --s: 44px; }
.wordmark { display: inline-flex; align-items: center; font: 700 20px/1 var(--cond); letter-spacing: .26em; border: 0; border-radius: 0; overflow: visible; background: transparent; color: var(--ink); }
.wordmark i { display: none; } .wordmark b { padding: 0; margin-right: -.26em; font-weight: 700; }

.platefield { display: flex; align-items: stretch; background: #fff; border: 3px solid #12141a; border-radius: 12px; overflow: hidden; box-shadow: var(--sh); }
.platefield .tr { background: var(--plate); color: #fff; font: 700 var(--fs-body)/1 var(--cond); padding: 0 10px 8px; display: flex; align-items: flex-end; flex: none; }
.platefield input { border: 0; border-radius: 0; background: #fff; color: #12141a; min-height: 62px; font: 700 34px/1 var(--cond); letter-spacing: .06em; text-transform: uppercase; padding: 0 14px; box-shadow: none !important; }
.platefield input::placeholder { color: #8d96a3; }
.platefield:focus-within { box-shadow: 0 0 0 3px var(--signal), var(--sh); }
.platefield button { border: 0; border-left: 1px solid #d3d8df; background: #fff; color: #12141a; width: 62px; cursor: pointer; display: grid; place-items: center; flex: none; }
.platefield button svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Üst çubuk ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; min-height: 56px; padding: env(safe-area-inset-top) 12px 0; margin: 0 -20px 8px; background: var(--paper); border-bottom: 1px solid var(--line2); }
.topbar h1 { font: 700 22px/1 var(--cond); flex: 1; }
.topbar .back { display: inline-flex; align-items: center; gap: 2px; min-height: 48px; padding: 0 10px 0 4px; border: 0; background: none; font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; }
.topbar .back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.topbar .ibtn { width: 48px; height: 48px; }
.topbar.nobk { padding-left: 20px; padding-right: 20px; border-bottom-color: transparent; } .topbar.nobk h1 { font-size: 32px; }
@media (min-width: 960px) { .topbar { position: static; margin: 0 0 20px; padding: 0; min-height: 0; background: none; border: 0; } .topbar h1 { font-size: 34px; } .topbar .back { padding-left: 0; } .topbar.nobk { padding: 0; } }

/* ---------- Ana ekran: sarı levha ---------- */
.homewrap { }
.hero-band { margin: 0 -20px; padding: calc(14px + env(safe-area-inset-top)) 20px 48px; background: var(--signal); color: var(--on-signal); }
.hb-top { display: flex; justify-content: space-between; align-items: center; }
.hb-tile {width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--on-signal); color: var(--signal); font: 700 26px/1 var(--cond); flex: none; }
.hb-tile img { width: 100%; height: 100%; object-fit: cover; }
.hero-band .wordmark { border-color: var(--on-signal); color: var(--on-signal); font-size: 17px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--on-signal); color: var(--signal); font: 700 20px var(--cond); }
.hb-hi { font: 700 34px/1.02 var(--cond); margin: 20px 0 2px; }
.hb-sub { color: rgba(var(--on-signal-rgb),.78); font-size: var(--fs-body); margin-bottom: 18px; }
.hb-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--on-signal); }
.hb-stats > * { padding: 10px 0 12px; display: grid; gap: 2px; align-content: start; color: var(--on-signal); }
.hb-stats > * + * { padding-left: 14px; border-left: 1px solid rgba(var(--on-signal-rgb),.25); }
.hb-stats b { font: 700 28px/1 var(--cond); font-variant-numeric: tabular-nums; } .hb-stats span { font-size: var(--fs-body); line-height: 1.2; color: rgba(var(--on-signal-rgb),.8); }
.hb-stats .warn { background: var(--on-signal); color: var(--signal); padding: 10px 14px 12px; } .hb-stats .warn span { color: rgba(var(--signal-rgb),.85); }
.homewrap .searchform { margin-top: -32px; position: relative; z-index: 2; }
@media (min-width: 960px) { .hero-band { display: none; } }
.homehead { display: none; }

/* ---------- Bantlar: liste, hatırlatma, ayar ---------- */
.vlist, .group-card, .set, .pane .ledger, .pane .issues2 { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
.vlist { margin-top: 4px; padding-right: 12px; }
@media (min-width: 960px) { .vlist, .group-card, .set, .pane .ledger, .pane .issues2 { margin-left: 0; margin-right: 0; border: 1px solid var(--line); border-radius: var(--r2); } #side .vlist { border: 0; background: none; padding: 0; margin: 0; border-radius: 0; } }
.dueflag { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0 4px; padding: 14px 16px; border-radius: var(--r); background: var(--red-soft); color: var(--red); font-weight: 700; }
.dueflag svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.vrow { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line2); content-visibility: auto; contain-intrinsic-size: auto 130px; }
.vrow:last-child { border-bottom: 0; }
.vlink { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr; grid-template-areas: "p" "t" "f"; gap: 8px; padding: 14px 0; justify-items: start; align-items: center; }
.vlink > .plate { grid-area: p; } .vlink > .t { grid-area: t; justify-self: stretch; min-width: 0; }
.vrow b { display: block; font-weight: 700; font-size: 17px; line-height: 1.2; } .vrow b .muted { font-weight: 500; }
.vrow .m { color: var(--ink2); font-size: var(--fs-body); display: block; }
.vlink > .flag { grid-area: f; font-size: var(--fs-body); font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red); max-width: 100%; }
.vlink > .flag.soon { background: var(--amber-soft); color: var(--amber); }
.vplus { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--signal); color: var(--on-signal); }
.vplus svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.vrow.active { background: var(--surface2); margin: 0 -20px; padding: 0 12px 0 20px; }
#side .vrow.active { margin: 0 -20px; padding: 0 20px; }
#side .plate { --s: 20px; } #side .platefield input { font-size: 28px; min-height: 56px; } #side .platefield button { width: 56px; }
.sidehead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.listempty { padding: 36px 0; display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--ink2); }
.listempty .h2 { color: var(--ink); } .listempty p { max-width: 32ch; } .listempty .btn { min-width: 220px; }
.listempty .art { width: 168px; height: auto; }
.art path, .art rect, .art circle { vector-effect: non-scaling-stroke; }

.remlead { margin: -2px 0 14px; }
.remstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.remstat { display: grid; justify-items: start; gap: 2px; min-height: 76px; padding: 10px 12px; border: 1.5px solid var(--line); border-top-width: 5px; border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; transition: transform .07s, border-color .12s, background .12s; }
.remstat b { font-size: 34px; line-height: 1; } .remstat span { font-size: var(--fs-body); font-weight: 700; color: var(--ink2); }
.remstat.overdue { border-top-color: var(--red); } .remstat.soon { border-top-color: var(--amber); } .remstat.ok { border-top-color: var(--green); }
.remstat.overdue b { color: var(--red); } .remstat.soon b { color: var(--amber); } .remstat.ok b { color: var(--green); }
.remstat:active { transform: scale(.98); }
.remstat[aria-pressed=true] { background: var(--ink); border-color: var(--ink); } .remstat[aria-pressed=true] b, .remstat[aria-pressed=true] span { color: var(--paper); }
.remstat:disabled { opacity: .5; cursor: default; }
.remsearch { margin-bottom: 4px; } .remsearch input { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); }
.remgroup .sec { margin-top: 22px; } .remgroup.overdue .h2 { color: var(--red); } .remgroup.soon .h2 { color: var(--amber); }
.allclear { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--green-soft); color: var(--green); }
.allclear svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.allclear b { display: block; font-size: 17px; } .allclear span { color: var(--ink2); font-size: var(--fs-body); }
.rem { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0 16px 14px; border-bottom: 1px solid var(--line2); }
.rem::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 2px; background: var(--green); }
.rem.soon::before { background: var(--amber); } .rem.overdue::before { background: var(--red); }
.rem:last-child { border-bottom: 0; }
.rem .top { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.rem .top > svg { width: 20px; height: 20px; margin-left: auto; flex: none; fill: none; stroke: var(--ink2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rem .who { min-width: 0; } .rem .what { font-weight: 700; font-size: 17px; line-height: 1.2; } .rem .when { color: var(--ink2); font-size: var(--fs-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remmeta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px 0 8px; border-radius: 999px; font-size: var(--fs-body); font-weight: 700; background: var(--green-soft); color: var(--green); }
.pill.soon { background: var(--amber-soft); color: var(--amber); } .pill.overdue { background: var(--red-soft); color: var(--red); }
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rem .st { font-weight: 700; font-size: var(--fs-body); color: var(--green); } .rem.soon .st { color: var(--amber); } .rem.overdue .st { color: var(--red); }
.remdue { color: var(--ink2); font-size: var(--fs-body); }
.rem .acts { display: flex; gap: 8px; } .rem .acts .btn { flex: 1; } .rem .acts .btn.wa { flex: 2; }
.nophone { color: var(--ink2); font-size: var(--fs-body); }
.sentnote { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-body); font-weight: 600; color: var(--green); }
.sentnote svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.navbadge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 12px/18px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--surface); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .navbadge { color: #17191e; } } :root[data-theme=dark] .navbadge { color: #17191e; }
@media (min-width: 960px) { .remstats { max-width: 560px; } .rem .acts .btn, .rem .acts .btn.wa { flex: none; } }
.rem.mini { padding: 12px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--r); }
.rem.mini::before { display: none; }
.rem.mini.soon { border-left-color: var(--amber); } .rem.mini.overdue { border-left-color: var(--red); }

.set { padding-top: 20px; padding-bottom: 20px; margin-bottom: 20px; display: grid; gap: 12px; }
.set .h2 { display: flex; justify-content: space-between; align-items: baseline; } .set .h2 small { font: 600 var(--fs-body) var(--sans); color: var(--green); }

/* ---------- Araç kimlik kartı ---------- */
.idhead { padding: 8px 0 22px; }
.vhero { margin: 4px 0 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--signal); border-radius: var(--r2); }
.vh-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vh-qr { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--surface2); font: 700 var(--fs-body) var(--cond); letter-spacing: .06em; }
.vh-qr svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vhero h1 { font: 700 28px/1.05 var(--cond); margin-top: 14px; } .vhero h1 span { color: var(--ink2); font-weight: 600; }
.vhero .sub { color: var(--ink2); margin-top: 2px; font-size: var(--fs-body); } .vhero .sub:empty { display: none; }
.vh-mid { display: grid; gap: 14px; margin: 16px 0 12px; }
.vh-odo { display: flex; align-items: flex-end; gap: 10px; }
.vh-odo b { display: flex; gap: 3px; font-weight: 700; }
.vh-odo b i { font-style: normal; display: grid; place-items: center; width: clamp(28px, 9vw, 38px); height: clamp(40px, 13vw, 54px); background: #12141a; color: #fff; border-radius: 5px; font: 700 clamp(28px, 9vw, 38px)/1 var(--cond); font-variant-numeric: tabular-nums; box-shadow: inset 0 -10px 12px rgba(255,255,255,.06), inset 0 8px 10px rgba(0,0,0,.55); }
.vh-odo b i.sep { width: 8px; background: none; box-shadow: none; color: var(--ink2); align-items: end; padding-bottom: 2px; font-size: 26px; }
.vh-odo b.none { font-size: 40px; color: var(--ink2); }
.vh-odo span { color: var(--ink2); font-weight: 700; font-size: 17px; padding-bottom: 4px; }
.vh-meta { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line2); }
.vh-meta > div { padding: 10px 0 0; display: grid; } .vh-meta > div + div { padding-left: 14px; border-left: 1px solid var(--line2); }
.vh-meta span { font-size: var(--fs-body); color: var(--ink2); } .vh-meta b { font-size: 17px; font-weight: 700; }
.vh-vin { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: var(--fs-body); color: var(--ink2); padding-top: 10px; border-top: 1px solid var(--line2); margin-top: 10px; } .vh-vin b { font-size: 16px; letter-spacing: .04em; color: var(--ink); }
.vh-owner { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vh-owner b { font-size: 17px; } .vh-owner small { display: block; color: var(--ink2); font-size: var(--fs-body); }
.vh-owner .acts { display: flex; gap: 8px; } .vh-owner .ibtn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.noqr { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r); background: none; border: 2px dashed var(--ink2); color: var(--ink); font-weight: 700; }
.noqr span { display: grid; } .noqr small { font-weight: 500; font-size: var(--fs-body); color: var(--ink2); }
.noqr svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vact { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.vact > * { display: grid; justify-items: center; gap: 6px; padding: 12px 2px 10px; background: none; border: 0; color: var(--ink); font: 600 var(--fs-body)/1.1 var(--sans); cursor: pointer; text-align: center; transition: background .1s; }
.vact > * + * { border-left: 1px solid var(--line2); } .vact > *:active { background: var(--surface2); }
.vact svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.vact-primary { margin-bottom: 10px; }
.actrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; } .actrow .primary { grid-column: 1 / -1; } .actrow #report { grid-column: 1 / -1; }
.statusbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); font-weight: 600; font-size: var(--fs-body); background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--ink2); }
.statusbar.warn { background: var(--amber-soft); border-color: transparent; border-left-color: var(--amber); color: var(--amber); }
.statusbar.inst { border-left-color: var(--signal); }
.statusbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.statusbar.inst > span:last-child { display: flex; align-items: center; gap: 4px; }
.homewrap #b > .searchform + div { margin-top: 0; }

/* Sekmeler: alttan çizgili */
.seg2 { display: flex; margin: 4px -20px 12px; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 56px; z-index: 8; }
@media (min-width: 960px) { .seg2 { top: 0; margin: 4px 0 12px; padding: 0; } }
.seg2 button { flex: 1; min-height: 48px; border: 0; border-bottom: 4px solid transparent; background: none; font: 700 16px var(--sans); color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: -1px; }
.seg2 button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--signal); }
.seg2 i { font-style: normal; font-size: var(--fs-body); min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--surface2); color: var(--ink2); } .seg2 i.hot { background: var(--red); color: #fff; }
.pane[hidden] { display: none; }
.panehead { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 8px; } .panehead .h2 { margin: 0; }
.pane .none { padding: 24px 0; text-align: center; }
.none { color: var(--ink2); padding: 12px 0; }
.pane .qrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 8px; }

/* Servis geçmişi: kilometre sütunu omurga */
.entry { display: grid; grid-template-columns: 92px 1fr; gap: 0 14px; padding: 16px 0; border-bottom: 1px solid var(--line2); content-visibility: auto; contain-intrinsic-size: auto 150px; }
.entry:last-child { border-bottom: 0; }
.entry > div:first-child { border-right: 3px solid var(--line2); padding-right: 12px; }
.entry .km { font: 700 28px/1 var(--cond); font-variant-numeric: tabular-nums; } .entry .km small { display: block; font: 500 var(--fs-body)/1.3 var(--sans); color: var(--ink2); margin-top: 6px; }
.entry .flag { display: block; margin-top: 6px; color: var(--red); font: 700 var(--fs-body)/1.2 var(--sans); }
.entry .what { font-weight: 700; font-size: 17px; line-height: 1.25; }
.entry .note { margin-top: 6px; } .entry .parts { margin-top: 4px; color: var(--ink2); font-size: var(--fs-body); }
.entry .foot { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--ink2); font-size: var(--fs-body); }
.entry .price { font: 700 22px/1 var(--cond); color: var(--ink); margin-left: auto; font-variant-numeric: tabular-nums; }
.edited { color: var(--amber); font-weight: 600; }
.lines { list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--fs-body); } .lines li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); color: var(--ink2); }
.lines.big { font-size: 17px; margin: 4px 0; } .lines.big li { padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--line2); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); cursor: zoom-in; max-width: 100%; }
.thumbs.edit { margin: 0; } .thumbs .th { position: relative; }
.thumbs .th button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
video.vid, .thumbs video { width: 100%; max-width: 360px; border-radius: var(--r); background: #000; } .thumbs.edit video { width: 84px; height: 84px; object-fit: cover; }
.vtag { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.7); color: #fff; font-size: var(--fs-body); font-weight: 700; padding: 1px 6px; border-radius: 4px; }
#lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; } #lightbox[hidden] { display: none; } #lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.transfers p { padding: 10px 0; border-bottom: 1px solid var(--line2); color: var(--ink2); } .transfers b { color: var(--ink); }
.issue { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); min-height: 56px; }
.issue .tx { flex: 1; font-weight: 600; } .issue .when { color: var(--ink2); font-size: var(--fs-body); white-space: nowrap; }
.issue.done .tx { color: var(--ink2); text-decoration: line-through; font-weight: 500; }
.check { position: relative; width: 32px; height: 32px; border: 2px solid var(--ink2); border-radius: 8px; background: none; display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; color: #fff; font-weight: 800; }
.check::after { content: ""; position: absolute; inset: -8px; } .issue.done .check { background: var(--green); border-color: var(--green); } .check.ro { cursor: default; }
.noteadd { display: flex; gap: 8px; margin: 12px 0; } .noteadd input { min-height: 48px; }
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); min-height: 56px; }
.spec dt { color: var(--ink2); font-weight: 600; font-size: var(--fs-body); } .spec dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.foot-note { margin-top: 40px; color: var(--ink2); font-size: var(--fs-body); text-align: center; }
.pubhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(18px + env(safe-area-inset-top)) 0 14px; } .pubhead span { color: var(--ink2); font-size: var(--fs-body); font-weight: 600; }
.dash h1 { margin-bottom: 4px; } .dash .lead { color: var(--ink2); margin-bottom: 24px; } .dash .acts { display: flex; flex-wrap: wrap; gap: var(--gap-btn); margin: 12px 0 24px; } .dash .acts .btn { min-width: 180px; }
.mv { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; }

/* Araç sayfası alt eylem çubuğu */
.vbar, .vbarspace { display: none; }
@media (max-width: 959px) {
  .vbar { display: block; position: fixed; left: 0; right: 0; bottom: calc(var(--navh) + env(safe-area-inset-bottom)); z-index: 15; padding: 12px 20px; background: linear-gradient(to top, var(--paper) 65%, transparent); max-width: 640px; margin: 0 auto; }
  .vbarspace { display: block; height: 80px; }
  .vprimary { display: none; }
}

/* ---------- Karşılama ve giriş ---------- */
.welcome { display: grid; gap: 22px; padding-top: calc(48px + env(safe-area-inset-top)); max-width: 440px; margin: 0 auto; }
.app-view { min-width: 0; }
body.public #app:has(.wl) { max-width: none; padding: 0; }
.wl { min-height: 100dvh; margin: 0; display: grid; grid-template-areas: "hero" "body" "footer"; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr auto; }
.wl > * { min-width: 0; }
.wl-hero { grid-area: hero; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: calc(20px + env(safe-area-inset-top)) 24px 36px; background: var(--signal); color: var(--on-signal); }
.wl-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--brand-green); z-index: 3; }
.wl-hero .wordmark { align-self: flex-start; border-color: var(--on-signal); color: var(--on-signal); }
.wl-hero h1 { font: 700 42px/1 var(--cond); margin: 20px 0 8px; max-width: 14ch; }
.wl-hero p { font-size: 16px; max-width: 32ch; color: rgba(var(--on-signal-rgb),.85); }
.wl-art { display: block; margin: 14px auto 0; width: min(210px,60%); height: auto; filter: drop-shadow(0 8px 14px rgba(18,20,26,.28)); }
.wl-body { grid-area: body; min-width: 0; width: 100%; max-width: 480px; padding: 28px 24px 20px; margin: 0 auto; display: grid; align-content: center; gap: 16px; }
.wl-body h2 { font: 700 28px/1.1 var(--cond); }
.wl > .legal-footer { grid-area: footer; align-self: end; min-width: 0; width: 100%; max-width: 560px; margin: 0 auto; padding: 16px 24px calc(24px + env(safe-area-inset-bottom)); }
.benefits { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); font-size: var(--fs-body); }
.benefits svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.wl-links { display: grid; gap: 4px; justify-items: center; margin-top: 4px; }
.lead { font-size: 18px; line-height: 1.35; }
.wl-hero.compact h1 { font-size: 32px; margin-top: 14px; }
.wl-hero.compact p, .wl-hero.compact .wl-art { display: none; }
/* Fotoğraf kendi yuvasında kırpılır; form ve alt bağlantılar onu daraltmaz. */
.wl-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; container-type: size; }
.wl-hero:not(.has-photo) .wl-stage { visibility: hidden; }
.wl-frame { position: absolute; left: 50%; top: 50%; width: max(100cqw,74.67cqh); aspect-ratio: 896 / 1200; transform: translate(-50%,-50%); }
.wl-photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.wl-hero.compact .wl-frame { left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
.wl-hero.compact .wl-photo { object-position: 65% 42%; }
.wl-target { position: absolute; left: 37.4%; top: 65.4%; width: 6.4%; height: 8.2%; animation: lock 1.6s .5s ease-out both;
  background: linear-gradient(var(--signal), var(--signal)) top left / 34% 3px no-repeat, linear-gradient(var(--signal), var(--signal)) top left / 3px 28% no-repeat,
    linear-gradient(var(--signal), var(--signal)) top right / 34% 3px no-repeat, linear-gradient(var(--signal), var(--signal)) top right / 3px 28% no-repeat,
    linear-gradient(var(--signal), var(--signal)) bottom left / 34% 3px no-repeat, linear-gradient(var(--signal), var(--signal)) bottom left / 3px 28% no-repeat,
    linear-gradient(var(--signal), var(--signal)) bottom right / 34% 3px no-repeat, linear-gradient(var(--signal), var(--signal)) bottom right / 3px 28% no-repeat; }
.wl-line { position: absolute; left: 40.5%; top: 58.5%; width: 2px; height: 6.9%; background: var(--signal); transform-origin: top; animation: draw .5s 1.1s ease-out both; }
.wl-tip { position: absolute; left: 8%; top: 41%; width: 36%; min-width: 168px; padding: 12px 14px; display: grid; gap: 3px; color: #fff; font-size: var(--fs-body); line-height: 1.3;
  background: rgba(14,15,19,.72); border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--signal); border-radius: 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: slide .5s 1.4s ease-out both; }
.wl-tip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; } .wl-tip-top em { font-style: normal; font-size: var(--fs-body); color: rgba(255,255,255,.7); }
.wl-tip > b { font: 700 17px/1.15 var(--cond); } .wl-tip > span { color: rgba(255,255,255,.78); }
.wl-tip .plate b { font: inherit; color: #12141a; }
.wl-tip .wl-tip-ok { margin-top: 4px; justify-self: start; padding: 4px 8px; border-radius: 999px; background: var(--signal); color: var(--on-signal); font-weight: 700; font-size: var(--fs-body); }
@keyframes lock { 0% { opacity: 0; transform: scale(1.5); } 60% { opacity: 1; transform: scale(.94); } 100% { opacity: 1; transform: scale(1); } }
@keyframes draw { from { transform: scaleY(0); } }
@keyframes slide { from { opacity: 0; transform: translateX(-12px); } }
.wl-hero > :not(.wl-stage) { position: relative; z-index: 1; }
.wl-hero.has-photo { min-height: min(58svh,520px); background: #0d0e11; color: #fff; justify-content: flex-start; }
.wl-hero.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top,rgba(8,9,12,.9),rgba(8,9,12,.2) 65%,rgba(8,9,12,.45)); }
.wl-hero.has-photo > :not(.wl-stage) { z-index: 2; }
.wl-hero.has-photo .wordmark { border-color: #fff; color: #fff; }
.wl-hero.has-photo h1 { margin-top: auto; color: #fff; }
.wl-hero.has-photo p { color: rgba(255,255,255,.9); }
.wl-hero.has-photo .wl-art { display: none; }
.wl-hero.compact, .wl-hero.has-photo.compact { min-height: clamp(160px,26svh,240px); }
.wl-hero.compact .wl-tip, .wl-hero.compact .wl-line, .wl-hero.compact .wl-target { display: none; }
@media (max-width: 959px) { .wl-tip, .wl-line, .wl-target { display: none; } }
@media (min-width: 960px) {
  .wl { grid-template-areas: "hero body" "hero footer"; grid-template-columns: minmax(0,1.1fr) minmax(360px,1fr); grid-template-rows: 1fr auto; }
  .wl-hero, .wl-hero.has-photo, .wl-hero.compact, .wl-hero.has-photo.compact { min-height: 100dvh; padding: 40px clamp(28px,4vw,56px); }
  .wl-hero::after { display: none; }
  .wl-hero:not(.has-photo) { justify-content: center; gap: 8px; }
  .wl-hero:not(.has-photo) .wordmark { margin-bottom: 24px; }
  .wl-hero h1 { font-size: 56px; max-width: 12ch; }
  .wl-hero p { font-size: 19px; }
  .wl-hero.compact h1 { font-size: 44px; }
  .wl-hero.compact p { display: block; }
  .wl-body { max-width: 560px; padding: 48px clamp(28px,4vw,56px) 24px; }
  .wl-art { width: 280px; }
}

/* Alt menü (telefon): etkin sekme = ikon kapsülü; QR her zaman sarı birincil eylem */
@media (max-width: 959px) {
  #nav { box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(18,20,26,.06); }
  #nav a { gap: 4px; padding-top: 6px; font-size: var(--fs-body); font-weight: 600; letter-spacing: .01em; }
  #nav a::before { display: none !important; }
  #nav svg { box-sizing: border-box; width: 56px; height: 32px; padding: 4px 16px; border-radius: 16px; stroke-width: 1.9; transition: background .15s, color .15s; }
  #nav a.on { color: var(--ink); font-weight: 700; } #nav a.on svg { background: var(--surface2); stroke-width: 2.3; }
  #nav a:active svg { background: var(--surface2); }
  #nav a[data-tab=new] { flex: 1; margin: 0; border-radius: 0; background: none; color: var(--ink); font-weight: 700; }
  #nav a[data-tab=new] svg { background: var(--signal); stroke: var(--on-signal); box-shadow: 0 2px 6px rgba(18,20,26,.18); }
  #nav a[data-tab=new].on svg { box-shadow: 0 0 0 2px var(--on-signal); }
}

/* ---------- QR etiketi, tarama ---------- */
.qrpage { display: grid; gap: 18px; justify-items: center; padding-top: 8px; } .qrpage > .actrow, .qrpage > .hint { width: 100%; max-width: 360px; } .hint { color: var(--ink2); font-size: var(--fs-body); }
.sticker { width: 100%; max-width: 360px; background: #fff; color: #12141a; border: 3px solid #12141a; border-radius: 14px; padding: 18px; display: grid; gap: 14px; justify-items: center; }
.sticker .wordmark { border-color: #12141a; color: #12141a; } .sticker .st-tag { font-weight: 600; font-size: var(--fs-body); }
.st-top { display: flex; justify-content: space-between; align-items: center; width: 100%; } .st-qr svg { display: block; width: 100%; max-width: 280px; height: auto; }
.st-foot { text-align: center; display: grid; gap: 2px; } .st-foot b { font: 700 24px/1.1 var(--cond); letter-spacing: .02em; } .st-foot span { font-size: var(--fs-body); color: #4f5766; }
.scanwrap { display: grid; gap: 16px; }
.viewfinder { position: relative; aspect-ratio: 1; border-radius: var(--r2); overflow: hidden; background: #000; }
.viewfinder video { width: 100%; height: 100%; object-fit: cover; }
.viewfinder .frame { position: absolute; inset: 16%; border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.55);
  background: linear-gradient(var(--signal), var(--signal)) top left / 28px 4px no-repeat, linear-gradient(var(--signal), var(--signal)) top left / 4px 28px no-repeat,
    linear-gradient(var(--signal), var(--signal)) top right / 28px 4px no-repeat, linear-gradient(var(--signal), var(--signal)) top right / 4px 28px no-repeat,
    linear-gradient(var(--signal), var(--signal)) bottom left / 28px 4px no-repeat, linear-gradient(var(--signal), var(--signal)) bottom left / 4px 28px no-repeat,
    linear-gradient(var(--signal), var(--signal)) bottom right / 28px 4px no-repeat, linear-gradient(var(--signal), var(--signal)) bottom right / 4px 28px no-repeat; }
.viewfinder.off { aspect-ratio: auto; min-height: 120px; background: var(--surface2); display: grid; place-items: center; color: var(--ink2); padding: 20px; text-align: center; } .viewfinder.off video, .viewfinder.off .frame { display: none; }
/* Yükleniyor: kamera açılırken ve ekran geçişlerinde */
.camload { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; color: #fff; background: #0d0e11; }
.camload[hidden] { display: none; } .camload small { color: #a3abb8; max-width: 24ch; } .camload b { font-size: 18px; }
.camload .ring, .skel::before { position: relative; width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 8px; }
.camload .ring svg { width: 28px; height: 28px; stroke: #fff; }
.camload .ring i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.14); border-top-color: var(--signal, #ffc400); animation: spin .9s linear infinite; }
.camload .ring::after { content: ''; position: absolute; left: -26%; right: -26%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--signal, #ffc400), transparent); animation: sweep 1.6s ease-in-out infinite; }
.camload .btn { margin-top: 10px; min-height: 48px; }
.camload.is-found { background: rgba(13,14,17,.86); animation: fade .2s ease-out; }
.camload .ring.found { border-radius: 50%; background: var(--green); color: #fff; animation: pop .3s cubic-bezier(.2,.9,.3,1.3); }
.camload .ring.found svg { stroke: #fff; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; width: 34px; height: 34px; }
.camload .ring.found::after { display: none; } .camload .ring.found i { display: none; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .camload .ring i, .camload .ring::after, .camload.is-found, .camload .ring.found { animation: none; } }
.skel::before { content: ''; justify-self: center; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--signal, #ffc400); animation: spin .9s linear infinite; margin-bottom: 4px; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes sweep { 0%, 100% { transform: translateY(-34px); opacity: 0; } 50% { transform: translateY(34px); opacity: 1; } }
.torch { position: absolute; right: 12px; bottom: 12px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-weight: 700; cursor: pointer; } .torch[aria-pressed=true] { background: var(--signal); color: #12141a; }
.codefield { display: flex; gap: 8px; } .codefield input { font: 700 24px/1 var(--cond); letter-spacing: .12em; text-transform: uppercase; }
.ruhsat { display: grid; gap: 6px; } .ruhsatbtn { width: 100%; border: 2px dashed var(--ink2); background: none; cursor: pointer; }
.okbar { background: var(--green-soft); color: var(--green); padding: 10px 14px; border-radius: var(--r); font-weight: 600; }

/* ---------- Hızlı işlem ---------- */
.qwrap { padding-bottom: 250px; } .okscreen { padding-bottom: 20px; }
.qctx { display: grid; gap: 6px; padding: 10px 0 4px; } .qctxtop { display: flex; align-items: center; gap: 10px; font-size: 20px; } .qctxsub { color: var(--ink2); font-size: var(--fs-body); } .qctxsub em { font-style: normal; font-weight: 700; color: var(--amber); }
.qctx, .qctxtop, .qctxtop b, .qctxsub, .what, .note, .parts, .t, .vh-vin b, .vh-owner b, .vh-owner > div { min-width: 0; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qtile { min-height: 88px; text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; align-content: space-between; gap: 6px; font-size: 17px; font-weight: 700; line-height: 1.15; cursor: pointer; transition: transform .07s; }
.qtile:active { transform: scale(.98); } .qtile small { font: 500 var(--fs-body) var(--sans); color: var(--ink2); }
.qtile[aria-pressed=true] { background: var(--signal); border-color: var(--on-signal); color: var(--on-signal); box-shadow: inset 0 0 0 1px var(--on-signal); } .qtile[aria-pressed=true] small { color: rgba(var(--on-signal-rgb),.8); }
.qdock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; max-width: 640px; margin: 0 auto; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(18,20,26,.1); display: grid; gap: 10px; }
.qdock .qrow, .okdock .qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qfield { min-height: 70px; text-align: left; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); display: grid; align-content: center; cursor: pointer; }
.qfield small { color: var(--ink2); font-weight: 600; font-size: var(--fs-body); line-height: 1.2; } .qfield b { font: 700 32px/1.05 var(--cond); font-variant-numeric: tabular-nums; }
.qfield.need { border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal); }
@media (min-width: 960px) { .qwrap { padding-bottom: 40px; } .qdock { position: sticky; margin: 24px 0 0; padding: 0; border: 0; background: none; box-shadow: none; } }
.okscreen { display: grid; justify-items: center; text-align: center; gap: 14px; padding-top: 10vh; }
.okmark { width: 96px; height: 96px; border-radius: 50%; background: var(--green); display: grid; place-items: center; animation: pop .35s cubic-bezier(.2,1.4,.4,1); } @keyframes pop { from { transform: scale(.6); opacity: 0; } }
.okmark svg { width: 56px; height: 56px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.oksum { display: grid; gap: 6px; justify-items: center; font-size: 18px; } .oksum b { font: 700 28px/1 var(--cond); }
.okdock { position: fixed; } .okdock:not(.ready) { pointer-events: none; } .okscreen .qdock { text-align: left; } .okbar2 { justify-content: flex-start; background: none; border: 0; }
.sheet-back { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; box-shadow: var(--sh); }
.np-head { display: flex; justify-content: space-between; align-items: center; } .np-head b { font: 700 22px var(--cond); } .np-hint { margin-top: -6px; }
.np-display { font: 700 60px/1 var(--cond); text-align: right; padding: 6px 4px; min-height: 66px; font-variant-numeric: tabular-nums; }
.np-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .np-chips button { min-height: 50px; border: 1.5px solid var(--ink); background: none; color: var(--ink); border-radius: var(--r); font: 700 17px var(--sans); cursor: pointer; }
.np-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.np-keys button, .npcam { min-height: 64px; border: 0; background: var(--surface2); border-radius: 12px; font: 700 32px var(--cond); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.np-keys button:active { background: var(--signal); color: var(--on-signal); }
.npcam { align-content: center; font: 600 var(--fs-body) var(--sans); text-align: center; } .npcam svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Teklif, rapor, belge ---------- */
.quote-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 2px solid var(--ink); } .quote-sum .big { font-size: 44px; line-height: 1; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 10px; margin: 0 -20px 6px; scrollbar-width: none; min-width: 0; max-width: 100vw; } .quick::-webkit-scrollbar { display: none; }
.chip2 { flex: none; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: var(--fs-body); cursor: pointer; }
.qnote { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; border-radius: var(--r); margin-top: 8px; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .qrow span:first-child { display: grid; } .qrow b { font: 700 24px/1 var(--cond); } .qrow small { color: var(--ink2); }
.qstat { font-weight: 700; font-size: var(--fs-body); padding: 6px 10px; border-radius: 999px; background: var(--surface2); white-space: nowrap; }
.qstat.approved { background: var(--green-soft); color: var(--green); } .qstat.rejected { background: var(--red-soft); color: var(--red); } .qstat.sent { background: var(--amber-soft); color: var(--amber); }
.resp { margin-top: 20px; padding: 16px; border-radius: var(--r); display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line); } .resp span { color: var(--ink2); }
.resp.approved { background: var(--green-soft); color: var(--green); border-color: transparent; } .resp.rejected { background: var(--red-soft); color: var(--red); border-color: transparent; }
.verdict { display: grid; gap: 2px; padding: 16px; border-radius: var(--r); margin-bottom: 16px; } .verdict b { font: 700 24px/1.1 var(--cond); }
.verdict.ok { background: var(--green-soft); color: var(--green); } .verdict.warn { background: var(--amber-soft); color: var(--amber); } .verdict.bad { background: var(--red-soft); color: var(--red); }
.kmchart { width: 100%; height: auto; font: 600 var(--fs-body) var(--sans); fill: var(--ink2); margin: 6px 0; }
.garajrow { text-decoration: none; }
.belge { background: #fff; color: #12141a; padding: 24px; border: 1px solid var(--line); border-radius: 6px; display: grid; gap: 14px; }
.belge header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 2px solid #12141a; padding-bottom: 12px; } .belge header div { display: grid; gap: 2px; } .bshop { font: 700 26px/1 var(--cond); } .bmark { justify-items: end; } .bmark span { font-size: var(--fs-body); }
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin: 0; } .bgrid .w2 { grid-column: 1 / -1; } .bgrid dt { font-size: var(--fs-body); color: #555; } .bgrid dd { margin: 0; font-weight: 600; font-size: 17px; }
.bwhat { font: 700 22px/1.2 var(--cond); } .btable { width: 100%; border-collapse: collapse; font-size: var(--fs-body); } .btable th, .btable td { text-align: left; padding: 7px 6px; border-bottom: 1px solid #ccc; } .btable th:nth-child(n+2), .btable td:nth-child(n+2) { text-align: right; } .btable tfoot td { font-weight: 800; border-top: 2px solid #12141a; border-bottom: 0; font-size: 17px; }
.belge footer { display: flex; gap: 20px; align-items: flex-end; margin-top: 18px; } .sig { flex: 1; border-top: 1.5px solid #12141a; padding-top: 6px; height: 70px; font-size: var(--fs-body); color: #555; display: flex; align-items: flex-end; } .bqr { text-align: center; font-size: var(--fs-body); color: #555; } .bqr svg { width: 90px; height: 90px; display: block; margin: 0 auto 2px; }

/* ---------- Bildirimler ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--navh) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: var(--r); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 70; max-width: 90vw; box-shadow: var(--sh); }
#toast.show { opacity: 1; transform: translate(-50%, 0); } @media (min-width: 960px) { #toast { bottom: 28px; } }
#upd { position: fixed; left: 12px; right: 12px; top: calc(10px + env(safe-area-inset-top)); z-index: 100; max-width: 520px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: var(--sh); }
#upd button { min-height: 48px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--signal); color: var(--on-signal); font-weight: 700; cursor: pointer; }

@media print {
  body { background: #fff; } #nav, #side, .topbar, .qrpage > :not(.sticker), .noprint { display: none !important; }
  #shell { display: block; } #app { padding: 0; max-width: none; margin: 0; } .sticker { margin: 0 auto; max-width: 9cm; break-inside: avoid; }
  .belge { border: 0; padding: 0; border-radius: 0; } @page { margin: 14mm; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Vurgu renkleri: Ayarlar > Vurgu rengi. Varsayılan sarı; seçim html[data-accent] ile gelir. */
html[data-accent=mavi] { --signal: #2a64f5; --signal-d: #1d4fd1; --on-signal: #fff; --on-signal-rgb: 255,255,255; --signal-rgb: 42,100,245; }
html[data-accent=turkuaz] { --signal: #17b6a3; --signal-d: #109987; --on-signal: #04201c; --on-signal-rgb: 4,32,28; --signal-rgb: 23,182,163; }
html[data-accent=turuncu] { --signal: #ff7a21; --signal-d: #e8650f; --on-signal: #1d0e03; --on-signal-rgb: 29,14,3; --signal-rgb: 255,122,33; }
html[data-accent=siyah] { --signal: #12141a; --signal-d: #000; --on-signal: #fff; --on-signal-rgb: 255,255,255; --signal-rgb: 18,20,26; }
@media (prefers-color-scheme: dark) { html[data-accent=siyah] { --signal: #f2f3f6; --signal-d: #fff; --on-signal: #12141a; --on-signal-rgb: 18,20,26; --signal-rgb: 242,243,246; } }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.sw i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sw[aria-checked=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Araç kabul: her ekranda tek karar, daima görünür adım ve geri dönüş. */
[hidden] { display: none !important; }
.intake-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; list-style: none; margin: 6px 0 28px; padding: 0; }
.intake-steps li { min-width: 0; }
.intake-steps button { width: 100%; min-height: 64px; border: 0; border-bottom: 2px solid var(--line); background: transparent; color: var(--ink2); font-size: var(--fs-body); display: grid; justify-items: center; gap: 6px; padding: 4px; cursor: pointer; }
.intake-steps button span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); font-size: var(--fs-body); font-weight: 700; }
.intake-steps button[aria-current] { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.intake-steps button[aria-current] span { background: var(--signal); color: var(--on-signal); }
.intake-form { gap: 16px; padding-bottom: 24px; }
.intake-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.intake-form legend { font-size: 34px; margin: 0 0 14px; padding: 0; }
.intake-form input[aria-invalid=true], .intake-form select[aria-invalid=true] { border-color: var(--red); }
.intake-tag { display: flex; gap: 10px; color: var(--ink2); font-size: var(--fs-body); margin-bottom: 14px; }
.intake-footer { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--paper); padding: 14px 0 max(14px, env(safe-area-inset-bottom)); z-index: 5; border-top: 1px solid var(--line); }
.intake-footer > .primary { flex: 1; }
.scan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-choice { min-height: 96px; justify-content: flex-start; padding: 14px; font-size: 16px; text-align: left; white-space: normal; }
.scan-choice span { display: grid; gap: 4px; }
.scan-choice small { font-size: var(--fs-body); line-height: 1.4; font-weight: 500; color: var(--ink2); }
.scan-status { padding: 14px; background: var(--surface2); border-radius: var(--r); font-size: var(--fs-body); }
.scan-review { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 12px; }
.scan-preview { width: 100%; max-height: 230px; object-fit: contain; border-radius: 6px; background: var(--paper); }
.scan-fields { margin: 0; display: grid; gap: 8px; }
.scan-fields > div { display: grid; grid-template-columns: 95px minmax(0,1fr); gap: 10px; font-size: var(--fs-body); }
.scan-fields dt { color: var(--ink2); }.scan-fields dd { margin: 0; font-weight: 600; }.scan-fields dd small { display: block; color: var(--amber); }
.catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.catalog-option { min-width: 0; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; display: grid; align-content: center; gap: 4px; }
.catalog-option small { color: var(--ink2); font-size: var(--fs-body); }.catalog-option b { font-size: 17px; }
.catalog-option[aria-pressed=true] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--blue-soft); }
.intake-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: 20px; display: grid; gap: 20px; }
.intake-summary > div { display: grid; justify-items: start; gap: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.intake-summary small { color: var(--ink2); font-size: var(--fs-body); }.intake-summary b { font-size: 19px; }.intake-summary .plate { justify-self: start; max-width: 100%; }
.match-card { background: var(--blue-soft); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.match-card small, .match-card span { font-size: var(--fs-body); color: var(--ink2); }
.service-picker { display: grid; gap: 14px; margin: 20px 0; }
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.picker-head .link { background: none; border: 0; font-size: var(--fs-body); text-align: right; padding: 4px 0; margin: 0; min-height: 48px; max-width: 55%; }
.service-picker .qtile { min-height: 70px; font-size: 16px; font-weight: 600; line-height: 1.35; align-content: center; }
.service-picker .qtile[aria-pressed=true] { background: var(--blue-soft); border-color: var(--blue); color: var(--ink); box-shadow: inset 0 0 0 1px var(--blue); }
.category-strip { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding: 3px 2px 8px; }
.category-strip .chip2[aria-pressed=true] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.picker-pages { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--fs-body); color: var(--ink2); }
.picker-pages:empty { display: none; }.picker-pages .btn { flex: none; }
.picker-empty { padding: 20px 0; color: var(--ink2); }
.selected-services { display: grid; gap: 8px; }.selected-services:empty { display: none; }.selected-services .opt { font-size: var(--fs-body); min-height: 48px; }
.favorite-list { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }.favorite-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--surface); }.favorite-row + .favorite-row { border-top: 1px solid var(--line); }.favorite-row .ibtn[aria-pressed=true] { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
@media (max-width: 380px) { .scan-actions { grid-template-columns: 1fr; }.scan-choice { min-height: 72px; }.catalog-grid { grid-template-columns: 1fr 1fr; }.intake-form .row2 { grid-template-columns: 1fr; }.intake-form legend { font-size: 30px; }.intake-summary { padding: 14px; } }
.hero-band p, .hb-stats span { color: var(--on-signal); }
.hb-stats .warn span { color: var(--signal); }
.service-picker .qtile[aria-pressed=true] small { color: var(--ink2); }

/* Durum mesajları ve karar pencereleri */
#toast.feedback-toast { top: max(12px, env(safe-area-inset-top)); bottom: auto; width: calc(100% - 28px); max-width: 520px; padding: 16px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; background: var(--surface); color: var(--ink); display: grid; grid-template-columns: 28px minmax(0,1fr) 40px; align-items: start; gap: 12px; pointer-events: auto; transform: translate(-50%, -12px); box-shadow: var(--sh); font-size: var(--fs-body); }
#toast.feedback-toast:not(.show) { pointer-events: none; } #toast.feedback-toast.show { transform: translate(-50%,0); }
#toast.success { border-left-color: var(--green); } #toast.error, #toast.rejected { border-left-color: var(--red); } #toast.warning { border-left-color: var(--amber); }
.feedback-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; }
.success .feedback-icon { background: var(--green-soft); color: var(--green); }.error .feedback-icon,.rejected .feedback-icon { background: var(--red-soft); color: var(--red); }.warning .feedback-icon { background: var(--amber-soft); color: var(--amber); }
.feedback-copy { display: grid; gap: 4px; }.feedback-copy > span { font-weight: 500; color: var(--ink2); line-height: 1.45; }.feedback-close { width: 48px; min-height: 48px; margin: -6px -4px 0 0; border: 0; background: transparent; color: var(--ink2); font-size: 26px; cursor: pointer; }
.action-dialog { width: calc(100% - 32px); max-width: 460px; max-height: calc(100dvh - 40px); overflow-y: auto; padding: 28px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh); }
.action-dialog::backdrop { background: rgba(8,12,20,.6); }.action-dialog h2 { font: 700 28px/1.2 var(--cond); margin: 16px 0 10px; }.action-dialog p { color: var(--ink2); line-height: 1.6; white-space: pre-line; }.dialog-symbol { width: 44px; height: 44px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); border-radius: 12px; font-size: 24px; font-weight: 700; }.action-dialog.success .dialog-symbol { background: var(--green-soft); color: var(--green); }.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }.btn.destructive { background: var(--red); border-color: var(--red); color: var(--surface); }
@media(prefers-color-scheme:dark) { .btn.destructive { color: #17191e; } }
/* Hukuki metinler: özet, içerik dizini ve okunabilir uzun metin */
.legal-page { max-width: 760px; margin: 0 auto; padding: 20px 0; }.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 36px; }.legal-top > span { font: 700 19px var(--cond); letter-spacing: .05em; }.legal-top small { display: block; font: 500 var(--fs-body) var(--sans); text-align: right; color: var(--ink2); }.eyebrow { font-size: var(--fs-body); letter-spacing: .15em; color: var(--blue); font-weight: 700; margin-bottom: 12px; }.legal-page h1 { font: 700 42px/1.1 var(--cond); margin-bottom: 14px; }.legal-lead { color: var(--ink2); font-size: 18px; line-height: 1.6; }.legal-version { display: flex; gap: 20px; color: var(--ink2); font-size: var(--fs-body); margin: 20px 0; }.legal-draft { border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 14px 16px; border-radius: 10px; font-size: var(--fs-body); color: var(--ink2); }.legal-draft b { color: var(--amber); }.legal-draft p { margin-top: 4px; }
.legal-docs { display: grid; gap: 12px; margin: 28px 0; }.legal-docs > a { display: grid; grid-template-columns: 40px minmax(0,1fr) 20px; gap: 14px; align-items: center; padding: 20px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }.legal-docs h2 { font-size: 18px; margin-bottom: 4px; }.legal-docs p { font-size: var(--fs-body); color: var(--ink2); }.legal-doc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 24px; }.legal-summary { margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }.legal-summary h2 { font-size: 18px; }.legal-summary ul { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink2); }.legal-contents { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }.legal-contents b { margin-bottom: 8px; }.legal-contents a { color: var(--link); min-height: 48px; display: flex; align-items: center; font-size: var(--fs-body); }.legal-article section { margin-top: 32px; scroll-margin-top: 24px; }.legal-article h2 { font-size: 21px; margin-bottom: 12px; line-height: 1.4; }.legal-article p { color: var(--ink2); font-size: 17px; line-height: 1.85; }.legal-actions { display: flex; gap: 10px; margin-top: 32px; }.legal-contact { display: grid; justify-items: start; gap: 6px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }.legal-contact h2 { font-size: 21px; margin-bottom: 10px; }.legal-contact > b { margin-bottom: 8px; }.legal-contact .link { margin: 0; padding: 0; }.legal-contact p { margin-top: 12px; }.legal-footer { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; padding: 20px 0; font-size: var(--fs-body); color: var(--ink2); }
@media print { .legal-top,.legal-contents,.legal-actions,.legal-draft { display:none; }.legal-article section { break-inside: avoid; }.legal-page { color:#111; }.legal-article p { color:#333; } }
.notification-page { display: grid; gap: 16px; padding-bottom: 28px; }.push-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 16px; }.push-card h2 { font-size: 22px; }.push-card .eyebrow { margin: 0 0 4px; }.state-pill { border-radius: 999px; padding: 6px 12px; background: var(--surface2); color: var(--ink2); font-size: var(--fs-body); white-space: nowrap; }.state-pill.on { background: var(--green-soft); color: var(--green); }.message-note { background: var(--blue-soft); color: var(--ink); border-radius: 10px; padding: 14px; font-size: var(--fs-body); line-height: 1.6; }.notification-preferences { display: grid; border-block: 1px solid var(--line); }.switch-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--ink); font-size: var(--fs-body); }.switch-row + .switch-row { border-top: 1px solid var(--line2); }.switch-row input { width: 22px; height: 22px; min-height: 22px; flex: none; accent-color: var(--blue); }.notification-list { display: grid; gap: 10px; }.notification-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }.notification-item.unread { border-left: 3px solid var(--blue); }.notification-item h3 { font-size: 17px; }.notification-item p { margin: 6px 0 8px; color: var(--ink2); font-size: var(--fs-body); }.notification-item time { display: block; font-size: var(--fs-body); color: var(--ink2); }.notification-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.notification-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 700; }.notification-item.success .notification-mark { background: var(--green-soft); color: var(--green); }.notification-item.rejected .notification-mark { background: var(--red-soft); color: var(--red); }.notification-item.warning .notification-mark { background: var(--amber-soft); color: var(--amber); }.unread-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--blue); }.notification-empty { display: grid; justify-items: center; text-align: center; padding: 36px 20px; border: 1px dashed var(--line); border-radius: 14px; gap: 10px; color: var(--ink2); }.notification-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 22px; }.notification-empty h3 { color: var(--ink); font-size: 20px; }.message-panel { display: grid; gap: 12px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 12px; padding: 20px; background: var(--surface); }.notification-bell { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; }.notification-bell svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }.notification-bell [data-notification-count] { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 3px; color: #fff; background: #b42318; font: 700 var(--fs-body)/18px var(--sans); text-align: center; }.hb-actions { display: flex; gap: 8px; align-items: center; }
.checkrow a.link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; margin: 0; }

/* İşletme profili ve ayarlar */
.settings-intro { margin: 4px 0 24px; }.settings-intro h2 { font: 700 30px/1.15 var(--cond); margin-bottom: 8px; }
.settings-section-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }.settings-section-title p { margin-top: 6px; }
.settings-step { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 9px; background: var(--surface2); color: var(--ink2); font: 700 16px var(--cond); }
.profile-summary { display: flex; align-items: center; gap: 16px; padding: 12px 0 20px; border-bottom: 1px solid var(--line2); }.profile-summary > div:last-child { min-width: 0; }.profile-summary b { display: block; font-size: 20px; overflow-wrap: anywhere; }.profile-summary p { margin-top: 6px; }
.profile-photo { display: grid; place-items: center; flex: 0 0 80px; height: 80px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); overflow: hidden; font: 700 36px var(--cond); }.profile-photo img,.avatar img { width: 100%; height: 100%; object-fit: cover; }.avatar { overflow: hidden; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }.profile-actions .btn { white-space: normal; text-align: center; }
.profile-control { display: grid; gap: 6px; min-width: 0; }.profile-fields { margin-top: 8px; }.profile-fields input,.profile-fields textarea,.profile-fields label { min-width: 0; width: 100%; }.profile-fields label { display: grid; gap: 6px; }.profile-fields textarea { resize: vertical; }
.settings-details { border-top: 1px solid var(--line2); padding-top: 4px; min-width: 0; }.settings-details summary { min-height: 48px; padding: 12px 0; font-weight: 600; cursor: pointer; }.settings-details[open] summary { margin-bottom: 10px; }.settings-details .form { margin: 14px 0 4px; }
.settings-link { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line2); }.settings-link:last-child { border-bottom: 0; }.settings-link span { color: var(--ink2); }
.setting-label { font-size: 16px; font-weight: 600; }.settings-session { padding: 4px 0 16px; }.settings-session .btn { width: 100%; border: 1px solid var(--line); background: var(--surface); }
.profile-photo { position: relative; }
.profile-photo.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(8,12,20,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23fff' stroke-width='2.5' stroke-dasharray='40 20'/%3E%3C/svg%3E") center / 24px no-repeat; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hours-picker { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.hours-picker legend { font: 700 17px/1.2 var(--cond); padding: 0; margin-bottom: 2px; }
.hours-rows { display: grid; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.hours-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; align-items: center; gap: 8px 12px; padding: 10px 14px; min-height: 56px; border-bottom: 1px solid var(--line2); }
.hours-row:last-child { border-bottom: 0; }
.hours-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 48px; }
.hours-toggle input { width: 22px; height: 22px; min-height: 0; padding: 0; accent-color: var(--signal); flex: none; }
.hours-times { display: flex; align-items: center; gap: 6px; }
.hours-times select { width: auto; min-height: 48px; padding: 6px 10px; font: 700 16px var(--cond); }
.hours-state { grid-column: 1 / -1; margin-top: -6px; }
.hours-row:has(.hours-times:not([hidden])) .hours-state { display: none; }
.hours-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-dialog { max-width: 400px; }
.avatar-dialog h2 { font-size: 24px; margin-top: 0; }
.avatar-stage-wrap { display: grid; place-items: center; margin: 16px 0 12px; }
.avatar-stage { width: 280px; max-width: 100%; aspect-ratio: 1; border-radius: var(--r2); background: var(--surface2); border: 1px solid var(--line); cursor: grab; touch-action: none; }
.avatar-stage.is-dragging { cursor: grabbing; }
.avatar-stage:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.avatar-zoom { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; }
.avatar-zoom input[type=range] { min-height: 48px; padding: 0; accent-color: var(--signal); }
.avatar-dial { min-width: 4ch; text-align: right; font-family: var(--cond); }
.shop-contact { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); margin: 24px 0; padding: 20px; overflow-wrap: anywhere; }.shop-contact-head { display: flex; gap: 12px; align-items: center; }.shop-contact-head img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; }.shop-contact address { font-style: normal; white-space: pre-line; color: var(--ink2); }.shop-contact p { white-space: pre-line; }.shop-contact .profile-actions { margin: 0; }
.brand-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 12px; text-align: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); color: var(--ink2); font-size: var(--fs-body); }.brand-footer b { font-weight: 700; letter-spacing: .03em; }.brand-footer p { flex-basis: 100%; }.brand-footer span { border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
body:not(.public) .brand-footer { padding-bottom: calc(var(--navh) + 24px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .profile-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.profile-wide { grid-column: 1 / -1; } }
@media (min-width: 960px) { body:not(.public) .brand-footer { padding-bottom: 24px; } }
@media (max-width: 359px) { .profile-summary { align-items: flex-start; gap: 12px; }.profile-photo { flex-basis: 64px; height: 64px; }.profile-actions { align-items: stretch; } }

/* ---------- Sayfa geçişleri ve yükleme ---------- */
#app.enter { animation: pageIn .26s cubic-bezier(.2,.7,.2,1) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.route-bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: var(--signal); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.route-bar.run { opacity: 1; transform: scaleX(.78); transition: transform 1.6s cubic-bezier(.1,.6,.2,1), opacity .15s; transition-delay: .08s, 0s; }
.route-bar.done { opacity: 0; transform: scaleX(1); transition: transform .18s ease-out, opacity .3s ease .12s; }
.page-skel { display: grid; gap: 14px; padding-top: 28px; animation: fade .18s ease-out; }
.sk { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface2); }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 1.3s ease-in-out infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.sk-head { height: 34px; width: 46%; }
.sk-line { height: 14px; width: 72%; margin-top: -4px; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 6px; }
.sk-stat { height: 72px; }
.sk-card { height: 96px; border-radius: var(--r2); }
.sk-card.short { height: 64px; width: 84%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hatırlatmalar: üst özet ---------- */
.rem-hero { display: flex; gap: 14px; align-items: center; padding: 18px 18px 18px 20px; margin: 4px 0 14px; border-radius: var(--r2); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--green); }
.rem-hero.alert { border-left-color: var(--red); background: linear-gradient(90deg, var(--red-soft), var(--surface) 70%); }
.rem-hero .eyebrow { margin: 0 0 4px; font-size: var(--fs-body); letter-spacing: .12em; color: var(--ink2); font-weight: 700; }
.rem-hero h2 { font-size: 26px; margin: 0 0 4px; }
.rem-hero p { margin: 0; }

/* ---------- Bildirim merkezi ---------- */
.inbox-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 8px 0 12px; }
.inbox-head .eyebrow { margin: 0 0 2px; font-size: var(--fs-body); letter-spacing: .12em; color: var(--ink2); font-weight: 700; }
.inbox-head h2 { margin: 0 0 2px; font-size: 30px; }
.inbox-head p { margin: 0; }
.inbox-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 14px; background: var(--surface2); border-radius: 12px; }
.inbox-tabs button { min-height: 48px; border: 0; border-radius: 9px; background: none; font-weight: 700; color: var(--ink2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.inbox-tabs button[aria-selected=true] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.inbox-tabs b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font: 700 var(--fs-body)/22px var(--sans); }
.inbox-day { margin-bottom: 18px; }
.inbox-day-title { font: 700 var(--fs-body)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); margin: 0 0 8px; }
.inbox-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 16px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); }
.inbox-item.unread { border-color: var(--ink2); }
.inbox-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 20px/1 var(--cond); background: var(--blue-soft); color: var(--blue); }
.inbox-item.success .inbox-mark { background: var(--green-soft); color: var(--green); }
.inbox-item.rejected .inbox-mark { background: var(--red-soft); color: var(--red); }
.inbox-item.warning .inbox-mark { background: var(--amber-soft); color: var(--amber); }
.inbox-item.read { opacity: .72; }
.inbox-title { display: flex; align-items: center; gap: 8px; }
.inbox-title h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.inbox-body p { margin: 4px 0 8px; color: var(--ink2); line-height: 1.5; }
.inbox-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--fs-body); color: var(--ink2); }
.inbox-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; color: var(--ink2); }
.inbox-empty span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font: 700 26px/1 var(--sans); margin-bottom: 6px; }
.inbox-empty h3 { margin: 0; color: var(--ink); font-size: 20px; }
.inbox-empty p { margin: 0; max-width: 32ch; }
.device-card { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); }
.device-card > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; min-height: 60px; }
.device-card > summary::-webkit-details-marker { display: none; }
.device-card > summary::after { content: "⌄"; font-size: 20px; color: var(--ink2); transition: transform .2s; }
.device-card[open] > summary::after { transform: rotate(180deg); }
.device-sum { display: grid; gap: 2px; } .device-sum b { font-size: 16px; } .device-sum small { color: var(--ink2); font-size: var(--fs-body); }
.device-body { padding: 0 18px 18px; }
.device-body .push-card { border: 0; padding: 0; }

/* ---------- Hareket azaltma tercihi ---------- */
@media (prefers-reduced-motion: reduce) {
  #app.enter, .page-skel, .sk::after, .route-bar.run, .route-bar.done { animation: none; transition: none; }
}

/* ---------- Zil ve okunmamış sayısı ---------- */
.hb-actions { display: flex; align-items: center; gap: 8px; }
.notification-bell { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid var(--on-signal); color: var(--on-signal); text-decoration: none; flex: none; }
.notification-bell svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notification-bell:active { transform: scale(.96); }
.notification-bell [data-notification-count] { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font: 700 var(--fs-body)/22px var(--sans); text-align: center; box-shadow: 0 0 0 2px var(--signal); font-variant-numeric: tabular-nums; }
.notification-bell [data-notification-count][hidden] { display: none; }
.inbox-item { text-decoration: none; color: inherit; }
.inbox-more { color: var(--link); font-weight: 700; }

/* ---------- Bildirim detayı ---------- */
.ndetail { margin: 8px 0 0; padding: 22px 20px 24px; background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--blue); border-radius: var(--r2); display: grid; gap: 14px; }
.ndetail.success { border-top-color: var(--green); } .ndetail.rejected { border-top-color: var(--red); } .ndetail.warning { border-top-color: var(--amber); }
.ndetail-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 700 26px/1 var(--cond); background: var(--blue-soft); color: var(--blue); }
.ndetail.success .ndetail-mark { background: var(--green-soft); color: var(--green); } .ndetail.rejected .ndetail-mark { background: var(--red-soft); color: var(--red); } .ndetail.warning .ndetail-mark { background: var(--amber-soft); color: var(--amber); }
.ndetail-head { display: grid; gap: 6px; }
.ndetail-kind { margin: 6px 0 0; font: 700 var(--fs-body)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.ndetail-title { margin: 0; font: 700 28px/1.2 var(--cond); }
.ndetail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-body); color: var(--ink2); }
.ndetail-state { padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: var(--fs-body); background: var(--surface2); color: var(--ink2); }
.ndetail-state.unread { background: var(--ink); color: var(--paper); }
.ndetail-body { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.ndetail-actions { display: grid; gap: 10px; margin-top: 16px; }
.ndetail-actions .btn.big { width: 100%; }
@media (prefers-reduced-motion: reduce) { .notification-bell:active { transform: none; } }

/* ---------- Faz 1–6: iş emri, atölye, ödeme, belge ----------
   İlkeler aynı: sarı yalnızca birincil eylem ve seçim; durumlar yazıyla ve renkle (renk tek başına anlam taşımaz).
   Dokunma hedefleri ≥ 44 px (eldivenli el); ağır gölge ve hareket yok. */
.wo-wrap { display: grid; gap: 14px; padding-bottom: 28px; }
.wo-wrap > * { min-width: 0; }
.wo-head { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px; }
.wo-subj { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.wo-subj > span:not(.plate):not(.wo-parttag) { display: grid; flex: 1; min-width: 0; } .wo-subj svg { width: 20px; height: 20px; fill: none; stroke: var(--ink2); stroke-width: 2; }
.wo-subj.part { display: grid; gap: 2px; } .wo-subj.part b { font: 700 26px/1.05 var(--cond); } .wo-subj.part small { color: var(--ink2); }
.wo-parttag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--fs-body); font-weight: 700; }
.wo-parttag svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.wo-cust { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line2); padding-top: 10px; }
.wo-cust > span:first-child { display: grid; flex: 1; min-width: 0; } .wo-cust small { color: var(--ink2); font-size: var(--fs-body); } .wo-cust b { overflow-wrap: anywhere; }
.wo-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wo-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: var(--fs-body); font-weight: 700; background: var(--surface2); color: var(--ink); border: 1.5px solid transparent; }
.wo-pill.st-kabul { background: var(--blue-soft); color: var(--blue); } .wo-pill.st-islem { background: var(--ink); color: var(--paper); }
.wo-pill.st-bekle { background: var(--amber-soft); color: var(--amber); } .wo-pill.st-hazir { background: var(--green-soft); color: var(--green); }
.wo-pill.st-teslim { background: var(--surface2); color: var(--ink2); } .wo-pill.st-iptal { background: var(--surface2); color: var(--ink2); text-decoration: line-through; }
.wo-pill.st-late { background: var(--red); color: #fff; } .wo-pill.st-onay { background: var(--amber-soft); color: var(--amber); border-color: var(--amber); }
.wo-promise { min-height: 48px; padding: 0 12px; border: 1.5px dashed var(--line); border-radius: var(--r); background: none; color: var(--ink2); font-weight: 600; cursor: pointer; }
.wo-promise b { color: var(--ink); }
.wo-note { display: flex; align-items: center; gap: 6px; color: var(--ink2); font-size: var(--fs-body); } .wo-note svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.wo-next { display: grid; gap: 8px; } .wo-next .qrow > * { flex: 1; }
.okbar.warn { background: var(--surface2); color: var(--ink2); }
.wo-approve { display: grid; gap: 10px; padding: 14px; border-radius: var(--r2); background: var(--amber-soft); border: 1.5px solid var(--amber); color: var(--amber); }
.wo-approve > div:first-child { display: grid; } .wo-approve b { font: 700 20px/1.15 var(--cond); } .wo-approve span { font-size: var(--fs-body); font-weight: 600; }
.wo-approve .qrow > * { flex: 1; } .wo-approve .btn:not(.wa) { color: var(--ink); }
.wo-sec { display: grid; gap: 10px; } .wo-sec > .sec { margin: 10px 0 0; }
.wo-lines { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.wo-line { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; min-height: 56px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line2); background: none; text-align: left; cursor: pointer; color: var(--ink); width: 100%; }
.wo-line:first-child { border-top: 0; } .wo-line.sub { padding-left: 32px; background: color-mix(in srgb, var(--surface2) 40%, transparent); }
.wo-line.ret { opacity: .55; } .wo-line.ret .a { text-decoration: line-through; }
.wo-line .n { display: grid; gap: 2px; min-width: 0; } .wo-line .n b { overflow-wrap: anywhere; } .wo-line .n small { color: var(--ink2); font-size: var(--fs-body); }
.wo-line .a { font: 700 18px/1.2 var(--cond); white-space: nowrap; font-variant-numeric: tabular-nums; }
.wo-line .bs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.wo-line .b { font-style: normal; font-size: var(--fs-body); font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface2); color: var(--ink2); }
.wo-line .b.onay { background: var(--amber-soft); color: var(--amber); } .wo-line .b.ok { background: var(--green-soft); color: var(--green); } .wo-line .b.ret { background: var(--red-soft); color: var(--red); } .wo-line .b.gar { background: var(--blue-soft); color: var(--blue); }
.wo-empty { padding: 4px 0; }
.wo-addrow { display: flex; flex-wrap: wrap; gap: 8px; } .wo-addrow .btn { flex: 1 1 auto; }
.wo-total { display: grid; gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.wo-total > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.wo-total dt { color: var(--ink2); font-weight: 600; } .wo-total dd { margin: 0; font: 700 18px/1.2 var(--cond); font-variant-numeric: tabular-nums; }
.wo-total .sum dd { font-size: 26px; } .wo-total .sum dt { color: var(--ink); }
.wo-total .pend dd, .wo-total .pend dt { color: var(--amber); } .wo-total .late dd, .wo-total .late dt { color: var(--red); }
.wo-vat { max-width: 260px; }
.wo-pays { display: grid; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.wo-pay { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line2); background: none; text-align: left; color: var(--ink); cursor: pointer; }
.wo-pay:first-child { border-top: 0; } .wo-pay span:first-child { display: grid; } .wo-pay small { color: var(--ink2); font-size: var(--fs-body); }
.wo-pay .a { font: 700 18px var(--cond); } .wo-pay.x .a { text-decoration: line-through; color: var(--ink2); } .wo-pay:disabled { cursor: default; color: var(--ink); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipset .chip2[aria-pressed=true], a.chip2[aria-current=page] { background: var(--signal); border-color: var(--on-signal); color: var(--on-signal); }
.chipset .chip2 i { font-style: normal; font-size: var(--fs-body); opacity: .75; margin-left: 2px; }
a.chip2 { display: inline-flex; align-items: center; }
.wo-stage .chip2 { min-height: 48px; padding: 0 12px; font-size: var(--fs-body); }
.wo-shoot { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; } .btn.disabled { opacity: .5; pointer-events: none; }
.wo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.wo-th { position: relative; display: grid; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface2); cursor: pointer; aspect-ratio: 1; }
.wo-th img { width: 100%; height: 100%; object-fit: cover; } .wo-th span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgba(0,0,0,.62); color: #fff; font-size: var(--fs-body); font-weight: 700; text-align: left; }
.wo-big { width: 100%; max-height: 46vh; object-fit: contain; border-radius: var(--r); background: var(--surface2); }
.wo-cmp { display: grid; gap: 6px; } .wo-cmp > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wo-cmp figure { margin: 0; display: grid; gap: 4px; } .wo-cmp img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--surface2); }
.wo-cmp figcaption { font: 700 var(--fs-body) var(--cond); letter-spacing: .04em; }
.wo-moregroup { display: grid; gap: 0; border-top: 1px solid var(--line); } .wo-more { border-top: 0; border-bottom: 1px solid var(--line); padding: 4px 0 8px; }
.wo-lbl { font-weight: 600; margin-bottom: 6px; }
.wo-damages { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.wo-damages li { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 4px 12px; background: var(--red-soft); color: var(--red); border-radius: var(--r); font-weight: 600; }
.wo-meas { display: grid; gap: 4px; } .wo-meas > b { font: 700 18px var(--cond); }
.wo-meas-h, .wo-meas-r { display: grid; grid-template-columns: minmax(0, 1.6fr) 1fr 1fr minmax(72px, auto); gap: 6px; align-items: center; }
.wo-meas-h { font-size: var(--fs-body); font-weight: 700; color: var(--ink2); }
.wo-meas-r > span:first-child { display: grid; min-width: 0; } .wo-meas-r small { color: var(--ink2); font-size: var(--fs-body); } .wo-meas-r input { min-height: 48px; padding: 8px; }
.wo-meas-r .r { display: flex; align-items: center; justify-content: flex-end; font-size: var(--fs-body); font-weight: 700; }
.wo-meas-r .r.uygun { color: var(--green); } .wo-meas-r .r.uygun_degil { color: var(--red); } .wo-meas-r .r.sinirda { color: var(--amber); }
.wo-war, .wo-log { margin: 0; padding: 0; list-style: none; display: grid; }
.wo-war li, .wo-log li { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0; border-bottom: 1px solid var(--line2); }
.wo-log li > span:first-child { display: grid; min-width: 0; } .wo-log small, .wo-war span { color: var(--ink2); font-size: var(--fs-body); }
.wo-costs { display: grid; gap: 10px; } .wo-cost { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line2); }
.wo-cost > span { grid-column: 1 / -1; display: grid; } .wo-cost small { color: var(--ink2); font-size: var(--fs-body); }
.wo-msgs, .wo-docs { display: flex; flex-wrap: wrap; gap: 8px; } .wo-msgs .btn, .wo-docs .btn { flex: 1 1 46%; }
.wo-filter { margin-top: 2px; }
.wo-list { display: grid; border: 1px solid var(--line); border-radius: var(--r2); background: var(--surface); overflow: hidden; }
.wo-row { display: grid; gap: 4px; padding: 12px 14px; border-top: 1px solid var(--line2); color: var(--ink); position: relative; }
.wo-row:first-child { border-top: 0; } .wo-row.late { box-shadow: inset 5px 0 0 var(--red); }
.wo-row-top { display: flex; align-items: center; gap: 10px; min-width: 0; } .wo-row-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wo-row-mid { display: flex; flex-wrap: wrap; gap: 6px; }
.wo-row-sub { color: var(--ink2); font-size: var(--fs-body); } .wo-row-sub em { font-style: normal; font-weight: 700; color: var(--ink); } .wo-row-sub em.late { color: var(--red); }
.wo-row-amt { position: absolute; right: 14px; top: 12px; font: 700 20px var(--cond); }
.wo-new .seg2 { margin-left: 0; margin-right: 0; padding: 0; position: static; }
.wo-chosen { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.wo-chosen span { flex: 1; min-width: 0; }
.wo-match { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; cursor: pointer; color: var(--ink); }
.wo-match span { flex: 1; min-width: 0; } .wo-match svg { width: 20px; height: 20px; fill: none; stroke: var(--ink2); stroke-width: 2; }
.wo-decide { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line2); }
.wo-decide:first-child { border-top: 0; } .wo-decide > span { display: grid; } .wo-decide small { color: var(--ink2); }
.wo-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .wo-kpis > div { display: grid; gap: 2px; }
.wo-kpis small { color: var(--ink2); font-size: var(--fs-body); font-weight: 600; } .wo-kpis b { font: 700 24px/1.1 var(--cond); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .wo-kpis .late b { color: var(--red); }
.wo-homeacts { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; } .wo-homeacts .btn { width: 100%; white-space: nowrap; } .wo-homeacts .btn:not(.primary) { padding: 0 18px; }
#wb .sec { margin-top: 18px; }
.hb-sub2 { color: rgba(var(--on-signal-rgb),.78); font-size: var(--fs-body); padding-bottom: 4px; }
.wo-vopen { margin-bottom: 12px; } .wo-vopen .wo-row { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin-bottom: 6px; }
.wo-vacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; } .wo-vacts .vact-primary { margin: 0; }
.okpay { display: grid; gap: 8px; width: 100%; max-width: 520px; margin: 8px auto 0; text-align: left; } .okpay .chipset .chip2 { flex: 1 1 40%; }
.live-card { display: grid; gap: 10px; margin: 8px 0 16px; padding: 16px; border-radius: var(--r2); background: var(--surface); border: 1px solid var(--line); }
.live-card .h1 { font-size: 34px; } .live-card .h1 small { font-size: 20px; color: var(--amber); }
.live-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.live-steps li { padding-top: 8px; border-top: 5px solid var(--surface2); font-size: var(--fs-body); font-weight: 700; color: var(--ink2); }
.live-steps li.done { border-color: var(--ink); color: var(--ink); } .live-steps li.cur { border-color: var(--signal); color: var(--ink); }
.live-work ul { margin: 6px 0 0; padding-left: 20px; }
.eyebrow { font: 700 var(--fs-body) var(--cond); letter-spacing: .08em; color: var(--ink2); text-transform: uppercase; }
.garaj-note { margin: 4px 0 10px; }
.onay-subj { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.onay-page .wo-lines { background: var(--surface); }
/* Alt sayfa: uzun içerik kayar, kapatma düğmesi görünür kalır */
.wo-sheet { max-height: 92dvh; grid-template-rows: auto minmax(0, 1fr); } .wo-sheet-body { overflow: auto; display: grid; gap: 12px; padding-bottom: 6px; overscroll-behavior: contain; }
.wo-sheet .service-picker { margin: 0; } body.sheet-open { overflow: hidden; }
/* Belgeler */
.doc-tabs { margin: 0 0 10px; } .doc-shop { display: flex !important; gap: 12px; align-items: flex-start; } .doc-shop > div { display: grid; gap: 1px; font-size: var(--fs-body); }
.doc-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.belge .bmark b { font: 700 22px/1 var(--cond); text-align: right; }
.btable td small { display: block; color: #555; font-size: var(--fs-body); font-weight: 500; } .btable tr.sub td:first-child { padding-left: 20px; }
.btable tfoot tr:not(.grand) td { font-size: var(--fs-body); font-weight: 600; border-top: 1px solid #ccc; } .btable tfoot tr.grand td { border-top: 2px solid #12141a; }
.btable.meas td:nth-child(n+2), .btable.meas th:nth-child(n+2) { text-align: center; }
.doc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .doc-photos figure { margin: 0; break-inside: avoid; }
.doc-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 1px solid #ccc; } .doc-photos figcaption { font-size: var(--fs-body); color: #444; }
.doc-sigs { display: flex; gap: 20px; margin-top: 18px; }
.belge footer.doc-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 14px; border-top: 1px solid #ccc; padding-top: 10px; margin-top: 8px; }
.doc-brand .wordmark { transform: scale(.8); transform-origin: right bottom; }
.belge h2.h2 { font-size: 18px; margin-top: 4px; } .belge ul { margin: 0; padding-left: 20px; }
@media (max-width: 520px) {
  .belge { padding: 14px; } .belge header { flex-direction: column; } .bmark { justify-items: start !important; } .belge .bmark b { text-align: left; }
  .btable { font-size: var(--fs-body); } .btable th, .btable td { padding: 6px 3px; }
  .belge footer.doc-foot { grid-template-columns: 1fr; } .wo-meas-h, .wo-meas-r { grid-template-columns: minmax(0, 1.3fr) 1fr 1fr 56px; }
  .wo-kpis b { font-size: 20px; }
}
@media print {
  .wo-sheet, .sheet-back, #lightbox { display: none !important; }
  .belge h2.h2, .btable tr, .doc-sigs { break-inside: avoid; }
  body.print-history .vact, body.print-history .seg2, body.print-history .actrow, body.print-history .legal-footer { display: none !important; }
  body.print-history .pane[hidden] { display: none !important; }
}
@media (max-width: 959px) { .wo-vacts { grid-template-columns: 1fr; } } /* telefonda Hızlı işlem alttaki sabit çubukta: İş aç tam genişlik */

/* ---------- Sekme sayfa başı ve Menü ---------- */
.pagehead { padding: 28px 0 16px; } .pagehead h1 { font: 700 var(--fs-title)/1.1 var(--cond); } .pagehead .lead { color: var(--ink2); margin-top: 6px; font-size: var(--fs-label); line-height: 1.35; }
.vhead { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.menulist { display: grid; border-top: 1px solid var(--line); }
.menurow { display: grid; grid-template-columns: 48px minmax(0, 1fr) 24px; gap: 16px; align-items: center; min-height: 80px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menurow:active { background: var(--surface2); }
.menurow .mi { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--surface2); }
.menurow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menurow > svg { width: 22px; height: 22px; color: var(--ink2); }
.menurow .mt { display: grid; gap: 2px; } .menurow .mt b { font-size: var(--fs-label); } .menurow .mt > span { color: var(--ink2); line-height: 1.35; }

/* ---------- Bugün ---------- */
.hb-date { color: rgba(var(--on-signal-rgb),.78); margin-top: 2px; }
.hb-sub { font-size: var(--fs-label); font-weight: 700; color: var(--on-signal); margin: 8px 0 18px; }
.todo-list { display: grid; gap: 12px; }
.todo-card { display: grid; gap: 12px; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-left: 6px solid var(--ink2); border-radius: var(--r2); min-width: 0; }
.todo-card.late { border-left-color: var(--red); } .todo-card.approved, .todo-card.ready { border-left-color: var(--green); }
.todo-card.parts, .todo-card.approval { border-left-color: var(--amber); } .todo-card.due { border-left-color: var(--blue); }
.todo-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; } .todo-top b { font-size: var(--fs-label); min-width: 0; overflow-wrap: anywhere; }
.todo-text { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-label); line-height: 1.25; overflow-wrap: anywhere; }
.todo-text svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.todo-card.late .todo-text { color: var(--red); } .todo-card.approved .todo-text, .todo-card.ready .todo-text { color: var(--green); } .todo-card.parts .todo-text, .todo-card.approval .todo-text { color: var(--amber); } .todo-card.due .todo-text { color: var(--blue); }
.todo-card .btn { width: 100%; }
.todo-none { padding: 20px 0; color: var(--ink2); font-size: var(--fs-label); }
.stage-group + .stage-group { margin-top: 20px; }
.stage-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font: 700 var(--fs-label) var(--sans); }
.stage-h span { min-width: 32px; padding: 0 10px; border-radius: 999px; background: var(--surface2); text-align: center; font-size: var(--fs-body); }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; border-top: 2px solid var(--ink); }
.stat-strip a { display: grid; gap: 2px; align-content: start; min-height: 72px; padding: 12px 8px 12px 0; }
.stat-strip a + a { padding-left: 12px; border-left: 1px solid var(--line); }
.stat-strip b { font: 700 28px/1 var(--cond); font-variant-numeric: tabular-nums; } .stat-strip span { color: var(--ink2); }
.stat-strip .warn b { color: var(--red); }
.dash-head { margin-bottom: 8px; } .dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }

/* ---------- Liste satırı: tek durum + düz cümle ---------- */
.wo-pill svg { width: 18px; height: 18px; margin-right: 6px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wo-note { display: block; font-weight: 700; } .wo-note.late { color: var(--red); } .wo-note.pend { color: var(--amber); }

/* ---------- Yeni iş / kabul ---------- */
.choice-big { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-btn); }
.choice-big .btn { min-height: 76px; flex-direction: column; gap: 6px; font-size: var(--fs-label); }
.intake-count { margin: 4px 0 8px; font-weight: 700; color: var(--ink2); font-size: var(--fs-label); }

/* ---------- İş emri: aşama çubuğu, sekmeler, sabit sıradaki adım ---------- */
#app:has(.wo-job) { padding-bottom: 0; }
.wo-job { display: flex; flex-direction: column; min-height: calc(100dvh - 65px - env(safe-area-inset-top)); padding-bottom: 0; }
.wo-job > * { flex: none; }
.wo-progwrap { display: grid; gap: 8px; }
.wo-progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.wo-progress li { display: grid; gap: 6px; justify-items: start; font-weight: 600; color: var(--ink2); min-width: 0; }
.wo-progress li i { display: block; width: 100%; height: 8px; border-radius: 4px; background: var(--line); }
.wo-progress li.done i { background: var(--green); } .wo-progress li.done { color: var(--green); }
.wo-progress li.now i { background: var(--signal); } .wo-progress li.now { color: var(--ink); font-weight: 800; }
.wo-flag { font-weight: 800; font-size: var(--fs-label); } .wo-flag.bekliyor { color: var(--amber); } .wo-flag.iptal { color: var(--red); }
.wo-tabs { position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 5; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 -20px; padding: 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.wo-tabs button { min-height: 52px; padding: 0 4px; border: 0; border-bottom: 4px solid transparent; background: none; font-weight: 700; color: var(--ink2); cursor: pointer; overflow-wrap: normal; }
.wo-tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--signal); }
.wo-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.wo-sum span { display: grid; color: var(--ink2); font-size: var(--fs-body); min-width: 0; } .wo-sum b { font: 700 22px/1.1 var(--cond); color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wo-facts { display: grid; margin: 0; } .wo-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line2); } .wo-facts dt { color: var(--ink2); } .wo-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.wo-job > .wo-next { position: sticky; bottom: 0; z-index: 6; margin: auto -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(18,20,26,.06); }
.wo-job:has(input:focus, textarea:focus, select:focus) > .wo-next { position: static; }
@media (min-width: 960px) { .wo-tabs { top: 0; margin: 0; padding: 0; } .wo-job > .wo-next { margin: auto 0 0; padding-left: 0; padding-right: 0; } }
.wo-progress.waiting li.now i { background: var(--amber); }

/* ---------- İlk açılış kartı ---------- */
.tour-card { display: grid; gap: 12px; margin-top: 16px; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-left: 6px solid var(--signal); border-radius: var(--r2); }
.tour-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tour-card li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-label); font-weight: 600; }
.tour-card li b { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--signal); color: var(--on-signal); font: 700 18px/1 var(--cond); }
.tour-card p { color: var(--ink2); font-size: var(--fs-label); line-height: 1.35; }

.pagelead { margin: 0 0 12px; color: var(--ink2); font-size: var(--fs-label); line-height: 1.35; }

/* ---------- Müşteri onay sayfası: büyük, eşit karar düğmeleri ---------- */
.onay-page .wo-decide { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; gap: 12px; padding: 16px; }
.onay-page .wo-decide > span { min-width: 0; overflow-wrap: anywhere; } .onay-page .wo-decide > span b { font-size: var(--fs-label); }
.onay-page .wo-decide .chipset { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-btn); width: 100%; margin: 0; padding: 0; overflow: visible; }
.onay-page .wo-decide .chip2 { min-height: var(--tap); justify-content: center; font-size: var(--fs-label); font-weight: 700; border-radius: var(--r); }
.onay-page .chip2[aria-pressed=true]::before { margin-right: 6px; font-weight: 800; }
.onay-page .chip2[data-v=onay][aria-pressed=true] { background: var(--green); border-color: var(--green); color: var(--paper); } .onay-page .chip2[data-v=onay][aria-pressed=true]::before { content: "✓"; }
.onay-page .chip2[data-v=ret][aria-pressed=true] { background: var(--red); border-color: var(--red); color: var(--paper); } .onay-page .chip2[data-v=ret][aria-pressed=true]::before { content: "✕"; }

/* ---------- Marka: küp logosu ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brandmark { width: 34px; height: 34px; flex: none; display: block; border-radius: 8px; }
#nav .logo img { width: 44px; height: 44px; display: block; border-radius: 10px; }

/* ---------- Karşılama: büyük küp + sade yazı ---------- */
.wl-hero .brand { gap: 14px; align-self: flex-start; }
.wl-hero .brandmark { width: 56px; height: 56px; border-radius: 13px; }
.wl-hero .wordmark { font-size: 28px; }

.pubhead .wordmark { color: var(--ink); font-size: 20px; }

/* İş seçici (job-picker.js): yalnızca düzen; renkler mevcut değişkenlerden. */
.jp-body { display: grid; gap: 14px; }
.jp-h { font: 700 var(--fs-label) var(--cond); letter-spacing: .02em; color: var(--ink2); margin: 6px 0 -4px; }
.jp-systems { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jp-system { min-height: calc(var(--tap) + 16px); text-align: left; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; align-content: center; gap: 2px; font-size: var(--fs-body); cursor: pointer; }
.jp-system b { font: 700 17px/1.2 var(--sans); } .jp-system small { color: var(--ink2); }
.jp-system:active, .jp-part:active { transform: scale(.98); }
.jp-parts, .jp-list { display: grid; gap: 8px; }
.jp-part { min-height: var(--tap); text-align: left; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-body); font-weight: 600; cursor: pointer; }
.jp-part small { color: var(--ink2); flex: none; }
.jp-job { font-size: var(--fs-body); }
.jp-job > span { display: grid; gap: 2px; } .jp-sub { color: var(--ink2); font-weight: 500; }
.picker-head .link[data-jp-back]::before { content: "‹ "; }
.jp-scrim { position: fixed; inset: 0; z-index: 94; background: rgba(0,0,0,.4); }
.jp-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; max-width: 640px; margin: 0 auto; max-height: 70vh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; background: var(--surface); border-radius: 22px 22px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); box-shadow: var(--sh); }
.jp-panel-head b { font: 700 var(--fs-sec) var(--cond); }
.jp-panel .jp-list { overflow: auto; overscroll-behavior: contain; align-content: start; }
/* Seçilenler: kaydırırken görünür kalır; hızlı işlemin sabit alt çubuğunu örtmez. */
.jp .selected-services:not(:empty) { position: sticky; bottom: var(--jp-dock, 0px); z-index: 4; background: var(--paper); padding: 8px 0; border-top: 1px solid var(--line); max-height: 28vh; overflow-y: auto; }
