/* Zikirmatik */
:root {
  --bg: #f3f1ec; --bg-2: #e9e6de; --card: #ffffff; --text: #1b1c1f; --muted: #6d6a63;
  --line: rgba(20, 20, 20, .09); --chip: #efece5; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --accent: #17885a; --accent-ink: #fff; --danger: #c8412f;
  --radius: 18px; --ease: cubic-bezier(.2,.8,.2,1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --arabic: "Amiri", "Scheherazade New", "Noto Naskh Arabic", "Geeza Pro", "Traditional Arabic", serif;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  /* cihaz (varsayilan: siyah) */
  --dev-hi: #45484f; --dev-1: #26282d; --dev-2: #0c0d10; --dev-edge: rgba(255,255,255,.10);
  --dev-ink: rgba(255,255,255,.55); --btn-hi: #5a5e66; --btn-1: #2c2f35; --btn-2: #121317;
  --ring: #3ddc97; --ring-track: rgba(255,255,255,.08);
  --lcd-1: #bfcaa7; --lcd-2: #a7b38e; --seg: #1b2416; --seg-ghost: rgba(27,36,22,.075); --lcd-glow: none;
}
html[data-theme="dark"] {
  --bg: #0f1013; --bg-2: #16171b; --card: #1a1b20; --text: #ecebe6; --muted: #9a978f;
  --line: rgba(255,255,255,.08); --chip: #24262c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  --accent: #3ddc97; --accent-ink: #062014;
}
html[data-device="lacivert"] { --dev-hi:#3f5288; --dev-1:#22325e; --dev-2:#0b1430; --btn-hi:#56689c; --btn-1:#28396a; --btn-2:#101a3a; --ring:#7cc0ff; }
html[data-device="bordo"]    { --dev-hi:#8c3446; --dev-1:#5f1d2b; --dev-2:#260910; --btn-hi:#9c4758; --btn-1:#66222f; --btn-2:#2c0c13; --ring:#ffbf75; }
html[data-device="zumrut"]   { --dev-hi:#2f7a63; --dev-1:#1b5141; --dev-2:#082219; --btn-hi:#3f8a72; --btn-1:#1f5a48; --btn-2:#0a2a20; --ring:#f2d675; }
html[data-device="sedef"]    { --dev-hi:#ffffff; --dev-1:#ece7dc; --dev-2:#c9c1b1; --dev-edge: rgba(255,255,255,.7); --dev-ink: rgba(60,50,35,.55);
  --btn-hi:#ffffff; --btn-1:#e6e0d3; --btn-2:#b9b09e; --ring:#b98336; --ring-track: rgba(60,50,35,.12); }
html[data-lcd="isikli"] { --lcd-1:#0d2a1f; --lcd-2:#071a13; --seg:#6dffb6; --seg-ghost: rgba(109,255,182,.07); --lcd-glow: drop-shadow(0 0 4px rgba(109,255,182,.55)); }
html[data-lcd="isikli"][data-device="lacivert"] { --lcd-1:#0c1d36; --lcd-2:#060f20; --seg:#8fd0ff; --seg-ghost: rgba(143,208,255,.08); --lcd-glow: drop-shadow(0 0 4px rgba(143,208,255,.55)); }
html[data-lcd="isikli"][data-device="bordo"] { --lcd-1:#2a1408; --lcd-2:#170a03; --seg:#ffc27a; --seg-ghost: rgba(255,194,122,.08); --lcd-glow: drop-shadow(0 0 4px rgba(255,194,122,.55)); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
body { touch-action: manipulation; -webkit-text-size-adjust: 100%; overscroll-behavior: none; transition: background .3s var(--ease), color .3s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.noselect, .screen-main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- genel ekran ---------- */
#app { min-height: 100%; }
.screen { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 8px) 16px calc(var(--safe-b) + 16px); max-width: 720px; margin: 0 auto; animation: fadeUp .28s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.topbar { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.topbar h1 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: -.01em; flex: 1; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; transition: background .15s, transform .12s var(--ease); }
.icon-btn:hover { background: var(--chip); }
.icon-btn:active { transform: scale(.92); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; transition: transform .12s var(--ease), box-shadow .2s; }
.pill:hover { box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 28px rgba(0,0,0,.10); }
.pill:active { transform: scale(.96); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 16px; font-weight: 650; font-size: 16px; transition: transform .12s var(--ease), filter .15s, background .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--chip); }
.btn-ghost:hover { filter: brightness(.97); }
.btn-block { width: 100%; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.section-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 4px 10px; }

/* ---------- ana ekran ---------- */
.screen-main { padding-bottom: 0; }
.main-head { display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.zk-title { flex: 1; min-width: 0; text-align: left; padding: 6px 8px; margin-left: -8px; border-radius: 14px; transition: background .15s; }
.zk-title:hover { background: var(--chip); }
.zk-title .name { display: flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 750; letter-spacing: -.01em; }
.zk-title .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zk-title .name svg { width: 18px; height: 18px; opacity: .55; }
.zk-meta { font-size: 13.5px; color: var(--muted); margin: -2px 0 0; display: flex; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.zk-meta b { color: var(--text); font-weight: 650; }
.pill-icon { width: 44px; padding: 0; justify-content: center; }
.head-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.arabic { font-family: var(--arabic); direction: rtl; font-size: 22px; line-height: 1.6; }
.main-text { text-align: center; min-height: 34px; margin: 2px 8px 0; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.main-text.latin { font-size: 15px; font-style: italic; line-height: 1.4; }

.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 6px 0 10px; min-height: 0; }
.under { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 44px; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--chip); font-size: 14px; font-weight: 600; color: var(--muted); transition: transform .12s var(--ease), opacity .2s, color .15s; }
.chip-btn:hover { color: var(--text); }
.chip-btn:active { transform: scale(.94); }
.chip-btn[disabled] { opacity: .4; pointer-events: none; }
.chip-btn svg { width: 18px; height: 18px; }
.today-chip { font-size: 13px; color: var(--muted); }
.today-chip b { color: var(--text); }

/* ---------- cihaz ---------- */
.device { --w: min(336px, 86vw, calc((100dvh - 320px) / 1.32)); width: var(--w); height: calc(var(--w) * 1.32); position: relative; flex: none;
  border-radius: 47% 47% 50% 50% / 37% 37% 63% 63%;
  background: radial-gradient(120% 80% at 30% 12%, var(--dev-hi) 0%, var(--dev-1) 38%, var(--dev-2) 100%);
  box-shadow: inset 0 2px 1px var(--dev-edge), inset 0 -10px 24px rgba(0,0,0,.35), 0 2px 3px rgba(0,0,0,.25), 0 24px 50px -10px rgba(0,0,0,.45), 0 10px 18px -8px rgba(0,0,0,.3);
  transition: background .4s var(--ease); }
.device::before { content: ""; position: absolute; inset: 3.2%; border-radius: inherit; border: 1px solid rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
html[data-device="sedef"] .device::before { border-color: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.lcd { position: absolute; left: 13%; right: 13%; top: 12%; height: 24%; border-radius: 12px 12px 10px 10px / 12px;
  background: linear-gradient(170deg, var(--lcd-1), var(--lcd-2));
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 2px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.12);
  display: flex; flex-direction: column; justify-content: center; padding: 4% 6%; overflow: hidden; transition: background .3s; }
.lcd::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%); pointer-events: none; }
.lcd-top { display: flex; justify-content: space-between; font: 700 calc(var(--w) * .036)/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--seg); letter-spacing: .08em; opacity: .85; filter: var(--lcd-glow); height: calc(var(--w) * .045); }
.lcd-top .off { opacity: .12; }
.digits { display: flex; justify-content: flex-end; gap: 3%; height: 66%; margin-top: 2%; filter: var(--lcd-glow); }
.digits svg { height: 100%; width: auto; overflow: visible; }
.digits .on { fill: var(--seg); }
.digits .ghost { fill: var(--seg-ghost); }
.lcd.flash { animation: lcdFlash .9s ease; }
@keyframes lcdFlash { 0%,100% { filter: none; } 20%,60% { filter: brightness(1.35) saturate(1.2); } 40%,80% { filter: brightness(.85); } }

.side-btn { position: absolute; top: 40%; width: 16%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; }
.side-btn.left { left: 8%; } .side-btn.right { right: 8%; }
.side-btn .knob { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(80% 80% at 35% 25%, var(--btn-hi), var(--btn-1) 55%, var(--btn-2));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.18), 0 2px 0 rgba(0,0,0,.45), 0 4px 8px rgba(0,0,0,.35);
  display: grid; place-items: center; color: var(--dev-ink); transition: transform .08s, box-shadow .08s; }
.side-btn .knob svg.i { width: 44%; height: 44%; }
.side-btn:active .knob, .side-btn.holding .knob { transform: translateY(2px); box-shadow: inset 0 1px 1px rgba(255,255,255,.1), 0 0 0 rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35); }
.side-btn .lbl { margin-top: 7px; font-size: calc(var(--w) * .033); font-weight: 750; letter-spacing: .12em; color: var(--dev-ink); white-space: nowrap; }
.hold-ring { position: absolute; inset: -14%; width: 128%; height: 128%; transform: rotate(-90deg); pointer-events: none; }
.hold-ring circle { fill: none; stroke-width: 3.2; }
.hold-ring .trk { stroke: transparent; }
.hold-ring .prg { stroke: #ff6b57; stroke-linecap: round; opacity: 0; transition: opacity .15s; }
.holding .hold-ring .prg { opacity: 1; }

.big-wrap { position: absolute; left: 50%; bottom: 9%; width: 53%; aspect-ratio: 1; transform: translateX(-50%); }
.big-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.big-ring circle { fill: none; stroke-width: 3.5; }
.big-ring .trk { stroke: var(--ring-track); }
.big-ring .prg { stroke: var(--ring); stroke-linecap: round; transition: stroke-dashoffset .18s var(--ease), stroke .3s; filter: drop-shadow(0 0 3px color-mix(in srgb, var(--ring) 60%, transparent)); }
.big-ring.complete .prg { animation: ringPulse .9s ease; }
@keyframes ringPulse { 50% { stroke-width: 6; } }
.big-btn { position: absolute; inset: 9%; border-radius: 50%; touch-action: none;
  background: radial-gradient(75% 75% at 35% 25%, var(--btn-hi), var(--btn-1) 55%, var(--btn-2));
  box-shadow: inset 0 2px 2px rgba(255,255,255,.16), inset 0 -6px 14px rgba(0,0,0,.35), 0 5px 0 rgba(0,0,0,.45), 0 10px 20px rgba(0,0,0,.4), 0 0 0 5px rgba(0,0,0,.22);
  transition: transform .07s ease-out, box-shadow .07s ease-out; }
.big-btn::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(60% 60% at 40% 30%, rgba(255,255,255,.10), rgba(255,255,255,0) 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.big-btn.pressed { transform: translateY(4px) scale(.985); box-shadow: inset 0 2px 2px rgba(255,255,255,.1), inset 0 -3px 10px rgba(0,0,0,.4), 0 1px 0 rgba(0,0,0,.45), 0 3px 8px rgba(0,0,0,.35), 0 0 0 5px rgba(0,0,0,.22); }
.big-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.brand { position: absolute; left: 0; right: 0; top: 38.2%; text-align: center; font-size: calc(var(--w) * .03); letter-spacing: .32em; font-weight: 700; color: var(--dev-ink); opacity: .55; pointer-events: none; }

.ripple { position: absolute; border-radius: 50%; pointer-events: none; border: 2px solid var(--ring); opacity: .55; animation: rip .5s ease-out forwards; }
@keyframes rip { from { transform: scale(.85); opacity: .55; } to { transform: scale(1.12); opacity: 0; } }

/* alt arac cubugu */
.dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 -8px; padding: 8px 8px calc(var(--safe-b) + 10px); }
.dock button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; padding: 6px 2px; border-radius: 16px; font-size: 12px; font-weight: 600; color: var(--muted); transition: background .15s, color .15s, transform .12s var(--ease); }
.dock button:hover { background: var(--chip); color: var(--text); }
.dock button:active { transform: scale(.93); }
.dock button.on { color: var(--accent); }
.dock button .off-mark { position: relative; }

/* tur banner */
.banner { position: fixed; left: 50%; top: calc(var(--safe-t) + 12px); transform: translate(-50%, -140%); z-index: 60; background: var(--accent); color: var(--accent-ink); padding: 12px 18px; border-radius: 16px; font-weight: 700; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center; transition: transform .45s var(--ease); max-width: calc(100vw - 32px); }
.banner.show { transform: translate(-50%, 0); }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: calc(var(--safe-b) + 96px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 80; background: #1f2024; color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 550; display: flex; gap: 14px; align-items: center; transition: opacity .2s, transform .25s var(--ease); box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 32px); }
html[data-theme="dark"] #toast { background: #eceae4; color: #16171a; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast button { color: #7ff0bb; font-weight: 750; min-height: 32px; padding: 0 4px; }
html[data-theme="dark"] #toast button { color: #0f7a4d; }

/* ---------- bottom sheet ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.38); z-index: 70; opacity: 0; transition: opacity .25s; }
.sheet-back.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: var(--card); border-radius: 24px 24px 0 0; padding: 10px 16px calc(var(--safe-b) + 18px); max-height: 82dvh; overflow: auto; transform: translateY(100%); transition: transform .32s var(--ease); max-width: 720px; margin: 0 auto; }
.sheet.show { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; background: var(--muted); opacity: .3; }
.sheet h3 { margin: 4px 4px 12px; font-size: 18px; }

/* ---------- liste ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.zrow { display: flex; align-items: center; gap: 12px; padding: 12px 10px 12px 14px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); transition: transform .15s var(--ease), box-shadow .2s; position: relative; }
.zrow.active { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.zrow .main { flex: 1; min-width: 0; text-align: left; display: flex; gap: 12px; align-items: center; min-height: 48px; }
.zrow .main:active { transform: scale(.98); }
.mini { width: 48px; height: 48px; flex: none; position: relative; display: grid; place-items: center; font-weight: 750; font-size: 12.5px; }
.mini svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mini circle { fill: none; stroke-width: 4; }
.mini .trk { stroke: var(--chip); } .mini .prg { stroke: var(--accent); stroke-linecap: round; }
.zrow .t { min-width: 0; }
.zrow .n { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.zrow .a { font-family: var(--arabic); direction: rtl; text-align: left; font-size: 17px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zrow .s { font-size: 13px; color: var(--muted); margin-top: 1px; }
.badge { font-size: 11px; font-weight: 750; padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); letter-spacing: .02em; flex: none; }
.row-actions { display: flex; gap: 2px; }
.hold-icon { position: relative; }
.hold-icon .hold-ring { inset: 0; width: 100%; height: 100%; }
.hold-icon.holding { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- form ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 650; color: var(--muted); margin: 0 4px 8px; }
.input { width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); outline: none; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea.input { resize: none; min-height: 90px; line-height: 1.5; }
textarea.input.ar { font-family: var(--arabic); font-size: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; background: var(--chip); font-weight: 650; font-size: 15px; transition: background .15s, color .15s, transform .12s var(--ease), box-shadow .15s; }
.chip:hover { filter: brightness(.97); }
.chip:active { transform: scale(.95); }
.chip.sel { background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.tpl { text-align: left; padding: 10px 12px; border-radius: 14px; background: var(--chip); min-height: 58px; transition: transform .12s var(--ease), box-shadow .15s; }
.tpl:active { transform: scale(.97); }
.tpl.sel { box-shadow: 0 0 0 2px var(--accent); }
.tpl b { display: block; font-size: 14px; } .tpl span { font-size: 12.5px; color: var(--muted); }
.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper button { width: 52px; min-height: 52px; border-radius: 14px; background: var(--chip); display: grid; place-items: center; font-size: 24px; font-weight: 600; transition: transform .1s; flex: none; }
.stepper button:active { transform: scale(.92); }
.stepper .input { text-align: center; font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 4px 0; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }
.form-actions .btn { flex: 1; }
.danger-hold { position: relative; overflow: hidden; width: 100%; margin-top: 26px; color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); }
.danger-hold .fill { position: absolute; inset: 0; background: color-mix(in srgb, var(--danger) 22%, transparent); transform-origin: left; transform: scaleX(0); }
.danger-hold span, .danger-hold svg { position: relative; }

/* ---------- ayarlar ---------- */
.group { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.srow { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; width: 100%; text-align: left; transition: background .15s; }
.srow + .srow { border-top: 1px solid var(--line); }
button.srow:hover { background: var(--chip); }
.srow .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--chip); flex: none; }
.srow .ic svg { width: 19px; height: 19px; }
.srow .tx { flex: 1; min-width: 0; }
.srow .tx b { display: block; font-weight: 650; font-size: 15.5px; }
.srow .tx small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.toggle { width: 52px; height: 32px; border-radius: 999px; background: var(--line); position: relative; flex: none; transition: background .2s; }
html[data-theme="light"] .toggle { background: #d9d5cc; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: transform .22s var(--ease); }
.toggle.on { background: var(--accent) !important; }
.toggle.on::after { transform: translateX(20px); }
.seg { display: flex; padding: 4px; background: var(--chip); border-radius: 14px; gap: 4px; }
.seg button { flex: 1; min-height: 42px; border-radius: 11px; font-weight: 650; font-size: 14.5px; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.seg button.sel { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); min-width: 52px; }
.sw i { width: 46px; height: 46px; border-radius: 50%; display: block; box-shadow: inset 0 2px 2px rgba(255,255,255,.2), 0 3px 8px rgba(0,0,0,.25); transition: transform .15s var(--ease), box-shadow .15s; }
.sw.sel i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); transform: scale(1.05); }
.sw.sel { color: var(--text); }
.pad { padding: 16px; }

/* ---------- istatistik ---------- */
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.metric { padding: 14px 16px; }
.metric small { color: var(--muted); font-size: 13px; font-weight: 600; }
.metric b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.metric span { font-size: 12.5px; color: var(--muted); }
.chart { padding: 16px 12px 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--accent); transition: opacity .15s; }
.chart .bar.zero { fill: var(--chip); }
.chart .bar.today { fill: color-mix(in srgb, var(--accent) 100%, #fff 0%); }
.chart text { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart .val { fill: var(--text); font-weight: 700; }
.chart-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 10px; gap: 10px; }
.chart-head b { font-size: 15px; }
.chart-head .seg { width: 150px; }
.chart-head .seg button { min-height: 34px; font-size: 13px; }
.brk { padding: 6px 16px; }
.brk .r { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.brk .r + .r { border-top: 1px solid var(--line); }
.brk .r .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.brk .r .bar2 { width: 30%; height: 8px; border-radius: 4px; background: var(--chip); overflow: hidden; }
.brk .r .bar2 i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.brk .r .v { font-variant-numeric: tabular-nums; font-weight: 750; min-width: 52px; text-align: right; }
.offline-note { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0; }

/* ---------- giris ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px calc(var(--safe-b) + 20px); gap: 8px; max-width: 400px; margin: 0 auto; }
.login .logo { width: 72px; height: 88px; border-radius: 47% 47% 50% 50% / 37% 37% 63% 63%; background: radial-gradient(120% 80% at 30% 12%, var(--dev-hi), var(--dev-1) 40%, var(--dev-2)); box-shadow: 0 12px 30px rgba(0,0,0,.3); position: relative; margin-bottom: 8px; }
.login .logo::before { content: ""; position: absolute; left: 18%; right: 18%; top: 14%; height: 22%; border-radius: 5px; background: var(--lcd-1); }
.login .logo::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: 12%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--btn-hi), var(--btn-2)); }
.login h1 { margin: 0; font-size: 26px; }
.login p { margin: 0 0 14px; color: var(--muted); }
/* ---------- yedekleme ---------- */
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.busy { opacity: .7; pointer-events: none; }
.btn.done { background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent); }
.btn svg.i { width: 20px; height: 20px; }
.bk { padding: 16px; }
.bk-head { display: flex; gap: 14px; align-items: flex-start; }
.bk-head .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.bk-head .ic svg { width: 19px; height: 19px; }
.bk-head .tx b { display: block; font-weight: 650; font-size: 15.5px; }
.bk-head .tx small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.bk-code { margin: 14px 0 12px; min-height: 62px; padding: 12px 10px; border-radius: 14px; background: var(--chip); border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px; font: 750 clamp(19px, 5.6vw, 25px)/1.2 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--text); -webkit-user-select: all; user-select: all; }
.bk-code .pfx { color: var(--muted); }
.bk-code i { font-style: normal; color: var(--muted); opacity: .6; }
.bk-code.empty-code { border-style: solid; border-color: var(--line); }
.bk-actions { display: flex; gap: 10px; }
.bk-actions .btn { flex: 1; min-height: 46px; }
.group .bk + .srow { border-top: 1px solid var(--line); }
.sheet-p { margin: 0 4px 16px; line-height: 1.5; font-size: 14.5px; }
.sheet-p b { color: var(--text); font-weight: 650; }
.code-field { position: relative; display: flex; align-items: center; }
.code-field .icon-btn { position: absolute; right: 6px; }
.code-input { min-height: 60px; text-align: center; font: 750 21px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; padding-right: 52px; padding-left: 52px; }
.code-input::placeholder { color: var(--muted); opacity: .45; letter-spacing: .1em; }
.code-field.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.err { color: var(--danger); min-height: 20px; font-size: 14px; font-weight: 600; text-align: center; }
.sheet .err { margin-top: 8px; }
.note-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, #e0a82e 14%, transparent); font-size: 13.5px; line-height: 1.45; margin-top: 4px; }
.note-card svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: #b7851b; }
html[data-theme="dark"] .note-card svg { color: #f0c463; }
.import-sum { display: grid; grid-template-columns: 1fr 1fr; padding: 14px; margin: 0 0 6px; box-shadow: none; background: var(--chip); }
.import-sum div { text-align: center; }
.import-sum b { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.import-sum small { color: var(--muted); font-size: 13px; }
.hint-card { position: fixed; z-index: 55; left: 50%; top: calc(var(--safe-t) + 66px); width: min(calc(100vw - 24px), 520px); transform: translate(-50%, -12px); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; border-radius: 18px; background: var(--card);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 14px 34px rgba(0,0,0,.18); transition: opacity .25s, transform .3s var(--ease); }
.hint-card.show { opacity: 1; transform: translate(-50%, 0); }
.hint-card .ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex: none; }
.hint-card .ic svg { width: 19px; height: 19px; }
.hint-card .tx { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.35; }
.hint-card .tx b { font-weight: 700; }
.hint-card .hc-go { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 12px; flex: none; }
.hint-card .hc-x { width: 40px; height: 40px; flex: none; color: var(--muted); }
.hint-card .hc-x svg { width: 18px; height: 18px; }

@media (min-width: 900px) {
  .screen { padding-left: 24px; padding-right: 24px; }
  .device { --w: min(330px, calc((100dvh - 330px) / 1.32)); }
}
@media (max-height: 640px) { .main-text { display: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
