/* SITE SYNC marka dokunuşu (antrasit + sarı, hafif) · koyu mod · sesle dikte · alt yardım satırı */
:root {
  --brand: #FAC302; --brand-ink: #2A2A27; --brand-soft: #FFF5D1; --brand-line: #F1DE96;
}
:root[data-theme] { --accent: #2A2A27; --accent-ink: #ffffff; --ok: #2E6B4F; }

/* ---------- Üst bar (header.png) ---------- */
html[data-theme] .topbar { background: #2A2A27; color: #fff; height: 64px; padding: 0 8px; gap: 6px; padding-top: env(safe-area-inset-top, 0px); }
html[data-theme] .topbar .icon-btn { color: var(--brand); }
html[data-theme] .topbar .icon-btn:active { background: rgba(255,255,255,.08); }
html[data-theme] .topbar .title b { font-family: Cinzel, Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.08rem; letter-spacing: .09em; text-transform: uppercase; color: #fff; line-height: 1.15; }
html[data-theme] .topbar .title small { display: flex; align-items: center; gap: 4px; color: #C9C8C0; font-size: .74rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title small svg { color: var(--brand); flex: none; }
html[data-theme] .topbar .badge-dot { background: var(--brand); color: #2A2A27; }
.u-chip { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 46vw; flex: 0 1 auto !important; padding: 4px 12px 4px 4px; border-radius: 14px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08); text-decoration: none; color: #fff; }
html[data-theme] .topbar .title { flex: 1 1 auto; min-width: 116px; }
.u-chip .av, .av { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #2A2A27; display: grid; place-items: center; font-weight: 750; font-size: .8rem; letter-spacing: .02em; flex: none; }
.av.lg { width: 48px; height: 48px; font-size: 1rem; }
.u-chip .u-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.u-chip b { font-size: .82rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-chip small { font-size: .7rem; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 370px) { .u-chip .u-txt { display: none; } .u-chip { padding: 3px; } }

/* ---------- Hafif sarı dokunuşlar ---------- */
html[data-theme] .tabbar a.on { color: var(--ink); }
html[data-theme] .tabbar a.on svg { color: #C99A00; }
html[data-theme] .tabbar a.on::after { content: ""; position: absolute; bottom: 7px; left: 50%; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--brand); }
html[data-theme] .tabbar a { position: relative; }
html[data-theme] .drawer .item.on { background: var(--brand-soft); color: var(--ink); box-shadow: inset 3px 0 0 var(--brand); }
html[data-theme] .disc-num { background: var(--brand-soft); color: #6B5300; }
html[data-theme] .badge-dot { background: var(--brand); color: #2A2A27; }
html[data-theme] .notif .dot { background: var(--brand); }
html[data-theme] .notif.unread { background: #FFFBEC; }
html[data-theme] .input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
html[data-theme] .chip.on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
html[data-theme] .msg.me { background: #FFFAE8; border-color: var(--brand-line); }
html[data-theme] .note-task { background: var(--brand-soft); color: #5E4A00; }
html[data-theme] .cb-ic { background: var(--brand-soft); color: #2A2A27; }
html[data-theme] .converted { color: #8A6A00; }
html[data-theme] .add-photo { border-color: #E5D7A6; background: #FFFCF1; color: #6B5300; }
html[data-theme] .save-ic { background: var(--brand-ink); color: var(--brand); }
html[data-theme] .pill.pro { background: var(--brand); color: #2A2A27; }

/* ---------- Sayfa sonu: Nasıl çalışır? + lamba ---------- */
.page-foot { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; }
.howto { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.howto svg { color: #B88E00; }
.foot-bulb { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: #B88E00; display: grid; place-items: center; }
.howto:active, .foot-bulb:active { transform: scale(.97); }
.help-list { margin: 0 0 12px; padding-left: 22px; font-size: 1rem; line-height: 1.5; }
.help-list li + li { margin-top: 8px; }
.help-list li::marker { color: #B88E00; font-weight: 700; }

/* ---------- Görev formu: Termin ve etiket ---------- */
details.more { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; background: var(--surface); }
details.more summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
details.more summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--ink-3); }
details.more[open] summary::after { content: "–"; }
details.more[open] { padding-bottom: 14px; }

/* ---------- Yetkilerim ---------- */
.me-card { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.perm-h { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; margin: 4px 0 6px; }
.perm-h.ok { color: var(--ok); } .perm-h.no { color: var(--danger); margin-top: 12px; }
.perm-l { margin: 0; padding-left: 20px; line-height: 1.5; }
.perm-l li + li { margin-top: 4px; }
.perm-more summary { cursor: pointer; min-height: 32px; }
.perm-more .perm-l { margin-top: 10px; }
.perm-s { color: var(--ink-2) !important; }

/* ---------- Sesle dikte ---------- */
.dict-wrap { position: relative; }
.dict-wrap > .input { padding-right: 58px; }
.dict-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #2A2A27; color: var(--brand); display: grid; place-items: center; z-index: 1; }
.dict-wrap.multi .dict-btn { top: auto; bottom: 8px; transform: none; }
.dict-wrap.multi > .input { min-height: 104px; }
.dict-btn.off { opacity: .4; }
.dict-wrap.listening .dict-btn { background: var(--brand); color: #2A2A27; animation: dict-pulse 1.4s ease-out infinite; }
.dict-wrap.listening > .input { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
@keyframes dict-pulse { 0% { box-shadow: 0 0 0 0 rgba(250,195,2,.6); } 100% { box-shadow: 0 0 0 14px rgba(250,195,2,0); } }
.dict-status { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.dict-status .dot { width: 10px; height: 10px; border-radius: 50%; background: #E0A800; animation: dict-blink 1s ease-in-out infinite; flex: none; }
@keyframes dict-blink { 50% { opacity: .25; } }
.det-wrap .dict-wrap.multi > .input { padding-right: 110px; }
.det-wrap .dict-btn { right: 56px; }
.composer .dict-wrap, .cp-composer .dict-wrap { flex: 1; min-width: 0; }
.composer .dict-wrap .input, .cp-composer .dict-wrap .input { width: 100%; }
.composer .dict-status, .cp-composer .dict-status { display: none; }
.composer .dict-btn, .cp-composer .dict-btn { width: 38px; height: 38px; }
@media (prefers-reduced-motion: reduce) { .dict-wrap.listening .dict-btn, .dict-status .dot { animation: none; } }

/* ======================= KOYU MOD ======================= */
:root[data-mode="dark"][data-theme], :root[data-mode="dark"] {
  --bg: #141513; --surface: #1E1F1C; --ink: #EDEDE7; --ink-2: #C5C6BF; --ink-3: #969891; --line: #31322E;
  --accent: #FAC302; --accent-ink: #1E1F1C; --danger: #F08A6B; --ok: #7CC4A0; --warn: #E8B54A; --info: #8FB3E6;
  --brand-soft: #2E2A18; --brand-line: #4A4122; --shadow: none; color-scheme: dark;
}
html[data-mode="dark"] body { background: var(--bg); color: var(--ink); }
html[data-mode="dark"] .topbar { background: #0E0F0D; border-bottom: 1px solid #22231F; }
html[data-mode="dark"] .u-chip { background: rgba(255,255,255,.06); }
html[data-mode="dark"] .input, html[data-mode="dark"] .chip, html[data-mode="dark"] .rx-btn, html[data-mode="dark"] .imp-it,
html[data-mode="dark"] .seg button.on, html[data-mode="dark"] .banner, html[data-mode="dark"] .banner.info,
html[data-mode="dark"] .seg.tprio button, html[data-mode="dark"] .seg.dur button { background: var(--surface); color: var(--ink); border-color: var(--line); }
html[data-mode="dark"] .seg { background: #262723; }
html[data-mode="dark"] .seg button { color: var(--ink-2); }
html[data-mode="dark"] .seg button.on { background: #3A3B36; color: var(--ink); }
html[data-mode="dark"] .btn { background: var(--surface); border-color: var(--line); color: var(--ink); }
html[data-mode="dark"] .btn.primary { background: var(--brand); border-color: var(--brand); color: #1E1F1C; }
html[data-mode="dark"] .btn.accent, html[data-mode="dark"] .btn.ok { background: #EDEDE7; border-color: #EDEDE7; color: #1E1F1C; }
html[data-mode="dark"] .btn.danger { border-color: #5A3328; color: var(--danger); }
html[data-mode="dark"] .list-item:active, html[data-mode="dark"] .drawer .item:active, html[data-mode="dark"] .cb-btn:active, html[data-mode="dark"] .ment-opt:active { background: #2A2B27; }
html[data-mode="dark"] .tabbar { background: rgba(30,31,28,.94); border-color: var(--line); box-shadow: 0 8px 28px rgba(0,0,0,.4); }
html[data-mode="dark"] .tabbar a.on svg { color: var(--brand); }
html[data-mode="dark"] .drawer, html[data-mode="dark"] .sheet, html[data-mode="dark"] #chatpanel, html[data-mode="dark"] .chatbar { background: var(--surface); color: var(--ink); }
html[data-mode="dark"] .drawer .item.on { background: var(--brand-soft); color: var(--ink); }
/* İmza: açık zeminde koyu logo, koyu zeminde açık logo */
.credit img.cr-on-dark { display: none; }
html[data-mode="dark"] .credit img.cr-on-light { display: none; }
html[data-mode="dark"] .credit img.cr-on-dark { display: inline-block; }
html[data-mode="dark"] .disc-num { background: var(--brand-soft); color: var(--brand); }
html[data-mode="dark"] .task { background: var(--surface); border-color: var(--line); }
html[data-mode="dark"] .task.starred { background: #2A1F1B; border-color: #4A2F25; }
html[data-mode="dark"] .msg { background: var(--surface); border-color: var(--line); }
html[data-mode="dark"] .msg.me { background: #2A2716; border-color: #4A4122; }
html[data-mode="dark"] .msg .who .abbr { background: #2E2F2B; color: var(--ink-2); }
html[data-mode="dark"] .notif.unread { background: #24221A; }
html[data-mode="dark"] .note-check { background: transparent; border-color: #55574F; }
html[data-mode="dark"] .note-task { background: var(--brand-soft); color: var(--brand); }
html[data-mode="dark"] .cb-ic { background: var(--brand-soft); color: var(--brand); }
html[data-mode="dark"] .add-photo { background: #22231F; border-color: #4A4122; color: var(--brand); }
html[data-mode="dark"] .photos .ph, html[data-mode="dark"] .thumb { background: #2A2B27; }
html[data-mode="dark"] .reject-note { background: #3A2520; color: #F2B8A6; }
html[data-mode="dark"] .pill { background: #2C2D29; color: var(--ink-2); }
html[data-mode="dark"] .pill.info { background: #1F2A3A; color: var(--info); }
html[data-mode="dark"] .pill.p-acil, html[data-mode="dark"] .seg .p-acil.on { background: #4A2523; color: #F5B5AE; }
html[data-mode="dark"] .pill.p-yuksek, html[data-mode="dark"] .seg .p-yuksek.on { background: #4A3220; color: #F5C79C; }
html[data-mode="dark"] .pill.p-normal, html[data-mode="dark"] .seg .p-normal.on { background: #403718; color: #F2D978; }
html[data-mode="dark"] .pill.p-dusuk, html[data-mode="dark"] .seg .p-dusuk.on { background: #22382A; color: #A8D9B6; }
html[data-mode="dark"] .pill.d-wait, html[data-mode="dark"] .seg .d-wait.on { background: #2E2A45; color: #C8BEF0; }
html[data-mode="dark"] .pill.d-prog, html[data-mode="dark"] .seg .d-prog.on { background: #1F3247; color: #A9CBEE; }
html[data-mode="dark"] .pill.d-done { background: #1F3A2D; color: #9ED6B6; }
html[data-mode="dark"] .pill.d-rev { background: #3E2436; color: #EBB5D6; }
html[data-mode="dark"] .pill.star { background: #4A2523; color: #F5B5AE; }
html[data-mode="dark"] .pill.review { background: #403718; color: #F2D978; }
html[data-mode="dark"] .pill.done { background: #1F3A2D; color: #9ED6B6; }
html[data-mode="dark"] .sheet .grip, html[data-mode="dark"] .cb-grip, html[data-mode="dark"] .cp-head .grip { background: #4A4B45; }
html[data-mode="dark"] .rule-no { background: var(--brand); color: #1E1F1C; }
html[data-mode="dark"] .toast { background: #EDEDE7; color: #1E1F1C; }
html[data-mode="dark"] .howto svg, html[data-mode="dark"] .foot-bulb, html[data-mode="dark"] .help-list li::marker { color: var(--brand); }
html[data-mode="dark"] .dict-btn { background: #3A3B36; }
html[data-mode="dark"] .save-ic { background: #3A3B36; color: var(--brand); }
html[data-mode="dark"] .star-btn, html[data-mode="dark"] .star-static { color: #7A7C73; }
html[data-mode="dark"] .star-btn.on, html[data-mode="dark"] .star-static.on { color: var(--danger); }
html[data-mode="dark"] details.more { background: var(--surface); }
html[data-mode="dark"] .composer { background: var(--bg); }
html[data-mode="dark"] .fab { background: var(--surface); color: var(--brand); border-color: var(--line); }
html[data-mode="dark"] .scrim { background: rgba(0,0,0,.6); }

/* ======================= İNCELİKLER (v2) ======================= */
/* İkon tutarlılığı: tüm çizgi ikonlar 2px */
html[data-theme] svg { stroke-width: 2; }

/* Alt pencere ve sohbet paneli: aşağıdan yumuşak yaylanma */
html[data-theme] .sheet, html[data-theme] #chatpanel { transition: transform .46s cubic-bezier(.3, 1.28, .5, 1); }
.sheet::after, #chatpanel::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 48px; background: inherit; }
html[data-theme] .scrim { transition: opacity .28s ease; }
@media (prefers-reduced-motion: reduce) { html[data-theme] .sheet, html[data-theme] #chatpanel { transition: transform .2s ease; } }

/* Mikrofon: dinlerken canlı, yayılan sarı nabız (iki halka) */
.dict-btn { overflow: visible; }
.dict-btn::before, .dict-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0; }
.dict-wrap.listening .dict-btn { animation: none; box-shadow: 0 0 0 3px rgba(250,195,2,.35); }
.dict-wrap.listening .dict-btn::before, .dict-wrap.listening .dict-btn::after { background: rgba(250,195,2,.55); animation: dict-ring 1.6s cubic-bezier(.2,.6,.35,1) infinite; }
.dict-wrap.listening .dict-btn::after { animation-delay: .8s; }
.dict-btn svg { position: relative; z-index: 1; }
@keyframes dict-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dict-wrap.listening .dict-btn::before, .dict-wrap.listening .dict-btn::after { animation: none; } }

/* Soft durum rozetleri: şeffaf pastel kapsül + 6px renkli nokta */
:root {
  --c-acil: #C2412F; --c-yuksek: #B8601C; --c-normal: #8A6A00; --c-dusuk: #3C7A4A;
  --c-wait: #5E519A; --c-prog: #2F6497; --c-done: #2F7A57; --c-rev: #9A3E78; --c-info: #3B5B8C;
}
:root[data-mode="dark"] {
  --c-acil: #F29A8E; --c-yuksek: #F2B07A; --c-normal: #EBCB5E; --c-dusuk: #95D3A6;
  --c-wait: #B9AEF0; --c-prog: #93C0EC; --c-done: #8FD4B2; --c-rev: #E6A6D0; --c-info: #9DB9E6;
}
html[data-theme] .pill { gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; }
html[data-theme] .pill:is(.p-acil,.p-yuksek,.p-normal,.p-dusuk,.d-wait,.d-prog,.d-done,.d-rev,.star,.review,.done,.info)::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
html[data-theme] .pill.p-acil, html[data-theme] .pill.star { color: var(--c-acil); background: color-mix(in srgb, var(--c-acil) 12%, transparent); border-color: color-mix(in srgb, var(--c-acil) 18%, transparent); }
html[data-theme] .pill.p-yuksek { color: var(--c-yuksek); background: color-mix(in srgb, var(--c-yuksek) 12%, transparent); border-color: color-mix(in srgb, var(--c-yuksek) 18%, transparent); }
html[data-theme] .pill.p-normal, html[data-theme] .pill.review { color: var(--c-normal); background: color-mix(in srgb, #E0B400 14%, transparent); border-color: color-mix(in srgb, #E0B400 22%, transparent); }
html[data-theme] .pill.p-dusuk { color: var(--c-dusuk); background: color-mix(in srgb, var(--c-dusuk) 12%, transparent); border-color: color-mix(in srgb, var(--c-dusuk) 18%, transparent); }
html[data-theme] .pill.d-wait { color: var(--c-wait); background: color-mix(in srgb, var(--c-wait) 11%, transparent); border-color: color-mix(in srgb, var(--c-wait) 18%, transparent); }
html[data-theme] .pill.d-prog, html[data-theme] .pill.info { color: var(--c-prog); background: color-mix(in srgb, var(--c-prog) 11%, transparent); border-color: color-mix(in srgb, var(--c-prog) 18%, transparent); }
html[data-theme] .pill.d-done, html[data-theme] .pill.done { color: var(--c-done); background: color-mix(in srgb, var(--c-done) 11%, transparent); border-color: color-mix(in srgb, var(--c-done) 18%, transparent); }
html[data-theme] .pill.d-rev { color: var(--c-rev); background: color-mix(in srgb, var(--c-rev) 11%, transparent); border-color: color-mix(in srgb, var(--c-rev) 18%, transparent); }
html[data-theme] .seg .p-acil.on { color: var(--c-acil); background: color-mix(in srgb, var(--c-acil) 13%, var(--surface)); border-color: color-mix(in srgb, var(--c-acil) 35%, transparent); }
html[data-theme] .seg .p-yuksek.on { color: var(--c-yuksek); background: color-mix(in srgb, var(--c-yuksek) 13%, var(--surface)); border-color: color-mix(in srgb, var(--c-yuksek) 35%, transparent); }
html[data-theme] .seg .p-normal.on { color: var(--c-normal); background: color-mix(in srgb, #E0B400 16%, var(--surface)); border-color: color-mix(in srgb, #E0B400 45%, transparent); }
html[data-theme] .seg .p-dusuk.on { color: var(--c-dusuk); background: color-mix(in srgb, var(--c-dusuk) 13%, var(--surface)); border-color: color-mix(in srgb, var(--c-dusuk) 35%, transparent); }
html[data-theme] .seg .d-wait.on { color: var(--c-wait); background: color-mix(in srgb, var(--c-wait) 12%, var(--surface)); border-color: color-mix(in srgb, var(--c-wait) 35%, transparent); }
html[data-theme] .seg .d-prog.on { color: var(--c-prog); background: color-mix(in srgb, var(--c-prog) 12%, var(--surface)); border-color: color-mix(in srgb, var(--c-prog) 35%, transparent); }

/* Ferah formlar: Yeni iş ve Kendime not pencereleri */
.sheet .sh-body { padding: 6px 20px 24px; }
.sheet .sh-head { padding: 6px 10px 6px 20px; }
.sheet label.f { margin: 18px 0 8px; font-size: .84rem; }
.sheet .input { min-height: 52px; padding: 12px 14px; }
.sheet textarea.input { min-height: 112px; line-height: 1.5; }
.sheet .seg { margin-bottom: 4px; }
html .sheet .seg.tprio button, html .sheet .seg.dur button { min-height: 48px; }
.sheet .row { gap: 12px !important; }
.sheet .btn.primary.block { min-height: 54px; margin-top: 22px !important; }
.sheet .switch { margin-top: 14px; }

/* Yetki talepleri ve yardım içindeki dikte bilgisi */
.perm-ask { margin-top: 12px; }
.preq-box { margin-top: 12px; }
.preq-box summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.preq { padding: 12px 0; border-top: 1px solid var(--line); }
.preq-box summary + .preq { margin-top: 10px; }
.preq-t { white-space: pre-wrap; }
.preq .s { font-size: .8rem; color: var(--ink-3); margin-top: 3px; }
.help-dict { margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.help-dict summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 650; cursor: pointer; }
.help-dict summary svg { color: #B88E00; }
.help-dict ul { margin: 0 0 10px; padding-left: 20px; line-height: 1.5; color: var(--ink-2); }
.help-dict li + li { margin-top: 6px; }

/* ---------- Şantiye formu: şirket bilgileri grubu ---------- */
.f-group { margin-top: 16px; padding: 4px 14px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.f-group-h { display: block; margin-top: 10px; font-size: .9rem; color: var(--ink); }
.warn-txt { color: var(--danger); }

/* ---------- Ana Ekrana Ekle (ilk açılış) ---------- */
.install-cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + var(--safe-b, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: #2A2A27; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.28); animation: cta-in .35s ease-out; max-width: calc(100vw - 32px); }
body:has(.tabbar) .install-cta { bottom: calc(92px + var(--safe-b, 0px)); }
.install-go { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 6px; border: 0; border-radius: 999px;
  background: var(--brand); color: #1E1F1C; font: inherit; font-weight: 700; font-size: 1rem; white-space: nowrap; cursor: pointer; }
.install-go img { width: 36px; height: 36px; border-radius: 9px; }
.install-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #C9C8C0; display: grid; place-items: center; cursor: pointer; }
.install-go:active { transform: scale(.97); }
html[data-mode="dark"] .install-cta { background: #EDEDE7; }
html[data-mode="dark"] .install-x { color: #55574F; }
@keyframes cta-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.install-guide { list-style: none; margin: 0; padding: 0; }
.install-guide li { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 1rem; line-height: 1.4; }
.install-guide li + li { border-top: 1px solid var(--line); }
.ig-n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #1E1F1C; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.ig-ic { width: 22px; height: 22px; vertical-align: -5px; margin-left: 4px; color: #0A84FF; }

/* ---------- İnteraktif önizleme: "Nasıl çalışır?" ve ayrı Play düğmesi ---------- */
/* "i" simgesi yazıdaki büyük harf boyunda */
.howto { font-size: .9rem; }
.howto svg { width: .95em; height: .95em; flex: none; }
.page-foot { gap: 10px; }
.page-foot .wt-play { margin-left: 8px; }
/* Play: ampul düğmesiyle aynı tip (yuvarlak çerçeve, yüzey zemin, aynı sarı-kahve renk) */
.wt-play { width: 44px; height: 44px; border: 1px solid var(--line) !important; background: var(--surface) !important; color: #B88E00 !important; }
html[data-mode="dark"] .wt-play { color: var(--brand) !important; }
.howto-line { display: flex; align-items: center; gap: 18px; margin: 0 0 6px; }
.howto-line .howto { cursor: default; }

/* ---------- Yüzen sohbet şeridi: arka plandan belirgin ayrılsın ---------- */
html[data-theme] .chatbar { background: #2A2A27; border-color: #2A2A27; color: #fff; box-shadow: 0 10px 28px rgba(28,30,29,.32); }
html[data-theme] .chatbar .cb-txt b { color: #fff; }
html[data-theme] .chatbar .cb-last { color: #C9C8C0; }
html[data-theme] .chatbar .cb-ic { background: var(--brand); color: #2A2A27; }
html[data-theme] .chatbar .cb-btn { color: #E7E6DF; }
html[data-theme] .chatbar .cb-btn:active { background: rgba(255,255,255,.1); }
html[data-theme] .chatbar .cb-grip { background: #6E6F68; }
html[data-theme] .chatbar .cb-n { border-color: #2A2A27; }
html[data-mode="dark"] .chatbar { background: #2A2A27; border: 1.5px solid var(--brand); box-shadow: 0 10px 28px rgba(0,0,0,.55); }

/* ---------- Numara daireleri (iş grupları, tarif adımları) ---------- */
/* Açık mod: bej-gri zemin, sıcak gri rakam · Koyu mod: mikrofon dairesiyle aynı (antrasit zemin, sarı rakam) */
html[data-theme] .disc-num, .ig-n { background: #E8E5DC; color: #5A564B; }
html[data-mode="dark"] .disc-num, html[data-mode="dark"] .ig-n { background: #3A3B36; color: var(--brand); }

/* ---------- Şifre kutusu: basılı tutunca göster ---------- */
.pw-wrap { position: relative; }
.pw-wrap > .input { padding-right: 52px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent;
  color: var(--ink-3); display: grid; place-items: center; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.pw-eye.on { color: #2A2A27; background: var(--brand); }
html[data-mode="dark"] .pw-eye.on { color: #1E1F1C; }

/* ---------- Rol seçiminde otomatik yetki özeti ---------- */
.role-sum { margin: 8px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, var(--surface)); font-size: 14px; }
.role-sum ul { margin: 2px 0 6px; padding-left: 20px; }
.role-sum li { margin: 2px 0; }
.role-sum .rs-h { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.role-sum .rs-h.ok { color: var(--ok, #2E7D4F); }
.role-sum .rs-h.no { color: var(--danger, #B3261E); margin-top: 4px; }

/* ---------- Şantiye ekle: abonelik / özel izin ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--surface); display: flex; flex-direction: column; }
.plan-card ul { margin: 8px 0 10px; padding-left: 18px; font-size: 14px; flex: 1; }
.plan-card li { margin: 2px 0; }
.sreq { align-items: flex-start; }

/* ---------- Akordeonlar (notlar, alt kategoriler) ---------- */
details.acc { margin-top: 14px; }
details.acc > summary { list-style: none; cursor: pointer; }
details.acc > summary::-webkit-details-marker { display: none; }
.acc-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.acc-h::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; }
details.acc[open] > .acc-h::after { transform: rotate(-135deg); }
details.acc .note-group:first-of-type { margin-top: 10px; }
.empty.sm { padding: 14px 10px; font-size: .9rem; }
.acc-sc .subcat-head { cursor: pointer; }
.sc-chev { display: inline-grid; color: var(--ink-3); transition: transform .15s; }
.acc-sc.open .sc-chev { transform: rotate(90deg); }
.acc-sc:not(.open) .subcat-body { display: none; }

/* ---------- Basılı tutup sürükleme ---------- */
.sortable [data-sort-item] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sort-drag { position: relative; z-index: 30; box-shadow: 0 10px 28px rgba(0,0,0,.18); background: var(--surface); outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 12px; transition: none !important; opacity: .97; }
.sorting { touch-action: none; }

/* ---------- Not kartı: paylaş, alıcı rozeti, alarm ---------- */
.note-send { flex: none; width: 40px; height: 40px; margin: -8px -8px 0 0; border: 0; background: none; color: var(--ink-3); display: grid; place-items: center; border-radius: 50%; }
.note-send:active { background: var(--brand-soft); color: var(--ink); }
.aud-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--ink); font-weight: 600; font-size: .72rem; }
.alarm-badge { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); font-weight: 600; }
.alarm-badge.past { opacity: .6; }
.cap-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.cap { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; }
.cap.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ---------- Yeni iş grubu: alt kategori etiketleri ---------- */
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tag-chips:empty { display: none; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--brand-soft); border: 1px solid var(--brand-line); font-weight: 600; font-size: .88rem; }
.tag-chip button { width: 28px; height: 28px; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; border-radius: 50%; }
.ask-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-ink); display: grid; place-items: center; margin: 0 0 12px; }
html[data-mode="dark"] .ask-ic { color: var(--brand); }

/* ---------- Standart Malzeme Listem ---------- */
.cat-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cat-row .t { font-weight: 600; }
.cat-row .s { font-size: .8rem; color: var(--ink-3); margin-top: 2px; }
.cat-row [data-ce] { cursor: pointer; }
.cat-row.sel { background: var(--brand-soft); }
.cat-check { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9cdca; background: var(--surface); flex: none; display: grid; place-items: center; color: var(--brand-ink); }
.cat-row.sel .cat-check { background: var(--brand); border-color: var(--brand); }
html[data-mode="dark"] .cat-check { border-color: #55574F; background: transparent; }
html[data-mode="dark"] .cat-row.sel .cat-check { background: var(--brand); border-color: var(--brand); }
.fab-req { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 40;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.22); transition: transform .18s, opacity .18s; }
.fab-req.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.fab-req .n { min-width: 24px; height: 24px; border-radius: 12px; background: var(--brand-ink); color: var(--brand); display: grid; place-items: center; font-size: .82rem; padding: 0 6px; }
.rv-list { margin-top: 8px; }
.rv-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; background: var(--surface); }
.rv-item .f { margin-top: 6px; }
.icon-btn.sm { width: 36px; height: 36px; }
.note > .grow { flex: 1; min-width: 0; }
.fab-req { white-space: nowrap; }

/* ---------- Açık modda koyu butonlar: zift siyahı yerine koyu moddaki yumuşak antrasit/kömür tonu ---------- */
:root { --charcoal: #3A3B36; --charcoal-2: #45463F; }
html:not([data-mode="dark"])[data-theme] { --accent: var(--charcoal); }
html:not([data-mode="dark"]) .btn.primary { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
html:not([data-mode="dark"]) .btn.primary:active { background: var(--charcoal-2); }
html:not([data-mode="dark"]) .btn.accent { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }
html:not([data-mode="dark"]) .dict-btn { background: var(--charcoal); }
html:not([data-mode="dark"])[data-theme] .chip.on, html:not([data-mode="dark"]) .rx-btn.on { background: var(--charcoal); border-color: var(--charcoal); }
html:not([data-mode="dark"])[data-theme] .save-ic { background: var(--charcoal); }
html:not([data-mode="dark"]) .fab-req .n { background: var(--charcoal); }
html:not([data-mode="dark"]) .toast { background: var(--charcoal); }
html:not([data-mode="dark"]) .install-cta { background: var(--charcoal); }

/* ---------- Menünün altındaki "by GAMMA": beyaz satırın tam ortasında ---------- */
.drawer .credit { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 0 16px; margin: 0; box-sizing: border-box;
  border-bottom: var(--safe-b, 0px) solid transparent; line-height: 1; }
.drawer .credit .lbl { margin: 0; line-height: 1; display: block; }
.drawer .credit img { display: block; margin: 0; }
html:not([data-mode="dark"]) .drawer .credit img.cr-on-dark, html[data-mode="dark"] .drawer .credit img.cr-on-light { display: none; }

/* ---------- Yeni yıldız (SVG, yumuşak oranlı) ---------- */
.star-svg { width: 21px; height: 21px; display: block; }
.star-static .star-svg { width: 19px; height: 19px; }
.star-static.lg .star-svg { width: 24px; height: 24px; }
.star-inline { display: inline-grid; vertical-align: -3px; color: var(--danger); }
.star-inline .star-svg { width: 17px; height: 17px; }
.star-btn .star-svg { transition: transform .15s; }
.star-btn:active .star-svg { transform: scale(.88); }

/* ---------- Şifre göz ikonu: sarı daire / çerçeve yok, yalnızca ikon rengi değişir ---------- */
.pw-eye, .pw-eye:focus, .pw-eye:focus-visible, .pw-eye:active { outline: none !important; box-shadow: none !important; -webkit-tap-highlight-color: transparent; }
.pw-eye.on, html[data-mode="dark"] .pw-eye.on { background: transparent !important; color: #E0A800; }
html[data-mode="dark"] .pw-eye.on { color: var(--brand); }

/* ---------- Rol seçimi: ferah, iki satırlı liste ---------- */
details.role-pick { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
details.role-pick > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
details.role-pick > summary::-webkit-details-marker { display: none; }
details.role-pick summary b, .rl-it b { display: block; font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--ink); }
details.role-pick .s, .rl-it .s { display: block; font-size: .82rem; line-height: 1.35; color: var(--ink-3); margin-top: 3px; }
.rp-chg { font-size: .85rem; font-weight: 600; color: #8A6A00; flex: none; }
html[data-mode="dark"] .rp-chg { color: var(--brand); }
details.role-pick[open] .rp-chg { visibility: hidden; }
.role-list { border-top: 1px solid var(--line); padding: 6px 0 8px; }
.rl-g { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px 6px; }
.rl-it { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 12px 16px; min-height: 60px; color: var(--ink); }
.rl-it + .rl-it { border-top: 1px solid var(--line); }
.rl-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c9cdca; flex: none; margin-top: 1px; box-sizing: border-box; }
.rl-it.on .rl-dot { border: 6px solid var(--brand); }
.rl-it.on { background: var(--brand-soft); }

.note.moving { transition: opacity .25s; opacity: .55; }

/* ---------- Malzeme listem: miktar satırın en sağında (aynı yazı ve renk) ---------- */
.cat-qty { margin-top: 0 !important; flex: none; text-align: right; white-space: nowrap; padding-left: 8px; cursor: pointer; }
.mat-tabs button { font-size: .86rem; padding: 0 6px; }

/* ---------- Siparişler (aylık) ---------- */
.mo-top { margin: 0 0 4px; gap: 8px; align-items: center; }
.mo-exp { display: inline-flex; gap: 6px; }
.mo-bar { justify-content: flex-end; margin: 10px 0 8px; }
.mo-row { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mo-row .s { font-size: .78rem; color: var(--ink-3); margin-top: 4px; }
.mo-q { font-weight: 600; white-space: nowrap; padding-left: 8px; }
.mo-grp { margin-top: 6px; font-size: .86rem; font-weight: 600; }
.mo-k { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B5300; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 6px; padding: 1px 6px; margin-right: 4px; }
html[data-mode="dark"] .mo-k { color: var(--brand); }
.cat-row > .grow, .mo-row .row > .grow, details.role-pick > summary > .grow, .rv-item .row > b { flex: 1; min-width: 0; }

/* ---------- Bilgisayarda giriş: QR (yalnızca masaüstü) ---------- */
.qr-login { display: flex; justify-content: center; margin: 18px auto 0; max-width: 460px; }
.qr-login:empty { display: none; }
.qr-card { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.qr-img { flex: none; width: 128px; height: 128px; background: #fff; border-radius: 10px; padding: 6px; box-sizing: border-box; }
.qr-img svg { width: 100%; height: 100%; display: block; }
.qr-txt { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; color: var(--ink-2, var(--ink)); line-height: 1.4; }
.qr-txt > b { font-size: 1rem; color: var(--ink); }
.qr-alt { color: var(--ink-3); font-size: .8rem; }
.qr-code { display: inline-block; font-size: 1.05rem; letter-spacing: .12em; color: var(--ink); margin-left: 2px; }
@media (max-width: 759px), (pointer: coarse) { .qr-login { display: none; } }
.qr-img img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* ---------- Listelerde kısa görünüm: başlık / ilk iki satır + silik konum; dokununca tamamı ---------- */
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.note-t.clamp2 { white-space: pre-line; }
.note > .grow[data-view] { cursor: pointer; }
.note-place, .rule-place { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rule-place { margin-left: 34px; }
.rule-h { align-items: center; }
.rule-chev { color: var(--ink-3); flex: none; display: grid; }
.task:not(.open) .t-txt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.nd-title { margin: 0 0 8px; font-size: 1.08rem; font-weight: 650; line-height: 1.35; }
.nd-text { white-space: pre-wrap; word-break: break-word; line-height: 1.5; font-size: 1rem; }
.nd-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: .84rem; color: var(--ink-3); }
.nd-meta .prio-dot { display: inline-block; vertical-align: middle; }
.sheet .note-task { margin-top: 12px; }
.mo-row.rej { opacity: .55; }

/* ---------- Yüzen sohbet: açık modda koyu, koyu modda açık; küçülen simge ve açılan sohbet aynı renkte ---------- */
html[data-theme]:not([data-mode="dark"]) .cb-bubble { background: #2A2A27; border-color: #2A2A27; color: var(--brand); box-shadow: 0 10px 26px rgba(28,30,29,.32); }
html[data-theme]:not([data-mode="dark"]) .cb-bubble .cb-n { border-color: #2A2A27; }
html[data-mode="dark"] .chatbar { background: #F4F3EE; border: 1px solid #F4F3EE; color: #1F1F1C; box-shadow: 0 10px 28px rgba(0,0,0,.55); }
html[data-mode="dark"] .chatbar .cb-txt b { color: #1F1F1C; }
html[data-mode="dark"] .chatbar .cb-last { color: #5C5B54; }
html[data-mode="dark"] .chatbar .cb-ic { background: #2A2A27; color: var(--brand); }
html[data-mode="dark"] .chatbar .cb-btn { color: #3A3B36; }
html[data-mode="dark"] .chatbar .cb-btn:active { background: rgba(0,0,0,.07); }
html[data-mode="dark"] .chatbar .cb-grip { background: #B9B7AE; }
html[data-mode="dark"] .chatbar .cb-n { border-color: #F4F3EE; }
html[data-mode="dark"] .cb-bubble { background: #F4F3EE; border-color: #F4F3EE; color: #2A2A27; box-shadow: 0 10px 26px rgba(0,0,0,.55); }
html[data-mode="dark"] .cb-bubble .cb-n { border-color: #F4F3EE; }
/* Açık modda sohbet alanı koyu */
html[data-theme]:not([data-mode="dark"]) #chatpanel {
  --bg: #1A1B18; --surface: #2A2A27; --ink: #EDEDE7; --ink-2: #C5C6BF; --ink-3: #9A9C94; --line: #3A3B36;
  --brand-soft: #2E2A18; --brand-line: #4A4122; --shadow: none; color-scheme: dark;
  background: var(--bg); color: var(--ink); }
html[data-theme]:not([data-mode="dark"]) #chatpanel .cp-head .grip { background: #55574F; }
html[data-theme]:not([data-mode="dark"]) #chatpanel .cb-btn { color: var(--ink-2); }
html[data-theme]:not([data-mode="dark"]) #chatpanel .msg { background: #2A2A27; border: 1px solid #3A3B36; color: var(--ink); }
html[data-theme]:not([data-mode="dark"]) #chatpanel .msg.me { background: #34301C; border-color: #4A4122; }
html[data-theme]:not([data-mode="dark"]) #chatpanel .msg .who .abbr { background: #3A3B36; color: var(--ink-2); }
html[data-theme]:not([data-mode="dark"]) #chatpanel .input { background: #1E1F1C; color: var(--ink); border-color: #3A3B36; }
html[data-theme]:not([data-mode="dark"]) #chatpanel .input::placeholder { color: #8A8C84; }
html[data-theme]:not([data-mode="dark"]) #chatpanel .cp-composer .btn { background: var(--brand); border-color: var(--brand); color: #2A2A27; }
html[data-theme]:not([data-mode="dark"]) #chatpanel .rx-btn, html[data-theme]:not([data-mode="dark"]) #chatpanel .chip { background: #34352F; border-color: #44453F; color: var(--ink); }
html[data-theme]:not([data-mode="dark"]) #chatpanel .dict-btn { background: #3A3B36; color: var(--brand); }
html[data-theme]:not([data-mode="dark"]) #chatpanel .empty { color: var(--ink-3); }
/* Koyu modda sohbet alanı açık */
html[data-mode="dark"] #chatpanel {
  --bg: #F4F3EF; --surface: #FFFFFF; --ink: #16191D; --ink-2: #4A5059; --ink-3: #7A7F86; --line: #E4E2DC;
  --brand-soft: #FFF5D1; --brand-line: #F1DE96; color-scheme: light;
  background: var(--bg); color: var(--ink); }
html[data-mode="dark"] #chatpanel .cp-head .grip { background: #D5D7D3; }
html[data-mode="dark"] #chatpanel .cb-btn { color: var(--ink-2); }
html[data-mode="dark"] #chatpanel .msg { background: #FFFFFF; border: 1px solid #ECEAE4; color: var(--ink); }
html[data-mode="dark"] #chatpanel .msg.me { background: #FFFAE8; border-color: #F1DE96; }
html[data-mode="dark"] #chatpanel .msg .who .abbr { background: #EFEFEC; color: var(--ink-2); }
html[data-mode="dark"] #chatpanel .input { background: #FFFFFF; color: var(--ink); border-color: #E4E2DC; }
html[data-mode="dark"] #chatpanel .cp-composer .btn { background: #3A3B36; border-color: #3A3B36; color: #FFFFFF; }
html[data-mode="dark"] #chatpanel .rx-btn, html[data-mode="dark"] #chatpanel .chip { background: #FFFFFF; border-color: #E4E2DC; color: var(--ink); }
html[data-mode="dark"] #chatpanel .dict-btn { background: #3A3B36; color: var(--brand); }
.rule-h > .grow { flex: 1; min-width: 0; }

/* ---------- Talep kartı: işlemler gizli, dokununca yalnızca ikonlar ---------- */
.ord-card.has-acts { cursor: pointer; }
.ord-chev { color: var(--ink-3); display: grid; margin-left: 2px; transition: transform .2s; }
.ord-card.open .ord-chev { transform: rotate(90deg); }
.ord-acts { display: none; gap: 10px; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ord-card.open .ord-acts { display: flex; }
.ord-ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; padding: 0; flex: none; }
.ord-ic.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
html[data-theme] .ord-ic.go { background: var(--charcoal, #3A3B36); border-color: var(--charcoal, #3A3B36); color: #fff; }
html[data-mode="dark"] .ord-ic.go { background: var(--brand); border-color: var(--brand); color: #1E1F1C; }
.ord-ic:active { transform: scale(.94); }

/* ---------- Genel kurallar: iş listesi gibi sık ve sade ---------- */
.rules { gap: 8px; }
.rule.card { padding: 10px 12px; border-radius: 12px; min-height: 56px; display: flex; flex-direction: column; justify-content: center; }
.rule.card .rule-h b { font-weight: 400; font-size: .98rem; line-height: 1.35; }
.rule-no { min-width: 22px; height: 22px; border-radius: 7px; font-size: .74rem; }
.rule-place { margin: 2px 0 0 32px; font-size: .78rem; }

/* ---------- Koyu modda sohbet şeridi ikonu: açık moddaki gibi sarı ---------- */
html[data-mode="dark"] .chatbar .cb-ic { background: var(--brand); color: #2A2A27; }
.rules .card + .card { margin-top: 0; }

/* ---------- Sol menü: sağ üstte tanıtım (play) düğmesi ---------- */
.drawer .head { position: relative; padding-right: 64px; }
.drawer-play { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }
