/* Kasa: pirinç ve çelik. Gece (varsayılan) ve gündüz temaları. */
:root {
  --bg: #121722;
  --glow: rgba(212, 164, 76, .10);
  --s1: #1a2130;
  --s2: #222a3a;
  --s3: #2b3447;
  --line: #2c3548;
  --text: #e8ecf3;
  --muted: #8a94a8;
  --brass: #d4a44c;
  --brass-hi: #e8bf6a;
  --brass-lo: #b8862e;
  --brass-ink: #221905;
  --brass-text: #e0b25a;
  --red: #f06a62;
  --green: #4cc38a;
  --warn-bg: rgba(212, 164, 76, .12); --warn-text: #ecc77c;
  --note: #c9d0dc;
  --toast-bg: #e8ecf3; --toast-text: #121722;
  --av-l1: 52%; --av-l2: 38%;
  --ch-bg: 55% / .16; --ch-fg: 72%; --ch-dot: 62%;
  --backdrop: rgba(5, 8, 14, .6);
  --lift: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px -18px rgba(0,0,0,.7);
  --key: #1d2433;
  --r-lg: 24px;
  --r-md: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --kb: 0px;
  --ease: cubic-bezier(.2, .9, .25, 1);
  color-scheme: dark;
}
:root[data-theme=light] {
  --bg: #eef1f5;
  --glow: rgba(193, 139, 44, .10);
  --s1: #ffffff;
  --s2: #f3f5f8;
  --s3: #e6eaf0;
  --line: #e1e5ec;
  --text: #172033;
  --muted: #667085;
  --brass: #c99632;
  --brass-hi: #e0b55a;
  --brass-lo: #b07d22;
  --brass-ink: #241a05;
  --brass-text: #9a6a12;
  --red: #d23f37;
  --green: #1f9d63;
  --warn-bg: #fbf1dc; --warn-text: #7a5300;
  --note: #3b4354;
  --toast-bg: #172033; --toast-text: #fff;
  --av-l1: 60%; --av-l2: 45%;
  --ch-bg: 60% / .14; --ch-fg: 34%; --ch-dot: 50%;
  --backdrop: rgba(23, 32, 51, .32);
  --lift: 0 1px 2px rgba(23,32,51,.05), 0 14px 30px -20px rgba(23,32,51,.25);
  --key: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100dvh;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.mono { font-family: ui-monospace, "SF Mono", "Roboto Mono", Menlo, monospace; letter-spacing: .01em; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }
.center { text-align: center; }
.err { color: var(--red); font-size: 14px; }
.err:empty { display: none; }

/* ikonlar */
.ic { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic svg .f { fill: currentColor; stroke: none; }

/* düğmeler */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 0 20px;
  border-radius: 16px; border: 0; font-weight: 650; font-size: 16px;
  transition: transform .12s var(--ease), opacity .15s, background-color .15s;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .45; }
.btn.primary {
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo));
  color: var(--brass-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 20px -10px var(--brass);
}
.btn.ghost { background: var(--s2); color: var(--text); }
.btn.danger, .danger strong, .pillbtn.danger { color: var(--red); }
.btn.danger-fill { background: var(--red); color: #fff; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
  transition: background-color .15s, color .15s, transform .12s var(--ease);
}
.icon-btn:active { background: var(--s3); color: var(--text); transform: scale(.92); }
.icon-btn.quick { color: var(--brass-text); }
.textbtn { border: 0; background: none; color: var(--brass-text); font-weight: 600; padding: 8px 4px; font-size: 15px; }
.pillbtn { border: 0; background: var(--s3); color: var(--text); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; }
.pillbtn:active { transform: scale(.96); }
.chip { border: 1.5px dashed var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips:not(:has(.chip:not([hidden]))) { display: none; }

/* form alanları */
.stack { display: flex; flex-direction: column; gap: 14px; }
.fl { display: flex; flex-direction: column; gap: 7px; }
.fl > span { font-size: 13px; color: var(--muted); font-weight: 600; padding-left: 2px; }
input[type=text], input[type=password], input[type=search], textarea, select {
  width: 100%; min-height: 50px; padding: 13px 16px;
  background: var(--s2); border: 1.5px solid transparent; border-radius: 14px; outline: none;
  transition: border-color .15s, background-color .15s;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: var(--brass); background: var(--s1); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.input-row { display: flex; align-items: center; gap: 2px; }
.input-row input { flex: 1; }
form.busy { opacity: .7; pointer-events: none; }

/* ---------------- kasa kadranı */
.dial { position: relative; width: 132px; height: 132px; margin: 0 auto; color: var(--brass); }
.dial svg { width: 100%; height: 100%; overflow: visible; }
.dial-rim { fill: var(--s1); stroke: var(--line); stroke-width: 1; }
.dial-ring { transform-box: view-box; transform-origin: 50% 50%; transform: rotate(var(--turn, 0deg)); transition: transform .45s cubic-bezier(.25, 1.5, .5, 1); }
.dial-ring line { stroke: var(--muted); stroke-width: .7; opacity: .55; }
.dial-ring line.major { stroke: var(--text); stroke-width: 1.2; opacity: .8; }
.dial-mark { fill: var(--brass); }
.dial-hub { fill: var(--s2); stroke: var(--line); stroke-width: 1; }
.dial-lock { position: absolute; inset: 0; display: grid; place-items: center; }
.dial-lock svg { width: 34px; height: 34px; fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- şifre tuş takımı */
.gate { background: radial-gradient(90% 50% at 50% 18%, var(--glow), transparent 70%); min-height: 100dvh; display: grid; place-items: center; padding: calc(28px + var(--safe-t)) 24px calc(28px + var(--safe-b) + var(--kb)); }
.gate-box { width: 100%; max-width: 360px; }
.pinpad { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pinpad .dial { margin-bottom: 22px; }
.pin-title { font-size: 23px; font-weight: 750; letter-spacing: -.02em; }
.pin-msg { color: var(--muted); font-size: 14.5px; margin-top: 6px; min-height: 22px; max-width: 300px; line-height: 1.45; }
.pin-msg.err { color: var(--red); }
.dots { display: flex; gap: 16px; margin: 22px 0 26px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--muted); opacity: .6; transition: transform .18s var(--ease), background-color .15s, border-color .15s, opacity .15s; }
.dots i.on { background: var(--brass); border-color: var(--brass); opacity: 1; transform: scale(1.15); }
.working .dots i.on { animation: pulse .7s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
.keys { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 26px; justify-content: center; }
.key {
  width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: var(--key); color: var(--text);
  font-size: 29px; font-weight: 500; font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
  box-shadow: var(--lift);
  transition: transform .1s var(--ease), background-color .12s;
}
.key:active { transform: scale(.9); background: var(--s3); }
.key.soft { background: transparent; box-shadow: none; color: var(--muted); }
.key.soft .ic { width: 28px; height: 28px; }
.key.soft:active { color: var(--text); }
.gate-note { color: var(--muted); font-size: 13px; margin-top: 26px; max-width: 280px; line-height: 1.5; }
.pinpad .textbtn { margin-top: 16px; }
.shake { animation: shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes shake { 15%, 85% { transform: translateX(-3px); } 30%, 70% { transform: translateX(6px); } 45%, 55% { transform: translateX(-8px); } }
.legacy { text-align: center; }
.legacy .fl { text-align: left; }

/* ---------------- ana ekran */
#v-main { max-width: 640px; margin: 0 auto; padding: calc(14px + var(--safe-t)) 16px calc(40px + var(--safe-b) + var(--kb)); }
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 8px 2px 16px; }
.top h1 { font-size: 34px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.top-title p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.tools { display: flex; background: var(--s1); border-radius: 999px; padding: 3px; box-shadow: var(--lift); }
.tools .icon-btn { width: 40px; height: 40px; }
.search { position: sticky; top: 0; z-index: 2; padding: 4px 0 12px; background: var(--bg); display: flex; gap: 10px; align-items: center; }
.search input { flex: 1; }
#add-btn {
  width: 50px; height: 50px; flex: none; border: 0; border-radius: 16px;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass-lo)); color: var(--brass-ink);
  display: grid; place-items: center;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 18px -10px var(--brass);
  transition: transform .12s var(--ease);
}
#add-btn .ic svg { stroke-width: 2.3; }
#add-btn:active { transform: scale(.92); }
.search input {
  border-radius: 16px; background: var(--s1); padding-left: 46px; box-shadow: var(--lift);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a94a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center; background-size: 19px;
}
.search input::-webkit-search-cancel-button { filter: grayscale(1); }

.cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 14px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap;
  border: 0; background: var(--s1); color: var(--text); box-shadow: var(--lift);
  border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600;
  transition: background-color .15s, color .15s, transform .12s var(--ease);
}
.fchip:active { transform: scale(.95); }
.fchip small { color: var(--muted); font-size: 12px; font-weight: 600; }
.fchip.on { background: hsl(var(--ch, 40) var(--ch-bg)); color: hsl(var(--ch, 40) 65% var(--ch-fg)); box-shadow: inset 0 0 0 1.5px hsl(var(--ch, 40) 60% var(--ch-dot) / .45); }
.fchip.on small { color: inherit; opacity: .75; }
.fchip:not([style]).on { background: var(--text); color: var(--bg); box-shadow: none; }
.fchip.sm { padding: 5px 11px; font-size: 13px; box-shadow: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--ch) 70% var(--ch-dot)); flex: none; }

.banner { display: flex; gap: 10px; align-items: center; background: var(--warn-bg); color: var(--warn-text); border-radius: var(--r-md); padding: 10px 10px 10px 14px; font-size: 14px; margin-bottom: 14px; }
.banner span:not(.ic) { flex: 1; }
.banner .ic { width: 20px; height: 20px; }
.banner .textbtn { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* liste: tek grup, satırlar */
#list { list-style: none; margin: 0; padding: 4px 0; background: var(--s1); border-radius: var(--r-lg); box-shadow: var(--lift); overflow: hidden; }
.row { position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: var(--divider, 72px); right: 16px; height: 1px; background: var(--line); }
.row.open + .row::before, .row.open::before { left: 16px; }
.row-head { display: flex; align-items: center; padding-right: 6px; }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 11px 6px 11px 16px; background: none; border: 0; text-align: left; border-radius: 18px; }
.row-main:active { background: var(--s2); }
.avatar {
  position: relative; width: 42px; height: 42px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-weight: 750; font-size: 17px; color: #fff;
  background: linear-gradient(150deg, hsl(var(--h) 58% var(--av-l1)), hsl(calc(var(--h) + 28) 62% var(--av-l2)));
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}
.avatar-dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: hsl(var(--ch) 70% var(--ch-dot)); border: 2.5px solid var(--s1); }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-text strong { font-weight: 650; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: hsl(var(--ch) 60% var(--ch-fg)); margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cat-mini .dot { width: 6px; height: 6px; }
.chev { display: block; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .25s var(--ease), margin .25s var(--ease); }
.row.open .row-head .chev { transform: rotate(-135deg); margin-top: 4px; }
.chev.r { transform: rotate(-45deg); margin: 0 6px 0 0; }

/* kart boyu */
.dens-kisa { --divider: 62px; }
.dens-kisa .row-main { padding-top: 7px; padding-bottom: 7px; gap: 12px; }
.dens-kisa .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
.dens-kisa .avatar-dot { width: 11px; height: 11px; border-width: 2px; }
.dens-kisa .row-sub, .dens-kisa .cat-mini { display: none; }
.dens-orta .cat-mini { display: none; }
.dens-buyuk { --divider: 80px; }
.dens-buyuk .row-main { padding-top: 14px; padding-bottom: 14px; }
.dens-buyuk .avatar { width: 50px; height: 50px; border-radius: 16px; font-size: 20px; }
.dens-buyuk .avatar-dot { display: none; }

.row-body { padding: 2px 16px 16px; display: flex; flex-direction: column; gap: 8px; animation: open .28s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.field { display: flex; align-items: center; gap: 2px; background: var(--s2); border-radius: 14px; padding: 8px 6px 8px 14px; }
.field-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.field-text small { font-size: 12px; color: var(--muted); font-weight: 600; }
.field-text span { word-break: break-all; font-size: 15.5px; }
.field-text .masked { letter-spacing: .12em; user-select: none; color: var(--muted); }
.note { background: var(--s2); border-radius: 14px; padding: 11px 14px; font-size: 14px; white-space: pre-wrap; color: var(--note); }
.row-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.row-buttons { display: flex; gap: 8px; }

.emptystate { text-align: center; padding: 36px 20px 20px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.emptystate .dial { width: 104px; height: 104px; margin-bottom: 10px; }
.emptystate h2 { font-size: 21px; font-weight: 750; }
.emptystate .muted { max-width: 300px; }
.empty-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 10px; }

/* ---------------- alt sayfa */
#sheet { position: fixed; top: 0; left: 0; right: 0; bottom: var(--kb); z-index: 10; background: var(--backdrop); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s; }
#sheet.in { opacity: 1; }
.sheet-panel {
  width: 100%; max-width: 640px; max-height: calc(100% - 24px - var(--safe-t)); overflow: auto; overscroll-behavior: contain;
  background: var(--s1); border-radius: 28px 28px 0 0;
  padding: 0 20px calc(24px + var(--safe-b));
  transform: translateY(40px); transition: transform .32s var(--ease);
  box-shadow: 0 -10px 40px -20px rgba(0,0,0,.5);
}
#sheet.in .sheet-panel { transform: none; }
.grabber { width: 38px; height: 5px; border-radius: 3px; background: var(--s3); margin: 10px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--s1); padding: 10px 0 14px; z-index: 1; }
.sheet-head h2 { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.sheet-head .icon-btn { background: var(--s2); width: 36px; height: 36px; }
.sheet-head .icon-btn .ic { width: 18px; height: 18px; }
.pin-sheet .sheet-head h2 { visibility: hidden; }
.pin-sheet .pinpad { padding: 0 0 8px; }
.pin-sheet .key { background: var(--s2); box-shadow: none; }
.pin-sheet .key.soft { background: transparent; }

/* yazarken: alt sayfa tam ekran olur, altına kaydırma payı eklenir */
html.typing #sheet { align-items: stretch; }
html.typing .sheet-panel { max-height: none; height: calc(100% - 8px - var(--safe-t)); margin-top: calc(8px + var(--safe-t)); padding-bottom: 75vh; }
html.typing .gate { place-items: start center; padding-top: calc(48px + var(--safe-t)); padding-bottom: 75vh; }

/* ---------------- önizleme */
.preview { display: flex; flex-direction: column; gap: 10px; }
.prow { background: var(--s2); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; transition: opacity .15s; }
.prow.off { opacity: .45; }
.prow-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.prow-top code { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.prow-grid input { min-height: 42px; padding: 9px 11px; font-size: 14px; background: var(--s1); border-radius: 11px; }
.prow-grid .full { grid-column: 1 / -1; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--s3); color: var(--muted); white-space: nowrap; }
.tag.warn { background: var(--warn-bg); color: var(--warn-text); }
.check input { width: 22px; height: 22px; accent-color: var(--brass); margin: 0; display: block; }
.cat-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cat-pick .fchip { padding: 6px 12px; font-size: 13px; background: var(--s2); box-shadow: none; }

/* ---------------- ayarlar */
.settings { display: flex; flex-direction: column; gap: 22px; }
.sgroup h3 { font-size: 14px; font-weight: 650; color: var(--muted); margin: 0 0 8px 6px; }
.sgroup-box { background: var(--s2); border-radius: 20px; overflow: hidden; }
.srow, .sblock { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; width: 100%; border: 0; background: none; text-align: left; position: relative; }
.sblock { flex-direction: column; align-items: stretch; gap: 10px; }
.sgroup-box > * + *::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.srow.link:active { background: var(--s3); }
.srow-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.srow strong, .sblock > strong { font-weight: 600; }
.srow small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.srow select { width: auto; min-height: 40px; padding: 8px 12px; background: var(--s1); }
.about { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.5; padding: 0 6px; }
.about .ic { width: 18px; height: 18px; color: var(--green); }

.seg { display: flex; background: var(--s3); border-radius: 13px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background-color .15s, color .15s; }
.seg button.on { background: var(--s1); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--s3); border-radius: 99px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.25); transition: transform .22s var(--ease); }
.switch input:checked + span { background: var(--brass); }
.switch input:checked + span::after { transform: translateX(20px); }

.option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border: 0; border-radius: 18px; background: var(--s2); text-align: left; }
.option:active { background: var(--s3); }
.option-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--warn-bg); color: var(--brass-text); flex: none; }
.option strong { font-weight: 650; }
.option small { color: var(--muted); font-size: 13px; }

.catrow { display: flex; align-items: center; gap: 10px; flex: 1; }
.catrow small { color: var(--muted); font-size: 13px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--s1); background: hsl(var(--ch) 70% var(--ch-dot)); box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }

/* ---------------- bildirim */
#toast {
  position: fixed; left: 50%; bottom: calc(32px + var(--safe-b)); z-index: 20;
  transform: translate(-50%, 16px) scale(.96); opacity: 0; pointer-events: none;
  background: var(--toast-bg); color: var(--toast-text); padding: 11px 20px; border-radius: 99px; font-size: 14.5px; font-weight: 600;
  transition: opacity .2s, transform .25s var(--ease); white-space: nowrap;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
}
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 360px) {
  .keys { grid-template-columns: repeat(3, 68px); gap: 12px 20px; }
  .key { width: 68px; height: 68px; font-size: 26px; }
}
