/* qVENT 1.0 \002014 quedra marka renkleri */
:root {
  --brand: #EE8700; --brand-d: #D47800; --brand-ink: #B35F00; --brand-soft: #FFF1DC; --brand-soft2: #FFE5BF;
  --ink: #1A1918; --ink2: #3A3836; --muted: #6E6A66; --line: #ECE8E3; --line2: #DCD6CF;
  --bg: #F7F5F2; --card: #FFFFFF; --red: #C0362C; --red-soft: #FDECEA; --green: #1E7B4E; --green-soft: #E5F4EC;
  --blue: #1D5FB8; --blue-soft: #E6EFFB; --yellow-soft: #FFF6D6; --yellow: #8A6A00;
  --r: 16px; --r-s: 10px; --shadow: 0 1px 2px rgba(26, 25, 24, .05), 0 4px 16px rgba(26, 25, 24, .05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; justify-content: center; }
.lead { color: var(--ink2); font-size: 16px; }
.error { color: var(--red); }
.link { color: var(--brand-ink); font-weight: 600; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }
.row { display: flex; align-items: center; }
.row.gap { gap: 10px; } .gap-s { gap: 6px; display: flex; } .row.wrap, .wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pad { padding: 0 16px 16px; }
.ic { flex: none; }
[hidden] { display: none !important; }

/* ---------- kabuk ---------- */
#app { min-height: 100vh; }
.sidebar { display: none; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(247, 245, 242, .88); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.topbar .brand img { border-radius: 8px; }
main#view { padding: 8px 16px calc(var(--tab-h) + var(--safe-b) + 28px); max-width: 1180px; margin: 0 auto; outline: none; display: flex; flex-direction: column; gap: 16px; }
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.tabbar > a, .tabbar > button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 550; color: var(--muted); padding: 6px 0; }
.tabbar > .on { color: var(--brand-ink); }
.tabbar .fab { width: 58px; height: 58px; margin: -26px auto 0; border-radius: 50%; background: var(--brand); color: #fff; justify-content: center; box-shadow: 0 6px 18px rgba(238, 135, 0, .42); border: 4px solid var(--bg); }
.tabbar .fab.on { color: #fff; background: var(--brand-d); }

@media (min-width: 900px) {
  #app { display: grid; grid-template-columns: 252px 1fr; }
  .topbar, .tabbar { display: none; }
  .sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: var(--card); border-right: 1px solid var(--line); }
  .sidebar .brand { display: flex; gap: 10px; align-items: center; padding: 0 6px; }
  .sidebar .brand img { border-radius: 9px; }
  .sidebar .brand b { display: block; font-size: 19px; line-height: 1.1; }
  .sidebar .brand span { font-size: 11.5px; color: var(--muted); }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 550; color: var(--ink2); }
  .sidebar nav a:hover { background: var(--bg); }
  .sidebar nav a.on { background: var(--brand-soft); color: var(--brand-ink); }
  .side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
  .side-foot .me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--bg); }
  .side-foot .me > div { flex: 1; min-width: 0; }
  .side-foot .me b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side-foot .me small { color: var(--muted); }
  .side-foot .quedra { opacity: .7; align-self: flex-start; margin-left: 8px; }
  main#view { padding: 28px 36px 48px; width: 100%; }
  h1 { font-size: 30px; }
  .hide-lg { display: none !important; }
}
@media (max-width: 899px) { .hide-sm { display: none; } }

/* ---------- temel par\0000E7alar ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; }
.card.pad { padding: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.page-head p { margin-top: 2px; }
.backlink { display: inline-flex; align-items: center; gap: 2px; color: var(--brand-ink); font-weight: 600; font-size: 15px; margin-bottom: -6px; align-self: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; background: var(--card); border: 1px solid var(--line2); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .15s, transform .05s; -webkit-tap-highlight-color: transparent; }
.btn:hover { background: #FBFAF8; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); }
.btn.danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost.danger { color: var(--red); background: transparent; }
.btn.on { background: var(--brand-soft); border-color: var(--brand-soft2); color: var(--brand-ink); cursor: default; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn.lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn.block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--ink2); }
.iconbtn:hover { background: var(--bg); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #F1EEEA; color: var(--ink2); white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--brand-soft); color: var(--brand-ink); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.solid { background: var(--brand); color: #fff; }
.badge.green.solid { background: var(--green); color: #fff; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.dot.red { background: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); font-size: 14px; font-weight: 550; color: var(--ink2); max-width: 100%; }
.chip.sm { height: 30px; padding: 0 11px; font-size: 13px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
select.chip { padding-right: 30px; appearance: none; -webkit-appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E6A66' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 700; font-size: 15px; background: var(--brand-soft); color: var(--brand-ink); letter-spacing: .02em; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.xl { width: 72px; height: 72px; font-size: 26px; }
.avatar.sq { border-radius: 12px; background: #F1EEEA; color: var(--ink2); }
.avatar.xl.sq { border-radius: 20px; }
.avatar.orange { background: var(--brand-soft); color: var(--brand-ink); }
.avatar.img { object-fit: cover; border-radius: 10px; width: 54px; height: 42px; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 40px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 17px; }
.empty .btn { margin-top: 8px; }
.note { background: var(--yellow-soft); border-radius: 12px; padding: 12px 14px; margin: 0 16px 16px; white-space: pre-wrap; font-size: 14px; }
main > .note { margin: 0; }

/* liste */
.list { display: flex; flex-direction: column; }
.list.card { padding: 4px 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 11px 16px; width: 100%; text-align: left; min-height: 64px; position: relative; -webkit-tap-highlight-color: transparent; }
.item + .item::before { content: ''; position: absolute; top: 0; left: 70px; right: 16px; border-top: 1px solid var(--line); }
.item:hover { background: #FCFBF9; }
.item:active { background: var(--bg); }
.item-main { flex: 1; min-width: 0; }
.item-title { font-weight: 620; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { color: var(--brand-ink); font-size: 12.5px; display: flex; gap: 4px; align-items: center; margin-top: 2px; }
.item-end { flex: none; display: flex; align-items: center; gap: 6px; }
.count { font-size: 13px; color: var(--muted); font-weight: 550; }
.menu .item { min-height: 54px; font-weight: 600; }
.menu .item svg { color: var(--brand-ink); }
.timebox { flex: none; width: 54px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.timebox b { font-size: 14px; } .timebox small { font-size: 11px; }
.timebox.done { background: var(--green-soft); color: var(--green); }
.timebox.follow { background: var(--blue-soft); color: var(--blue); }

/* arama ve filtre */
.searchbar { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); color: var(--muted); }
.searchbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(238, 135, 0, .14); }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); min-width: 0; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin: -4px -16px 0; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { flex: none; }
.results { display: flex; flex-direction: column; gap: 8px; }

/* bug\0000FCn */
.hello h1 { font-size: 28px; }
.event-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-radius: 20px; background: linear-gradient(135deg, #1A1918 0%, #2E2A26 100%); color: #fff; text-align: left; width: 100%; box-shadow: 0 10px 30px rgba(26, 25, 24, .18); }
.event-hero h2 { margin: 6px 0 4px; font-size: 21px; }
.event-hero p { color: rgba(255, 255, 255, .72); font-size: 14px; }
.event-hero .eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.event-hero.ghost { background: var(--card); color: var(--ink); border: 1.5px dashed var(--line2); box-shadow: none; }
.event-hero.ghost p { color: var(--muted); }
.hero-num { text-align: center; flex: none; }
.hero-num b { display: block; font-size: 38px; line-height: 1; font-weight: 800; color: var(--brand); }
.hero-num span { font-size: 12px; color: rgba(255, 255, 255, .7); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; min-height: 92px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 620; text-align: center; color: var(--ink2); }
.quick-btn svg { color: var(--brand-ink); }
.quick-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-btn.primary svg { color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; }
.stat b { font-size: 24px; font-weight: 780; line-height: 1.15; }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 550; }
.cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); } .quick-btn { min-height: 84px; font-size: 12px; } }
.brandfoot { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 12px; padding: 12px 0; opacity: .85; }

/* profil */
.profile { display: flex; align-items: flex-start; gap: 16px; padding: 18px; }
.profile-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profile-main h1 { font-size: 24px; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--brand-ink); box-shadow: var(--shadow); }
.act:active { background: var(--brand-soft); }
.act.off { color: #BDB7B0; box-shadow: none; }
.pipeline { display: flex; gap: 6px; padding: 0 16px 12px; overflow-x: auto; scrollbar-width: none; }
.step { flex: 1 0 auto; height: 38px; padding: 0 12px; border-radius: 10px; background: #F3F0EC; font-size: 13px; font-weight: 600; color: var(--muted); }
.step.past { background: var(--brand-soft); color: var(--brand-ink); }
.step.on { background: var(--brand); color: #fff; }
.step.on.kazanildi { background: var(--green); } .step.on.kaybedildi { background: var(--red); }
.switch { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 550; cursor: pointer; }
.switch > input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 999px; background: #DDD7D0; position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch > input[type=checkbox]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch > input[type=checkbox]:checked { background: var(--brand); }
.switch > input[type=checkbox]:checked::after { transform: translateX(18px); }
.switch input[type=date] { height: 36px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 8px; background: var(--card); }
.switch.follow { padding: 0 16px 16px; }
.switch > input[type=checkbox]:not(:checked) ~ input[type=date], .switch > input[type=checkbox]:not(:checked) ~ .gap-s { display: none; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; padding: 0 16px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv a { color: var(--brand-ink); font-weight: 550; }
.kv.pad { padding: 0 16px 16px; }
.cardimgs { display: flex; gap: 10px; padding: 0 16px 16px; flex-wrap: wrap; }
.cardimgs img { width: 160px; max-width: 46%; border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 1.7; object-fit: cover; }
.scan-side .cardimgs { padding: 0; }
.scan-side .cardimgs img { width: 100%; max-width: 100%; aspect-ratio: auto; max-height: 260px; object-fit: contain; background: #fff; }
.addnote { display: flex; gap: 8px; padding: 0 16px 12px; }
.addnote select { width: 110px; flex: none; }
.addnote input, .addnote select { height: 40px; border: 1px solid var(--line2); border-radius: 10px; padding: 0 10px; background: var(--card); min-width: 0; }
.addnote input { flex: 1; }
.timeline { list-style: none; margin: 0; padding: 4px 16px 16px 30px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 22px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 4px 0 12px 10px; }
.timeline li::before { content: ''; position: absolute; left: -14px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); border: 2px solid var(--card); }
.timeline li.first::before { background: var(--line2); }
.timeline .tl-type { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand-ink); }
.timeline p { white-space: pre-wrap; }
.timeline small { color: var(--muted); font-size: 12px; }

/* etkinlik kartlar\000131 */
.grid-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.evcard { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.evcard h3 { font-size: 17px; }
.evcard.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238, 135, 0, .15); }
.evcard .row span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.day { display: flex; flex-direction: column; gap: 8px; }
.day-h { font-size: 14px; color: var(--ink2); display: flex; gap: 8px; align-items: baseline; padding: 0 4px; }
.day-h.today { color: var(--brand-ink); }
.day-h small { color: var(--muted); font-weight: 500; }

/* formlar */
.form { display: flex; flex-direction: column; gap: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 .span2 { grid-column: 1 / -1; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; position: relative; }
.field > span { font-size: 12.5px; font-weight: 620; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; background: var(--card); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s, background .3s; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(238, 135, 0, .14); }
.field.check input, .field.check textarea { background: var(--yellow-soft); border-color: #EBCB6B; }
.field.check > span::after { content: ' \0000B7 kontrol edin'; color: var(--yellow); font-weight: 600; }
.field.miss > span::after { content: ' \0000B7 okunamad\000131'; color: var(--muted); font-weight: 500; }
.field.flash input, .field.flash textarea { background: var(--green-soft); border-color: var(--green); }

/* alt sayfa */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; background: rgba(26, 25, 24, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .2s; }
.sheet-wrap.open { background: rgba(26, 25, 24, .42); }
.sheet { width: 100%; max-height: 92vh; overflow: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + var(--safe-b)); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1); overscroll-behavior: contain; }
.sheet::before { content: ''; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 0 auto 8px; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 6px 0 14px; position: sticky; top: -8px; background: var(--card); z-index: 2; }
.sheet-foot { display: flex; gap: 10px; align-items: center; padding-top: 6px; }
.sheet-foot.sticky { position: sticky; bottom: 0; background: var(--card); padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.sheet .lead { margin-bottom: 18px; }
@media (min-width: 900px) {
  .sheet-wrap { align-items: center; }
  .sheet { max-width: 480px; border-radius: 20px; padding: 18px 22px 22px; transform: translateY(16px) scale(.98); opacity: 0; transition: transform .2s, opacity .2s; }
  .sheet.wide { max-width: 720px; }
  .sheet::before { display: none; }
  .sheet-wrap.open .sheet { opacity: 1; }
}
@media (max-width: 899px) { .sheet-foot { flex-wrap: wrap; } .sheet-foot .grow { flex-basis: 100%; height: 0; } .sheet-foot .btn:not(.ghost) { flex: 1; } }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #F1EEEA; overflow-x: auto; margin-bottom: 14px; }
.seg button { flex: 1 0 auto; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* bildirim */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 18px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 550; font-size: 14.5px; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0, 0, 0, .2); transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok::before { content: '\002713  '; color: #7FD8A6; font-weight: 800; }
.toast.error { background: var(--red); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--blue-soft); color: #14407A; }
.banner.warn { background: var(--brand-soft); color: #6B3A00; }
.banner > div { display: flex; flex-direction: column; gap: 10px; }

/* tarama */
.evpick { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 13.5px; max-width: 100%; }
.evpick select { border: 0; background: transparent; font-weight: 600; color: inherit; max-width: 230px; outline: none; padding-right: 4px; }
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } .shot[data-slot=back]:not(.has) { min-height: 0; } .shot[data-slot=back]:not(.has) .shot-empty { padding: 14px; flex-direction: row; } }
.shot { position: relative; display: flex; flex-direction: column; border-radius: 20px; border: 2px dashed var(--line2); background: var(--card); overflow: hidden; min-height: 210px; }
.shot.has { border-style: solid; border-color: var(--brand); }
.shot img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; flex: 1; background: #222; }
.shot-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); padding: 22px; }
.shot-empty b { color: var(--ink); font-size: 16px; }
.shot-empty svg { color: var(--brand); }
.shot-btns { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.shot-btns .btn { flex: 1; }
.shot .over { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .92); }
.progress { display: flex; flex-direction: column; gap: 8px; }
.progress .bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--brand), #FFB547); border-radius: 99px; transition: width .3s; }
.tips { padding: 16px; }
.tips h3 { display: flex; gap: 6px; align-items: center; color: var(--brand-ink); }
.tips ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.tips a { color: var(--brand-ink); font-weight: 600; }
.scan-layout { display: grid; gap: 16px; }
@media (min-width: 900px) { .scan-layout { grid-template-columns: 340px 1fr; align-items: start; } .scan-side { position: sticky; top: 20px; } }
.scan-side { display: flex; flex-direction: column; gap: 12px; }
.chip.line { height: auto; min-height: 32px; padding: 5px 12px; font-size: 13.5px; font-weight: 500; border-radius: 10px; text-align: left; overflow-wrap: anywhere; }
.chip.line.used { background: #F6F4F1; color: var(--muted); border-color: var(--line); }
.chip.line.weak { border-style: dashed; }
.chip.line.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.assign { display: flex; flex-direction: column; gap: 8px; background: var(--brand-soft); margin: 0 12px 12px; padding: 12px; border-radius: 12px; }
.assign .chip { background: #fff; }
.quicktags { display: flex; flex-direction: column; gap: 8px; }
.qrbox { position: relative; border-radius: 22px; overflow: hidden; background: #111; aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; max-width: 520px; margin: 0 auto; }
.qrbox video { width: 100%; height: 100%; object-fit: cover; }
.qrframe { position: absolute; inset: 18% 14%; border-radius: 24px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .38); border: 3px solid var(--brand); }
.qrmsg { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-weight: 600; padding: 0 16px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* y\0000F6netim */
.diff { margin: 0; padding-left: 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.diff .old { color: var(--red); text-decoration: line-through; }
.diff .new { color: var(--green); font-weight: 600; }

/* giri\00015F */
body.authmode #app { display: block; }
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 18px; background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), transparent 70%), var(--bg); }
.authcard { width: 100%; max-width: 400px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.authcard h1 { font-size: 24px; }
.authlogo { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.authlogo img { border-radius: 16px; }
.authlogo b { display: block; font-size: 24px; line-height: 1.05; }
.authlogo span { color: var(--muted); font-size: 13px; }

/* a\0000E7\000131l\000131\00015F */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.boot img { border-radius: 18px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .sidebar, .tabbar, .topbar, .actions, .addnote { display: none !important; } }

details.ocrlines > summary { cursor: pointer; list-style: none; }
details.ocrlines > summary::-webkit-details-marker { display: none; }
details.ocrlines:not([open]) > summary { padding-bottom: 14px; }
details.ocrlines > summary::after { content: '\0025BE'; color: var(--muted); margin-left: auto; padding-left: 8px; }
details.ocrlines[open] > summary::after { content: '\0025B4'; }
@media (max-width: 899px) {
  .scan-side .cardimgs img { max-height: 150px; }
  .sheet-foot.sticky { bottom: calc(var(--tab-h) + var(--safe-b)); margin: 4px -16px -16px; padding: 12px 16px; border-radius: 0 0 var(--r) var(--r); }
  .sheet .sheet-foot.sticky { bottom: 0; }
  .sheet-foot.sticky { flex-wrap: nowrap; gap: 8px; }
  .sheet-foot.sticky .grow { display: none; }
  .sheet-foot.sticky .btn.ghost { flex: none; padding: 0 10px; }
}
