/* Ekip — Çay Ocağı görsel sistemi
   Kabuk: demli çay (işletme paletine göre değişir) · altın yaldız çizgi · porselen zemin
   Tip: Bricolage Grotesque (başlık + rakam), sistem sans (gövde) */

@font-face { font-family: "Bricolage"; font-weight: 500; font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Bricolage"; font-weight: 500; font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Bricolage"; font-weight: 700; font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Bricolage"; font-weight: 700; font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Bricolage"; font-weight: 800; font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Bricolage"; font-weight: 800; font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

/* ---------- paletler (işletme başına) ---------- */
:root, [data-theme="cay"] {
  --shell: #4a1612; --shell-2: #5e1d17; --shell-ink: #fbeee6; --shell-muted: #d9b7a9;
  --accent: #b3361f; --accent-ink: #ffffff; --accent-soft: #f7e3dc; --accent-text: #8f2814;
  --tea: #a8341b; --tea-light: #d9824a; --tea-deep: #5e1a0c; --gold: #c9a24b;
}
[data-theme="lake"] { /* Uzak Doğu: lake kırmızısı + yeşim */
  --shell: #13261e; --shell-2: #1b3329; --shell-ink: #eef5ef; --shell-muted: #a9c4b5;
  --accent: #c41f2f; --accent-ink: #ffffff; --accent-soft: #f8e1e2; --accent-text: #a01825;
  --tea: #b0242c; --tea-light: #e0766b; --tea-deep: #5c1016; --gold: #c6a457;
}
[data-theme="kakao"] { /* Çikolatacı: kakao + gül */
  --shell: #2f1b15; --shell-2: #3e251c; --shell-ink: #f8ece6; --shell-muted: #ccb0a3;
  --accent: #b8456b; --accent-ink: #ffffff; --accent-soft: #f6e1e8; --accent-text: #973657;
  --tea: #6b3a26; --tea-light: #a8694a; --tea-deep: #34190f; --gold: #d2a777;
}
[data-theme="bogurtlen"] { /* Tatlıcı: böğürtlen + bal */
  --shell: #2c1034; --shell-2: #3b1745; --shell-ink: #f7ecf8; --shell-muted: #c9aed0;
  --accent: #c22e66; --accent-ink: #ffffff; --accent-soft: #f8e0ea; --accent-text: #9d2252;
  --tea: #8e2357; --tea-light: #d1688f; --tea-deep: #4a0f2c; --gold: #e0af4c;
}
[data-theme="espresso"] { /* Kahveci: espresso + karamel */
  --shell: #1d1a17; --shell-2: #2a2621; --shell-ink: #f4efe8; --shell-muted: #b9ae9f;
  --accent: #a35a17; --accent-ink: #ffffff; --accent-soft: #f4e6d6; --accent-text: #85480f;
  --tea: #6a3c18; --tea-light: #c08a52; --tea-deep: #2f1a09; --gold: #d6b06a;
}
[data-theme="kor"] { /* Et, döner: kömür + köz */
  --shell: #201d1c; --shell-2: #2d2927; --shell-ink: #f6f1ee; --shell-muted: #bcb2ad;
  --accent: #c7461a; --accent-ink: #ffffff; --accent-soft: #f8e4da; --accent-text: #a23812;
  --tea: #b8431b; --tea-light: #e38b4b; --tea-deep: #5a1e0a; --gold: #e0a33a;
}

/* ---------- zemin (gündüz / gece) ---------- */
:root {
  --ground: #f3f2ef; --surface: #ffffff; --surface-2: #f8f7f5;
  --ink: #1d1715; --ink-2: #5c5250; --ink-3: #847a77; --line: #e4e0dc; --line-strong: #cfc8c3;
  --ok: #1f7a46; --ok-soft: #e1f2e7; --warn: #a35b00; --warn-soft: #fbedd5; --bad: #b42318; --bad-soft: #fde4e1;
  --radius: 14px; --radius-sm: 10px; --nav-h: 66px;
  --shadow: 0 1px 2px rgba(29, 23, 21, .06), 0 6px 18px -8px rgba(29, 23, 21, .18);
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
[data-night="1"] {
  --ground: color-mix(in oklab, var(--shell) 30%, #0d0b0a); --surface: color-mix(in oklab, var(--shell) 22%, #171412);
  --surface-2: color-mix(in oklab, var(--shell) 26%, #1c1816);
  --ink: #f3ece8; --ink-2: #c9bdb8; --ink-3: #9d918c; --line: color-mix(in oklab, var(--shell) 30%, #2c2724); --line-strong: #4a423e;
  --accent-soft: color-mix(in oklab, var(--accent) 22%, #171412); --accent-text: color-mix(in oklab, var(--accent) 55%, #ffffff);
  --ok: #5fcf8e; --ok-soft: #173525; --warn: #f0b45a; --warn-soft: #3a2a10; --bad: #ff8a7a; --bad-soft: #3d1a16;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 22px -10px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--ground); color: var(--ink); }
body { min-height: 100dvh; font: 15px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
a { color: var(--accent-text); text-underline-offset: 3px; }
.num, table td, .t { font-variant-numeric: tabular-nums; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- kabuk ---------- */
.shell { max-width: 760px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 5; background: var(--shell); color: var(--shell-ink);
  padding: calc(env(safe-area-inset-top) + 14px) 16px 14px; display: flex; align-items: center; gap: 10px;
  border-bottom: 2px solid var(--gold); }
.top .titles { flex: 1; min-width: 0; }
.top .biz { font: 600 12px/1.2 var(--body); color: var(--shell-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1 { font: 800 21px/1.15 var(--display); letter-spacing: -.015em; margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .icon-btn { background: color-mix(in oklab, var(--shell-ink) 12%, transparent); color: var(--shell-ink); border: 0;
  border-radius: 12px; height: 40px; min-width: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 14px; cursor: pointer; }
.top .icon-btn:hover { background: color-mix(in oklab, var(--shell-ink) 20%, transparent); }
.content { flex: 1; padding: 18px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }

.nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; background: var(--surface); border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.nav-inner { display: flex; width: 100%; max-width: 760px; }
.nav a { flex: 1; text-decoration: none; color: var(--ink-3); display: flex; flex-direction: column; align-items: center;
  gap: 4px; font-size: 11.5px; font-weight: 600; height: var(--nav-h); justify-content: center; position: relative; }
.nav a.on { color: var(--accent-text); }
.nav a.on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.nav .dot { position: absolute; top: 8px; left: calc(50% + 7px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent);
  color: var(--accent-ink); font: 700 11px/18px var(--body); text-align: center; padding: 0 5px; }

/* ---------- temel bloklar ---------- */
.panel { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel h2, .panel h3 { font: 700 17px/1.25 var(--display); margin: 0 0 10px; letter-spacing: -.01em; }
.muted { color: var(--ink-3); font-size: 13.5px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 > * { min-width: 0; }
.group-h { font: 700 15px/1.2 var(--display); color: var(--ink-2); margin: 22px 2px 10px; display: flex; align-items: baseline; justify-content: space-between; }
.group-h:first-child { margin-top: 4px; }
.group-h small { font: 500 12.5px var(--body); color: var(--ink-3); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 16px; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; min-height: 50px; }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }

.btn { border: 0; border-radius: 12px; min-height: 50px; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer;
  width: 100%; font-size: 15.5px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: transform .12s, background .15s; }
.btn:hover { background: color-mix(in oklab, var(--accent) 88%, #000); }
.btn:active { transform: scale(.985); }
.btn.dark { background: var(--shell); color: var(--shell-ink); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--surface-2); }
.btn.small { width: auto; min-height: 38px; padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn.danger { background: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }

.list { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.item { display: flex; gap: 12px; align-items: center; padding: 13px 16px; text-decoration: none; color: inherit; cursor: pointer; position: relative; }
.item + .item::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: var(--line); }
.item.plain + .item.plain::before { left: 16px; }
.item:hover { background: var(--surface-2); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 650; font-size: 15.5px; }
.item .preview { color: var(--ink-3); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.item .meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; font: 700 15px var(--display); flex: none; }
.avatar.ring { background: var(--accent); }
.avatar svg.i { width: 22px; height: 22px; }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 11px; font: 700 12px/22px var(--body); min-width: 22px; padding: 0 7px; text-align: center; }
.time { font-size: 12px; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.tag.warn { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.tag.bad { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.tag.accent { background: var(--accent-soft); color: var(--accent-text); box-shadow: none; }
.dept { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }

/* ---------- bardak (imza) ---------- */
.glass-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 18px; }
.glass-hero .glass { width: 112px; }
.glass svg { display: block; width: 100%; height: auto; overflow: visible; }
.glass .glass-bg { fill: color-mix(in oklab, var(--ink) 4%, var(--surface)); }
.glass .outline { fill: none; stroke: color-mix(in oklab, var(--ink) 55%, transparent); stroke-width: 2.2; }
.glass .shine { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 3; stroke-linecap: round; }
.glass .saucer { fill: var(--surface); stroke: color-mix(in oklab, var(--ink) 45%, transparent); stroke-width: 2; }
.glass .saucer-rim { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.glass .liquid { transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.glass .steam path { fill: none; stroke: color-mix(in oklab, var(--ink) 35%, transparent); stroke-width: 2.4; stroke-linecap: round; opacity: 0; }
.glass.break .steam path { animation: steam 2.6s ease-out infinite; }
.glass.break .steam path:nth-child(2) { animation-delay: .8s; }
.glass.break .steam path:nth-child(3) { animation-delay: 1.6s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .glass .liquid { transition: none; } .glass.break .steam path { animation: none; opacity: .7; } }
.state { font: 800 30px/1.05 var(--display); letter-spacing: -.02em; margin: 2px 0 6px; }
.state.working { color: var(--ok); } .state.break { color: var(--warn); } .state.off { color: var(--ink-2); }
.state-sub { color: var(--ink-2); font-size: 14.5px; }
.state-sub b { font-family: var(--display); font-variant-numeric: tabular-nums; color: var(--ink); }
.mini-glass { width: 22px; flex: none; }

.scan-btn { width: 100%; min-height: 64px; border-radius: 16px; border: 0; background: var(--shell); color: var(--shell-ink); font: 800 19px var(--display);
  display: flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; letter-spacing: -.01em; box-shadow: var(--shadow); }
.scan-btn svg.i { width: 28px; height: 28px; }
.scan-btn:active { transform: scale(.99); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.timeline b { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------- sohbet ---------- */
.chat { display: flex; flex-direction: column; height: 100dvh; max-width: 760px; margin: 0 auto; background: var(--ground); }
.msgs { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 82%; padding: 9px 13px 7px; border-radius: 16px 16px 16px 5px; background: var(--surface); align-self: flex-start; word-wrap: break-word; box-shadow: 0 1px 1px rgba(0,0,0,.05); }
.msg.me { align-self: flex-end; background: var(--shell); color: var(--shell-ink); border-radius: 16px 16px 5px 16px; }
.msg .who { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.msg .t { font-size: 11px; opacity: .6; margin-top: 3px; text-align: right; }
.msg.quick { background: var(--accent-soft); color: var(--accent-text); font: 700 16px/1.3 var(--display); }
.msg.quick.me { background: var(--accent); color: var(--accent-ink); }
.msg.quick .q { display: flex; align-items: center; gap: 7px; }
.msg.quick svg.i { width: 18px; height: 18px; }
.msg.quick .who { font-family: var(--body); }
.daysep { align-self: center; font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 10px 0 4px; padding: 3px 10px; background: var(--surface); border-radius: 999px; }
.composer { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); }
.quicks { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 10px; scrollbar-width: none; }
.quicks::-webkit-scrollbar { display: none; }
.quicks button { flex: none; border: 0; background: var(--accent-soft); color: var(--accent-text); border-radius: 12px; min-height: 44px; padding: 0 14px; font: 700 14.5px var(--display); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.quicks button svg.i { width: 16px; height: 16px; }
.quicks button:active { background: var(--accent); color: var(--accent-ink); }
.composer form { display: flex; gap: 8px; }
.composer input { flex: 1; border-radius: 24px; padding-left: 16px; }
.composer .send { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); flex: none; display: grid; place-items: center; cursor: pointer; }

/* ---------- vardiya ---------- */
.week { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.week b { font: 800 18px var(--display); letter-spacing: -.01em; }
.week button { border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: 12px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.day { margin-top: 16px; }
.day h4 { margin: 0 0 8px 2px; font: 700 14px var(--display); color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.day.today h4 { color: var(--accent-text); }
.day .list { margin-bottom: 0; }
.shift { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.shift + .shift::before { content: ""; position: absolute; top: 0; left: 14px; right: 0; height: 1px; background: var(--line); }
.shift .hours { font: 700 16px var(--display); font-variant-numeric: tabular-nums; min-width: 104px; }
.shift .grow { flex: 1; min-width: 0; }
.shift .who { font-weight: 600; }
.day .empty { color: var(--ink-3); font-size: 13.5px; padding: 2px 2px; }
.seg { display: inline-flex; background: var(--surface); border-radius: 12px; padding: 4px; box-shadow: var(--shadow); margin-bottom: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: var(--shell); color: var(--shell-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; padding: 9px 12px; color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.chips label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); color: var(--accent-text); }

/* ---------- tablo ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--ink-3); font-weight: 600; font-size: 12.5px; }
tr:last-child td { border-bottom: 0; }

/* ---------- giriş ---------- */
.auth-page { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-head { background: var(--shell); color: var(--shell-ink); padding: calc(env(safe-area-inset-top) + 48px) 24px 36px; border-bottom: 2px solid var(--gold); }
.auth-head .glass { width: 54px; margin-bottom: 16px; }
.auth-head h1 { font: 800 32px/1.05 var(--display); letter-spacing: -.025em; margin: 0; }
.auth-head p { color: var(--shell-muted); margin: 8px 0 0; font-size: 15px; }
.auth-body { padding: 24px; max-width: 460px; width: 100%; margin: 0 auto; }

/* ---------- tarayıcı, toast, modal ---------- */
.scanner { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; flex-direction: column; }
.scanner video { flex: 1; width: 100%; object-fit: cover; }
.scanner .frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.scanner .frame div { width: 70vw; max-width: 300px; aspect-ratio: 1; border: 3px solid var(--gold); border-radius: 22px; box-shadow: 0 0 0 9999px rgba(0,0,0,.5); }
.scanner .bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); color: #fff; text-align: center; font-weight: 600; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); background: var(--shell); color: var(--shell-ink); padding: 13px 18px; border-radius: 14px; z-index: 100; font-size: 14.5px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); display: flex; gap: 10px; align-items: center; }
.toast[hidden] { display: none; }
.toast.bad { background: var(--bad); color: #fff; } .toast.ok { background: var(--ok); color: #fff; }
.modal-bg { position: fixed; inset: 0; background: color-mix(in oklab, var(--shell) 55%, transparent); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--ground); width: 100%; max-width: 760px; max-height: 90dvh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-top: 2px solid var(--gold); }
.modal h2 { margin: 0 0 14px; font: 800 22px var(--display); letter-spacing: -.015em; }
.fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); height: 56px; padding: 0 20px 0 16px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); border: 0; font: 700 15px var(--display); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 10px 22px -8px rgba(0,0,0,.35); z-index: 7; cursor: pointer; }
@media (min-width: 800px) { .fab { right: calc(50% - 364px); } }

/* palet seçici */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.swatch { border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); text-align: left; cursor: pointer; }
.swatch .sw-top { height: 54px; display: flex; align-items: flex-end; padding: 8px 10px; border-bottom: 2px solid; }
.swatch .sw-top span { width: 22px; height: 22px; border-radius: 7px; }
.swatch .sw-name { padding: 9px 11px; font-weight: 700; font-size: 14px; }
.swatch .sw-name small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.swatch.on { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }
