/* Renkler tema değişkenlerinden gelir: aydınlık (varsayılan) ve karanlık ([data-theme=dark]) */
:root {
  color-scheme: light;
  --bg: #f4f5f7; --panel: #fff; --ink: #1b1d22; --ink2: #374151; --muted: #6b7280;
  --line: #e5e7eb; --line2: #f1f2f4; --line-hover: #c9ccd3;
  --soft: #f0f1f4; --soft2: #f7f8fa; --hover-bg: #e9ebef; --sel-bg: #f7f7ff;
  --side: #15171c; --side-ink: #c9ccd3; --accent: #5b5bf6; --accent-soft: #ececfe;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --ig: #d62976; --fb: #1877f2;
  --ok-bg: #e6f6ec; --warn-bg: #fdf2e2; --bad-bg: #fde8e8; --ig-bg: #fde8f1; --fb-bg: #e7f0fe;
  --pill-ink: #444; --chip-ink: #3b3bd1; --chip2-bg: #eef2ff; --chip2-line: #d4d8fd;
  --var-bg: #fff3d6; --var-ink: #8a5a00;
  --note-bg: #fffbeb; --note-line: #f3d27a; --note-ink: #6b5310; --note-strong: #7a5b00;
  --sage: #4a9478; --sage-ink: #3d7d65; --sage-bg: #e5f1ec;
  --av-bg: #dfe1e6; --av-ink: #555; --bub-bot: #3f4350; --bub-page: #6b7280;
  --ph-in: #efefef; --ph-note: #f5f5f5; --ph-out: #3797f0;
  --switch-off: #d1d5db; --done-num: #d1d5db; --done-chip-bg: #e5e7eb; --done-chip-ink: #4b5563; --dot-off: #9ca3af;
  --shadow: 0 10px 30px rgba(15, 17, 22, .08); --backdrop: rgba(15, 17, 22, .45);
  --money: #1f8a4c; --money-bg: #e8f5ec; --fl-canvas: #f4f4f4; --fl-node: #fff; --fl-bubble: #ececec; --fl-btn: #d2d2d2; --fl-stat: #3b82f6; --fl-trig: #dcfce7; --fl-trig-line: #bbf7d0; --fl-wire: #8a94a6; --chart-in: #1f8a4c; --chart-out: #dc2626;
  --r: 10px;
}
/* Karanlık tema: gözü yormayan lacivert-siyah zemin, yumuşak kontrast */
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0e1320; --panel: #151c2b; --ink: #e5e8ef; --ink2: #c8cdd8; --muted: #8d96aa;
  --line: #243048; --line2: #1d2638; --line-hover: #3a4662;
  --soft: #1d2537; --soft2: #192132; --hover-bg: #1d2537; --sel-bg: rgba(109, 109, 248, .10);
  --side: #090d16; --side-ink: #c3c8d4; --accent: #6d6df8; --accent-soft: rgba(109, 109, 248, .2);
  --ok: #3cc77a; --warn: #f0a23a; --bad: #f05656;
  --ok-bg: rgba(60, 199, 122, .14); --warn-bg: rgba(240, 162, 58, .14); --bad-bg: rgba(240, 86, 86, .14);
  --ig-bg: rgba(214, 41, 118, .18); --fb-bg: rgba(24, 119, 242, .2);
  --pill-ink: #c8cdd8; --chip-ink: #b9bbff; --chip2-bg: rgba(109, 109, 248, .14); --chip2-line: rgba(109, 109, 248, .35);
  --var-bg: rgba(250, 204, 21, .14); --var-ink: #f2d27a;
  --note-bg: rgba(250, 204, 21, .06); --note-line: rgba(250, 204, 21, .3); --note-ink: #e3d3a0; --note-strong: #f2d27a;
  --sage-ink: #86cdb0; --sage-bg: rgba(74, 148, 120, .18);
  --av-bg: #263046; --av-ink: #c8cdd8; --bub-bot: #2c3448; --bub-page: #3a4458;
  --ph-in: #222b3d; --ph-note: #1d2537;
  --switch-off: #3a4662; --done-num: #3a4662; --done-chip-bg: #222b3d; --done-chip-ink: #aab2c3; --dot-off: #5b6478;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35); --backdrop: rgba(3, 6, 12, .65);
  --money: #85bb65; --money-bg: rgba(133, 187, 101, .12); --fl-canvas: #0b101c; --fl-node: #151c2b; --fl-bubble: #252d3d; --fl-btn: #39435a; --fl-stat: #6aa8ff; --fl-trig: rgba(34, 197, 94, .14); --fl-trig-line: rgba(34, 197, 94, .3); --fl-wire: #6b7488; --chart-in: #36a98a; --chart-out: #d94f4f;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }


a { color: var(--accent); }

/* Tema geçişi: tarayıcı destekliyorsa kaydıraçtan yayılan dairesel geçiş, değilse yumuşak renk geçişi */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-fade, html.theme-fade * { transition: background-color .45s ease, border-color .45s ease, color .45s ease !important; }

.layout { display: grid; grid-template-columns: 220px 1fr; height: 100vh; }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; padding: 18px 12px; gap: 6px; }
.brand { color: #fff; font-weight: 700; font-size: 16px; padding: 4px 13px 16px; letter-spacing: .2px; }
.brand small { display: block; font-weight: 400; color: #7d828c; font-size: 12px; }
/* Sol menü: tıklanabilir her öğe 4px yuvarlatılmış bir balon */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 4px; cursor: pointer; text-decoration: none;
  color: var(--side-ink); background: #1d2026; border: 1px solid #2a2e37;
  transition: background .12s, border-color .12s, color .12s;
}
:root[data-theme=dark] .nav { background: #121827; border-color: #1f2840; }
.nav:hover { background: #252932; border-color: #3a3f4b; color: #fff; }
.nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* Üzerine gelince: hafifçe büyür ve soldan sağa dolar; ayrılınca renk sağa doğru çekilir */
.nav.fx { position: relative; overflow: hidden; isolation: isolate; transition: transform .18s ease, color .4s, border-color .4s; }
.nav.fx::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--accent));
  transform: scaleX(0); transform-origin: right; transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}
.nav.fx:hover { transform: scale(1.03); color: #fff; border-color: var(--fill, var(--accent)); }
.nav.fx:hover::before { transform: scaleX(1); transform-origin: left; }
.nav.fx.on::before { transform: scaleX(1); }
.nav.out { --fill: var(--bad); }
.nav.set { --fill: var(--sage); } /* yumuşak, rahatlatıcı adaçayı yeşili */
.nav.set.on { background: var(--sage); border-color: var(--sage); }

/* Menü ikonları */
.nav-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ico { flex: 0 0 18px; width: 18px; height: 18px; display: block; }
.ico svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ico svg * { transform-box: fill-box; }
.nav:not(.on) .ico { color: #8d929d; transition: color .2s; }
.nav:hover .ico { color: #fff; }

.nav:hover .ico-dashboard .roof { animation: ico-roof .55s ease-out; }
.nav:hover .ico-dashboard .door { animation: ico-door-in .4s .25s ease-out backwards; }
@keyframes ico-roof { 0% { transform: translateY(0); } 35% { transform: translateY(-3.5px); } 70% { transform: translateY(.8px); } 100% { transform: translateY(0); } }
@keyframes ico-door-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ico-dashboard .door { transform-origin: bottom; }

.nav:hover .ico-inbox .d1 { animation: ico-dot .5s ease-in-out; }
.nav:hover .ico-inbox .d2 { animation: ico-dot .5s .12s ease-in-out; }
.nav:hover .ico-inbox .d3 { animation: ico-dot .5s .24s ease-in-out; }
@keyframes ico-dot { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-3px); } }
.ico-inbox circle { stroke-width: 1.6; }

.nav:hover .ico-automations .zap { animation: ico-zap .5s ease-in-out; }
@keyframes ico-zap {
  0% { transform: scale(1) rotate(0); fill: transparent; }
  25% { transform: scale(1.2) rotate(-12deg); fill: currentColor; }
  50% { transform: scale(.95) rotate(8deg); fill: transparent; }
  75% { transform: scale(1.08) rotate(-4deg); fill: currentColor; }
  100% { transform: scale(1) rotate(0); fill: transparent; }
}
.ico-automations .zap { transform-origin: center; }

.nav:hover .ico-contacts .p1 { animation: ico-hop .45s ease-out; }
.nav:hover .ico-contacts .p2 { animation: ico-hop .45s .12s ease-out; }
@keyframes ico-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } 70% { transform: translateY(1px); } }

.nav:hover .ico-accounts .l1 { animation: ico-link-a .6s ease-in-out; }
.nav:hover .ico-accounts .l2 { animation: ico-link-b .6s ease-in-out; }
@keyframes ico-link-a { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(2.5px, -2.5px); } }
@keyframes ico-link-b { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-2.5px, 2.5px); } }

.ico-logs .hand { transform-box: view-box; transform-origin: 12px 12px; }
.nav:hover .ico-logs .hand { animation: ico-rewind .7s cubic-bezier(.4, 0, .2, 1); }
@keyframes ico-rewind { from { transform: rotate(0); } to { transform: rotate(-360deg); } }

.ico-settings .gear { transform-box: view-box; transform-origin: 12px 12px; }
.nav:hover .ico-settings .gear { animation: ico-gear 1.1s cubic-bezier(.45, 0, .25, 1); }
@keyframes ico-gear { from { transform: rotate(0); } to { transform: rotate(180deg); } }

.ico-team .shield { transform-origin: center; }
.nav:hover .ico-team .shield { animation: ico-shield .5s ease-out; }
@keyframes ico-shield { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.16); } }
.ico-team .check { stroke-dasharray: 10; }
.nav:hover .ico-team .check { animation: ico-check .45s .1s ease-out backwards; }
@keyframes ico-check { from { stroke-dashoffset: 10; } to { stroke-dashoffset: 0; } }

.ico-comments .bubble { transform-origin: 20% 90%; }
.nav:hover .ico-comments .bubble { animation: ico-bubble .55s ease-in-out; }
@keyframes ico-bubble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 65% { transform: rotate(6deg); } }

.nav:hover .ico-apps rect { animation: ico-app .45s ease-out backwards; }
.nav:hover .ico-apps .a2 { animation-delay: .07s; }
.nav:hover .ico-apps .a3 { animation-delay: .14s; }
.nav:hover .ico-apps .a4 { animation-delay: .21s; }
.ico-apps rect { transform-origin: center; }
@keyframes ico-app { from { transform: scale(.4); opacity: .3; } to { transform: scale(1); opacity: 1; } }

.nav:hover .ico-logout .arrow { animation: ico-exit .6s ease-in-out; }
.nav:hover .ico-logout .door { animation: ico-door .6s ease-in-out; }
@keyframes ico-exit {
  0% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(7px); opacity: 0; }
  46% { transform: translateX(-5px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes ico-door { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(-1.5px); } }

@media (prefers-reduced-motion: reduce) {
  .nav.fx, .nav.fx::before { transition: none; }
  .nav.fx:hover { transform: none; }
  .nav:hover .ico * { animation: none !important; }
}
/* Hesap balonu (en üstte, diğerlerinden ayrık) */
.nav.acct { justify-content: flex-start; gap: 10px; padding: 9px 10px; background: #22252d; border-color: #343946; }
:root[data-theme=dark] .nav.acct { background: #161d2e; border-color: #26304a; }
.acct-av {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 4px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6d6df8, #4a9478); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .3px;
  transition: transform .25s cubic-bezier(.3, 1.4, .6, 1);
}
.nav.acct:hover .acct-av { transform: rotate(-6deg) scale(1.06); }
.acct-txt { display: grid; min-width: 0; line-height: 1.25; }
.acct-nm { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-sub { font-size: 11.5px; color: #8d929d; }
.nav.acct:hover .acct-sub, .nav.acct.on .acct-sub { color: rgba(255, 255, 255, .8); }

/* Tema kaydıracı: solda ay (karanlık), sağda güneş (aydınlık); yarım genişlikte bir topuz akarak kayar */
.theme-tg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 36px; padding: 0; margin: 8px 0 12px;
  border-radius: 4px; border: 1px solid #2a2e37; background: #1d2026; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: border-color .3s, background .3s;
}
:root[data-theme=dark] .theme-tg { background: #121827; border-color: #1f2840; }
.theme-tg:hover { border-color: #3a3f4b; }
.theme-tg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tg-knob {
  position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 50%; right: 3px; border-radius: 3px;
  background: linear-gradient(135deg, #ffd88a, #f5b955 60%, #f0a54a);
  box-shadow: 0 2px 10px rgba(245, 185, 85, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
  /* Sağa giderken önce sağ kenar, ardından sol kenar yetişir: akan bir sıvı gibi uzayıp toplanır */
  transition: right .42s cubic-bezier(.65, 0, .35, 1), left .42s cubic-bezier(.65, 0, .35, 1) .13s, background .5s, box-shadow .5s;
}
:root[data-theme=dark] .tg-knob {
  left: 3px; right: 50%;
  background: linear-gradient(135deg, #3a3f9e, #262c6e 60%, #1b2150);
  box-shadow: 0 2px 12px rgba(80, 90, 220, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: left .42s cubic-bezier(.65, 0, .35, 1), right .42s cubic-bezier(.65, 0, .35, 1) .13s, background .5s, box-shadow .5s;
}
.tg-opt { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600; color: #7d828c; transition: color .4s; }
.tg-opt svg { width: 16px; height: 16px; overflow: visible; }
.tg-opt svg * { transform-box: fill-box; }
.tg-opt.sun { color: #4a3510; }
:root[data-theme=dark] .tg-opt.sun { color: #7d828c; }
:root[data-theme=dark] .tg-opt.moon { color: #fdf0c8; }
.tg-stars circle { opacity: 0; fill: currentColor; stroke: none; }
:root[data-theme=dark] .tg-stars circle { animation: tg-twinkle 2.4s ease-in-out infinite; }
:root[data-theme=dark] .tg-stars circle:nth-child(2) { animation-delay: .8s; }
:root[data-theme=dark] .tg-stars circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes tg-twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.tg-moon { transform-origin: center; }
:root[data-theme=dark] .tg-moon { animation: tg-moon-in .7s cubic-bezier(.3, 1.4, .6, 1); }
@keyframes tg-moon-in { from { transform: rotate(-70deg) scale(.6); } to { transform: none; } }
.tg-rays { transform-origin: center; }
:root:not([data-theme=dark]) .tg-rays { animation: tg-rays-in .8s cubic-bezier(.3, 1.2, .6, 1); }
@keyframes tg-rays-in { from { transform: rotate(-90deg) scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
.theme-tg:hover .tg-opt:not(.sun) .tg-moon, :root[data-theme=dark] .theme-tg:hover .tg-moon { animation: tg-wobble .6s ease-in-out; }
:root:not([data-theme=dark]) .theme-tg:hover .tg-rays { animation: tg-spin 1.2s cubic-bezier(.45, 0, .25, 1); }
@keyframes tg-wobble { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-14deg); } 65% { transform: rotate(8deg); } }
@keyframes tg-spin { to { transform: rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .tg-knob, :root[data-theme=dark] .tg-knob { transition: none; } .tg-opt svg * { animation: none !important; } }

/* Marka balonu ve açılır listesi */
.brand-sw { position: relative; margin-bottom: 14px; }
button.nav { width: 100%; font: inherit; text-align: left; }
button.nav.brand-btn { color: #fff; font-weight: 700; letter-spacing: .4px; padding: 11px 12px; }
.brand-lbl { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bm-item.cur { border-color: var(--accent); }
.brand-lbl .hov { display: none; }
.brand-btn:hover .def, .brand-sw.open .def { display: none; }
.brand-btn:hover .hov, .brand-sw.open .hov { display: inline; }
.brand-btn .chev { color: #9095a0; font-size: 15px; line-height: 1; transition: transform .15s; }
.brand-sw.open .brand-btn { border-color: var(--accent); }
.brand-sw.open .chev { transform: rotate(180deg); color: #fff; }
.brand-menu {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 300px;
  background: #1a1d23; border: 1px solid #2f3440; border-radius: 4px; padding: 8px;
  display: grid; gap: 6px; box-shadow: 0 12px 28px rgba(0,0,0,.45);
}
:root[data-theme=dark] .brand-menu { background: #111726; border-color: #26304a; }
.brand-menu[hidden] { display: none; }
.bm-title { display: flex; justify-content: space-between; color: #7d828c; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 2px 4px; }
.bm-title span { color: var(--side-ink); }
.bm-item { justify-content: flex-start; padding: 7px 9px; }
.bm-av { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; }
.bm-av.ig { background: var(--ig); }
.bm-av.fb { background: var(--fb); }
.bm-txt { min-width: 0; flex: 1; display: grid; }
.bm-nm { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-sub { color: #7d828c; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-av { overflow: hidden; }
.bm-av img, .bc-av img { width: 100%; height: 100%; object-fit: cover; }
.bm-plat { display: flex; gap: 3px; }
.bm-p { font-size: 9.5px; font-weight: 700; padding: 1px 4px; border-radius: 3px; color: #fff; }
.bm-p.ig { background: var(--ig); }
.bm-p.fb { background: var(--fb); }
.bm-p.off { background: transparent; color: #4b5060; border: 1px solid #353a45; }
.bm-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 2px; background: #4b5060; }
.bm-dot.on { background: var(--ok); }
.bm-add { justify-content: center; color: #a5a8ff; border-style: dashed; }
.bm-empty { color: #7d828c; font-size: 12.5px; padding: 6px 4px; }
.nav .badge { background: var(--bad); color: #fff; border-radius: 4px; font-size: 11px; font-weight: 600; padding: 1px 6px; }
.nav.on .badge { background: #fff; color: var(--accent); }
.side .spacer { flex: 1; }
.main { overflow: auto; padding: 24px 28px; }
.main.flush { padding: 0; overflow: hidden; }

h1 { font-size: 20px; margin: 0 0 4px; }
.sub { color: var(--muted); margin: 0 0 20px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.head .sub { margin: 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.grid { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-bottom: 18px; }
.stat .n { font-size: 26px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 12.5px; }

.btn { border: 1px solid var(--line); background: var(--panel); padding: 7px 13px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--line-hover); }
a.btn { display: inline-block; text-decoration: none; color: inherit; }
a.btn.primary { color: #fff; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }

label.f { display: block; margin-bottom: 12px; }
label.f > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=email], input[type=tel], input[type=date], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--panel);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.row > .auto { flex: 0 0 auto; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
tr:last-child td { border-bottom: 0; }
.tbl { padding: 0; overflow: hidden; }

.pill { display: inline-block; font-size: 11.5px; padding: 2px 8px; border-radius: 20px; background: var(--soft); color: var(--pill-ink); margin: 1px 2px 1px 0; }
.pill.ig { background: var(--ig-bg); color: var(--ig); }
.pill.fb { background: var(--fb-bg); color: var(--fb); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
:root[data-theme=dark] .pill.ig { color: #f06aa8; }
:root[data-theme=dark] .pill.fb { color: #5aa2ff; }
.muted { color: var(--muted); }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: var(--soft); padding: 2px 6px; border-radius: 5px; word-break: break-all; }

/* Markalar sayfası */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.brand-card { padding: 0; overflow: hidden; }
.bc-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.bc-nm { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-av { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: hidden; }
.bc-av.sm { flex-basis: 30px; width: 30px; height: 30px; font-size: 13px; }
.bc-av.ig { background: var(--ig); }
.bc-av.fb { background: var(--fb); }
.acc-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line2); }
.acc-row:last-child { border-bottom: 0; }
.acc-row .pill { flex: 0 0 74px; text-align: center; }
.acc-row.missing { background: var(--soft2); }
.acc-nm { flex: 1; min-width: 0; }
.acc-act { white-space: nowrap; font-size: 13px; }
.mono-sm { font-family: ui-monospace, monospace; font-size: 11.5px; }

.import-card { margin-bottom: 12px; max-width: 760px; }
.import-card summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 4px; }
.import-card summary::-webkit-details-marker { display: none; }
.import-card summary::before { content: '▸'; color: var(--muted); width: 14px; transition: transform .15s; }
.import-card[open] summary::before { transform: rotate(90deg); }
.import-card[open] summary { margin-bottom: 8px; }
.howto { margin: 0 0 14px; padding-left: 20px; }
.howto li { margin-bottom: 6px; }
.perm { display: inline-block; margin: 2px 4px 2px 0; }
.pick-head { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 8px; }
.pick-list { display: grid; gap: 6px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--panel); }
.pick:hover { border-color: var(--line-hover); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); }
.pick-txt { flex: 1; min-width: 0; display: grid; }
.pick-txt .muted { font-size: 12.5px; }

/* Otomasyonlar */
.back { display: inline-block; margin-bottom: 10px; font-size: 13px; text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; padding: 3px 9px; border-radius: 4px; background: var(--accent-soft); color: var(--chip-ink); font-weight: 500; margin: 2px 4px 2px 0; }
.chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 15px; line-height: 1; opacity: .6; }
.chip button:hover { opacity: 1; }
.chip.ghost { background: var(--panel); border: 1px dashed var(--line-hover); color: var(--muted); cursor: pointer; }
.chip.ghost:hover { border-color: var(--accent); color: var(--accent); }
.chip.btnchip { background: var(--chip2-bg); color: var(--accent); border: 1px solid var(--chip2-line); }
:root[data-theme=dark] .chip.btnchip { color: var(--chip-ink); }

.live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 3px 10px 3px 8px; border-radius: 4px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: live-pulse 1.6s infinite; }
.live.off { color: var(--muted); background: var(--soft); }
.live.off i { background: var(--dot-off); animation: none; }
.live.big { font-size: 20px; padding: 10px 18px 10px 14px; gap: 12px; }
.live.big i { width: 14px; height: 14px; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

.auto-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 12px; }
.auto-card { display: grid; gap: 10px; }
.auto-card.off { opacity: .75; }
.ac-top, .ac-foot, .ac-btn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ac-sp { flex: 1; }
.ac-msg { white-space: pre-wrap; color: var(--ink2); background: var(--soft2); border-radius: 4px; padding: 9px 11px; max-height: 84px; overflow: hidden; }
.ac-url { font-size: 12.5px; word-break: break-all; }
.ac-foot { border-top: 1px solid var(--line); padding-top: 10px; font-size: 12.5px; flex-wrap: nowrap; }
.ac-meta { flex: 1; min-width: 0; }
.ac-foot .btn { flex: 0 0 auto; }
.var { background: var(--var-bg); color: var(--var-ink); border-radius: 3px; padding: 0 4px; font-size: .92em; }
.auto-empty { text-align: center; padding: 40px 20px; display: grid; justify-items: center; gap: 8px; }
.auto-empty h2 { margin: 6px 0 0; font-size: 18px; }
.auto-empty p { max-width: 420px; margin: 0 0 8px; }
.ico.big { width: 40px; height: 40px; flex-basis: 40px; color: var(--accent); }
.adv-links { margin-top: 22px; }

.ctr { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 10px; border-radius: 4px; background: var(--chip2-bg); color: var(--accent); cursor: default; outline: none; transition: background .2s, box-shadow .2s; }
:root[data-theme=dark] .ctr { color: var(--chip-ink); }
.ctr-l { font-size: 11px; font-weight: 700; letter-spacing: .5px; opacity: .75; }
.ctr strong { font-size: 15px; }
.ctr.na { background: var(--soft); color: var(--muted); }
.ctr:hover, .ctr:focus-visible { box-shadow: 0 0 0 2px var(--accent-soft); }
.ctr-tip {
  position: absolute; z-index: 30; top: calc(100% + 10px); right: -8px; width: 250px;
  background: #1b1d22; color: #e5e7eb; border-radius: 4px; padding: 12px 14px; box-shadow: 0 12px 28px rgba(0,0,0,.25);
  display: grid; gap: 7px; font-size: 13px; text-align: left;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none;
}
:root[data-theme=dark] .ctr-tip, :root[data-theme=dark] .ctr-tip::before { background: #0a0f19; }
:root[data-theme=dark] .ctr-tip { border: 1px solid #26304a; }
.ctr-tip::before { content: ''; position: absolute; top: -5px; right: 22px; width: 10px; height: 10px; background: #1b1d22; transform: rotate(45deg); }
.ctr:hover .ctr-tip, .ctr:focus .ctr-tip { opacity: 1; visibility: visible; transform: translateY(0); }
.tip-t { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: #9095a0; }
.tip-row { display: flex; justify-content: space-between; gap: 12px; }
.tip-row strong { color: #fff; }
.tip-row.acc strong { color: #a5a8ff; }
.tip-row.dim { border-top: 1px solid #2f3440; padding-top: 7px; color: #9095a0; font-size: 12px; }
.tip-row.dim strong { color: #c9ccd3; font-weight: 500; }
.tip-bar { height: 6px; background: #2f3440; border-radius: 3px; overflow: hidden; }
.tip-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.tip-note { font-size: 12px; color: #9095a0; line-height: 1.4; }

.switch { width: 40px; height: 22px; border-radius: 4px; border: 0; background: var(--switch-off); position: relative; cursor: pointer; transition: background .2s; padding: 0; }
.switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 3px; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch.on { background: var(--ok); }
.switch.on span { transform: translateX(18px); }

/* Sihirbaz */
.wz { display: grid; grid-template-columns: minmax(0, 640px) 300px; gap: 24px; align-items: start; }
.wz-steps { display: grid; gap: 10px; }
.wz-step { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; transition: background .2s, border-color .2s; }
.wz-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.wz-num { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--soft); color: var(--muted); }
.wz-step.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wz-step.active .wz-num { background: var(--accent); color: #fff; }
.wz-step.active .wz-head strong { font-size: 15px; }
.wz-body { padding: 2px 14px 14px 50px; }
.wz-step.done { background: var(--soft2); border-color: var(--line); color: var(--muted); cursor: pointer; }
.wz-step.done:hover { border-color: var(--line-hover); }
.wz-step.done .wz-num { background: var(--done-num); color: #fff; }
.wz-step.done .wz-head { padding-bottom: 4px; }
.wz-step.done .chip { background: var(--done-chip-bg); color: var(--done-chip-ink); border-color: transparent; }
.wz-edit { margin-left: auto; font-size: 12.5px; color: var(--accent); }
.wz-sum { padding: 0 14px 12px 50px; font-size: 13px; }
.sum-text { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-step.todo { opacity: .55; }
.wz-err { color: var(--bad); font-size: 13px; min-height: 0; }
.wz-err:not(:empty) { margin-bottom: 8px; }
.wz-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wz-next { padding: 8px 18px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; background: var(--panel); cursor: text; }
.chips:focus-within { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.chips input { flex: 1; min-width: 120px; border: 0 !important; outline: 0 !important; padding: 4px !important; }
.sugg { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: -4px 0 6px; font-size: 12.5px; }
.f-l { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.opt:hover { border-color: var(--line-hover); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--sel-bg); }
.opt input { margin-top: 3px; }
.opt > span { display: grid; gap: 2px; font-size: 13px; }
.opt .muted { font-size: 12px; }
.warn-box { border: 1px solid var(--note-line); background: var(--note-bg); border-radius: 4px; padding: 10px 12px; margin-bottom: 12px; font-size: 13px; }
.warn-box strong { color: var(--note-strong); }
.warn-box p { margin: 4px 0 0; color: var(--note-ink); line-height: 1.45; }
.reply-list { display: grid; gap: 8px; margin-bottom: 10px; }
.reply-row { display: flex; align-items: center; gap: 10px; }
.reply-n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; }
:root[data-theme=dark] .reply-n { color: var(--chip-ink); }
.reply-row:focus-within .reply-n { background: var(--accent); color: #fff; }
.ac-replies { font-size: 13px; }
.ph-comment { display: grid; gap: 6px; font-size: 13px; }
.ph-c { line-height: 1.4; }
.ph-c.reply { margin-left: 22px; padding-left: 10px; border-left: 2px solid var(--line); }
.ph-comment .ph-note { justify-self: center; margin-top: 6px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 8px; }
.count { font-size: 12px; color: var(--muted); }
.check { font-size: 13px; cursor: pointer; }
.wz-done { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: grid; gap: 14px; justify-items: start; animation: wz-in .4s ease-out; }
.wz-done p { margin: 0; font-size: 15px; }
.wz-done-sum { width: 100%; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.wz-done-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; font-size: 13px; align-items: baseline; }
@keyframes wz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Önizleme */
.wz-side { position: sticky; top: 0; }
.wz-side-t { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 8px; }
.phone { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.ph-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.ph-av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.ph-msgs { padding: 16px 12px 22px; display: grid; gap: 8px; min-height: 240px; align-content: start; background: var(--panel); }
.ph-in { justify-self: start; background: var(--ph-in); padding: 8px 12px; border-radius: 18px; max-width: 80%; font-size: 13.5px; }
.ph-note { justify-self: center; font-size: 11.5px; color: var(--muted); background: var(--ph-note); padding: 4px 10px; border-radius: 4px; }
.ph-out { justify-self: end; max-width: 85%; background: var(--ph-out); color: #fff; border-radius: 18px; overflow: hidden; font-size: 13.5px; }
.ph-txt { padding: 8px 12px; white-space: pre-wrap; word-wrap: break-word; }
.ph-btn { border-top: 1px solid rgba(255, 255, 255, .3); padding: 8px 12px; text-align: center; font-weight: 600; }
.ph-ph { opacity: .55; font-style: italic; }
@media (max-width: 1000px) { .wz { grid-template-columns: 1fr; } .wz-side { position: static; max-width: 340px; } }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } .wz-body { padding-left: 14px; } .wz-sum { padding-left: 14px; } .wz-done-row { grid-template-columns: 1fr; gap: 2px; } }

/* Ayarlar: solda gruplu alt menü, sağda başlık | ayar | açıklama satırları */
.settings { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
.snav { position: sticky; top: 0; display: grid; gap: 18px; }
.snav-g { display: grid; gap: 2px; }
.snav-t { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.snav-i { display: flex; align-items: center; gap: 8px; padding: 5px 8px; margin-left: -8px; border-radius: 4px; color: var(--muted); text-decoration: none; font-size: 13px; transition: background .15s, color .15s; }
.snav-i:hover { background: var(--hover-bg); color: var(--ink); }
.snav-i.on { color: var(--sage-ink); background: var(--sage-bg); font-weight: 600; }
.snav-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.snav-dot.ig { background: radial-gradient(circle at 30% 110%, #fdc468 0%, #df4996 45%, #7a3cc4 100%); }
.snav-dot.fb { background: var(--fb); }
.scard-t { font-size: 17px; margin: 0 0 12px; }
.scard { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.srow { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr); gap: 24px; padding: 20px 22px; border-top: 1px solid var(--line); align-items: start; }
.srow:first-child { border-top: 0; }
.srow-t { font-weight: 600; padding-top: 4px; }
.srow-d { color: var(--muted); font-size: 12.5px; line-height: 1.5; padding-top: 4px; }
.srow-c { min-width: 0; }
.srow-stack { display: grid; gap: 8px; max-width: 340px; }
.srow-check { display: flex; align-items: center; gap: 6px; }
.srow-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.srow-copy code { flex: 1; min-width: 0; padding: 6px 8px; }
.srow-acc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.snav-badge { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 3px; background: var(--soft); color: var(--muted); }
.snav-badge.ok { background: var(--ok-bg); color: var(--ok); }
.sfoot { display: flex; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--soft2); }
.cur-val { font-size: 13.5px; }
.dots { letter-spacing: 2px; }
.codes { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--note-line); background: var(--note-bg); border-radius: 4px; }
.codes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.codes-grid code { text-align: center; font-size: 14px; padding: 6px; background: var(--panel); }
.codes-warn { margin: 0; font-size: 12.5px; color: var(--note-strong); line-height: 1.45; }
.codes .btn { justify-self: start; }
.tf-steps { margin: 0; font-size: 13px; }
/* QR her iki temada beyaz zeminde kalır (telefon kameraları için) */
.tf-qr { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 4px; padding: 6px; background: #fff; image-rendering: pixelated; }
.tf-manual summary { cursor: pointer; font-size: 13px; color: var(--accent); }
.tf-manual[open] { display: grid; gap: 6px; }
.code-input { font-family: ui-monospace, monospace; font-size: 18px !important; letter-spacing: 3px; text-align: center; }
.phone-ico { width: 18px; height: 18px; color: var(--muted); display: inline-block; }
.phone-ico svg { width: 100%; height: 100%; }
@media (max-width: 1100px) { .srow { grid-template-columns: 1fr 1.4fr; } .srow-d { grid-column: 1 / -1; padding-top: 0; } }
@media (max-width: 760px) {
  .settings { grid-template-columns: 1fr; gap: 14px; }
  .snav { position: static; display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
  .snav-g { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
  .snav-t { display: none; }
  .snav-i { white-space: nowrap; margin-left: 0; }
  .srow { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
}

/* Ekip */
.tbl-scroll { overflow-x: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 13px; }
.head-btns { display: flex; gap: 8px; flex: 0 0 auto; }
.team-add { justify-content: flex-end; margin-bottom: 10px; }
.perm-grid th, .perm-grid td { padding: 7px 10px; text-align: center; vertical-align: middle; }
.perm-grid th:first-child, .perm-grid td:first-child { text-align: left; }
.perm-yes { color: var(--ok); font-weight: 700; }
.perm-no { color: var(--muted); }
.filters { margin-bottom: 12px; max-width: 560px; }
.brands.single { grid-template-columns: minmax(0, 620px); }
.log-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.log-tools input { width: 150px; padding: 4px 8px; }
.empty-card { text-align: center; color: var(--muted); padding: 32px; }

/* Hazır mesajlar (sohbet sağ sütunu) */
.tabs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.info-body h3:first-of-type { margin-top: 14px; }
.rp-new { display: grid; gap: 6px; margin-bottom: 12px; }
.rp-new .btn { justify-self: end; }
.rp-list { display: grid; gap: 8px; }
.rp-bubble { display: grid; gap: 6px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft2); }
.rp-bubble:hover { border-color: var(--line-hover); }
.rp-text { white-space: pre-wrap; word-break: break-word; font-size: 13px; line-height: 1.45; }
.rp-tools { display: flex; justify-content: flex-end; gap: 2px; }
.rp-actions { display: flex; justify-content: flex-end; gap: 6px; }
.rp-icon { width: 26px; height: 26px; padding: 4px; border: 0; background: none; border-radius: 4px; color: var(--muted); cursor: pointer; transition: color .15s, background .15s; }
.rp-icon svg { width: 100%; height: 100%; display: block; }
.rp-icon:hover { background: var(--hover-bg); color: var(--ink); }
.rp-icon.del:hover { color: var(--bad); }
.rp-icon.copy { color: var(--accent); }
:root[data-theme=dark] .rp-icon.copy { color: var(--chip-ink); }
.rp-icon.done, :root[data-theme=dark] .rp-icon.done { color: var(--ok); }
.rp-empty { font-size: 12.5px; line-height: 1.5; }

/* Yorumlar */
.cmt-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 10px; margin-bottom: 12px; max-width: 860px; }
.cmts { display: grid; gap: 10px; max-width: 860px; }
.cmt { display: grid; gap: 8px; padding: 12px 14px; border-radius: 4px; cursor: default; }
.cmt.unread { border-color: var(--chip2-line); cursor: pointer; }
.cmt.flagged { box-shadow: inset 3px 0 0 #eab308; }
.cmt-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmt-top .av { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
.cmt-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cmt-time { font-size: 12px; white-space: nowrap; }
.cmt-text { white-space: pre-wrap; word-break: break-word; }
.cmt-text.gone { color: var(--muted); text-decoration: line-through; }
.cmt-mod { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.cmt-err { color: var(--bad); }
.cmt-filter { max-width: 860px; }
.cmt-filter[open] { display: grid; gap: 6px; }
.cmt-reply { font-size: 13px; padding: 7px 10px; background: var(--soft2); border-left: 2px solid var(--line-hover); border-radius: 4px; }
@media (max-width: 760px) { .cmt-tools { grid-template-columns: 1fr; } }

/* Uygulama seçimi: girişten sonraki ilk ekran */
.apps-page { min-height: 100vh; display: flex; flex-direction: column; padding: 16px 24px; }
.apps-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.apps-top .theme-tg { width: 190px; margin: 0; }
.apps-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding-block: 32px; }
.apps-main h1 { font-size: 26px; text-align: center; margin: 0; }
.apps-grid { width: min(760px, 100%); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.app-card { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 104px; padding: 18px; text-align: left; text-decoration: none; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color .2s, transform .18s, box-shadow .2s; }
.app-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.app-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-logo { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 700; background: linear-gradient(135deg, #6d6df8, #4a9478); }
.app-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.app-txt strong { font-size: 16px; }
.app-txt .muted { font-size: 13px; line-height: 1.4; }
.app-go { color: var(--muted); font-size: 18px; transition: transform .18s, color .2s; }
.app-card:hover .app-go { color: var(--accent); transform: translateX(3px); }

/* Ledgerly: satış ve net dolar yeşili, giderler kırmızı */
.ledger-month { width: 170px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; background: var(--panel); }
.ledger-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.ledger-card { border-radius: 4px; border-left: 4px solid currentColor; display: grid; gap: 6px; align-content: start; }
.ledger-card .l-title { color: var(--muted); font-size: 13px; font-weight: 600; }
.ledger-card .l-value { font-size: 24px; font-weight: 700; letter-spacing: -.2px; word-break: break-word; }
.ledger-card.income { color: var(--money); }
.ledger-card.expense { color: var(--bad); }
.ledger-card.net { grid-column: 1 / -1; background: var(--money-bg); }
.ledger-card.net.expense { background: var(--bad-bg); }
.ledger-card.net .l-value { font-size: 30px; }
.ledger-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ledger-card.pending { color: var(--warn); }
.ledger-card .l-change { color: var(--muted); font-size: 12.5px; }
.ledger-card .l-change.good { color: var(--money); }
.ledger-card .l-change.bad { color: var(--bad); }
.ov-empty h2 { margin: 0 0 6px; font-size: 18px; color: var(--ink); }
.ov-empty p { margin: 0 0 16px; }
.ov-link { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.ov-link:hover { text-decoration: underline; }
.ledger-sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 12px; }
.ledger-sec-row .ledger-sec { margin: 0; }
.ledger-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ledger-mini .card { padding: 12px 14px; border-radius: 4px; }
.ledger-mini .l-title { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.ledger-mini .l-amt { color: var(--bad); font-weight: 700; font-size: 16px; word-break: break-word; }
.tr-card { border-radius: 4px; }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tr-head h2 { margin: 0; font-size: 16px; }
.tr-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--ink2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.sw.in { background: var(--chart-in); }
.sw.out { background: var(--chart-out); }
.tr-plot { position: relative; min-height: 210px; touch-action: pan-y; }
.tr-svg { display: block; max-width: 100%; }
.tr-grid { stroke: var(--line); stroke-width: 1; }
.tr-ax { fill: var(--muted); font-size: 11px; }
.tr-in { fill: var(--chart-in); }
.tr-out { fill: var(--chart-out); }
.tr-hl { fill: transparent; }
.tr-hl.on { fill: var(--line); opacity: .45; }
.tr-tip { position: absolute; top: 0; left: 0; display: none; pointer-events: none; z-index: 2; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 12.5px; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.tr-tip.on { display: grid; gap: 2px; }
.tr-table { margin-top: 8px; font-size: 13px; }
.tr-table summary { color: var(--muted); cursor: pointer; }
.tr-table .tbl { margin-top: 8px; }
.tx-list { padding: 0; overflow: hidden; border-radius: 4px; }
.tx-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(70px, 140px) 62px 130px; gap: 12px; align-items: center; padding: 11px 16px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.tx-row:last-child { border-bottom: 0; }
.tx-row:hover, .tx-row:focus-visible { background: var(--bg); }
.tx-main { display: grid; min-width: 0; }
.tx-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-sub, .tx-date, .tx-acc { color: var(--muted); font-size: 12.5px; }
.tx-acc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-row .pill { justify-self: start; }
.tx-amt { text-align: right; }
.tx-detail { display: grid; gap: 2px; }
.tx-d-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tx-d-row > :last-child { text-align: right; overflow-wrap: anywhere; }
.btn.danger-fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.confirm-text { margin: 0; color: var(--ink2); }
.f-t { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.f-err { color: var(--bad); font-size: 12.5px; margin-top: 4px; }
.f-err:empty { display: none; }
[aria-invalid=true] { border-color: var(--bad) !important; }
.req { color: var(--bad); }
.tx-type { margin-bottom: 14px; }
.tx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tx-file { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.ledger-foreign { margin: 10px 0 0; }
.tx-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) auto; gap: 10px; align-items: end; margin-bottom: 12px; border-radius: 4px; }
.tx-filters label.f { margin-bottom: 0; min-width: 0; }
.tx-count { margin: 0 0 6px; }
.tx-list.full .tx-row { grid-template-columns: 88px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) 58px 120px; }
.tx-row.tx-hd { color: var(--muted); font-size: 12px; font-weight: 600; cursor: default; }
.tx-row.tx-hd:hover { background: none; }
.tx-row.tx-hd span:last-child { text-align: right; }
.tx-clip { display: inline-block; width: 13px; height: 13px; margin-left: 6px; color: var(--muted); vertical-align: -2px; }
.tx-who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-more { text-align: center; margin-top: 12px; }
.tx-fields input[type=file]::file-selector-button { font: inherit; height: 32px; padding: 0 12px; margin-right: 10px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.tx-fields input[type=file] { padding: 6px; }
.modal-bg.wide .modal { width: min(760px, 100%); }
.pill.mute { background: var(--line); color: var(--muted); }
.inv-filters { grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
.inv-list .tx-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) 88px 104px 130px 92px; }
.tx-inv-amt { display: grid; text-align: right; }
.inv-list .tx-row .pill { justify-self: end; }
.inv-list .tx-hd span:nth-child(5), .inv-list .tx-hd span:last-child { text-align: right; }
.inv-item { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 110px 32px; gap: 6px; align-items: center; margin-bottom: 6px; }
.inv-item-hd { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.inv-item-hd span:nth-child(4), .inv-line { text-align: right; }
.inv-line { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; }
.inv-add { margin: 4px 0 14px; }
.inv-sum { display: grid; gap: 4px; margin: 0 0 14px auto; width: min(320px, 100%); padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; }
.inv-sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink2); }
.inv-sum-row.total, .inv-total { font-weight: 700; font-size: 15px; color: var(--ink); }
.inv-d-items { margin: 8px 0; }
.modal .actions { flex-wrap: wrap; }
@media (max-width: 1100px) { .tx-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tx-list.full .tx-row.tx-hd { display: none; }
  .inv-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inv-list .tx-hd { display: none; }
  .inv-list .tx-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .inv-list .tx-main { grid-column: 1; grid-row: 1; } .inv-list .tx-inv-amt { grid-column: 2; grid-row: 1; }
  .inv-list .tx-who { grid-column: 1; grid-row: 2; } .inv-list .pill { grid-column: 2; grid-row: 2; }
  .inv-list .tx-date { grid-column: 1; grid-row: auto; } .inv-list .inv-due::before { content: 'Son Ödeme: '; }
  .tx-list.full .tx-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .tx-list.full .tx-title { grid-column: 1; grid-row: 1; } .tx-list.full .tx-amt { grid-column: 2; grid-row: 1; }
  .tx-list.full .tx-date { grid-column: 1; grid-row: 2; } .tx-list.full .pill { grid-column: 2; grid-row: 2; justify-self: end; }
  .tx-list.full .tx-sub, .tx-list.full .tx-acc { grid-column: 1; } }
@media (max-width: 1100px) { .ledger-grid.four { grid-template-columns: 1fr 1fr; } .ledger-mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .head:has(.ledger-head) { flex-wrap: wrap; }
  .ledger-head { width: 100%; justify-content: flex-start; }
  .ledger-head select { flex: 1 1 150px; width: auto; }
  .tx-filters, .inv-filters { grid-template-columns: 1fr 1fr; }
  .inv-item { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .inv-item > input:first-child { grid-column: 1 / -1; }
  .inv-item-hd { display: none; }
  .tx-filters:not(.inv-filters) label.f:first-child, .tx-filters > .btn { grid-column: 1 / -1; }
  .inv-item > button { justify-self: end; width: 40px; }
  .tx-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; }
  .tx-main { grid-column: 1; grid-row: 1; }
  .tx-amt { grid-column: 2; grid-row: 1; }
  .tx-date { grid-column: 1; grid-row: 2; }
  .tx-row .pill { grid-column: 2; grid-row: 2; justify-self: end; }
  .tx-acc { grid-column: 1; grid-row: 3; }
  .ledger-mini { grid-template-columns: 1fr 1fr; }
  }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.link-card { border-radius: 4px; display: grid; gap: 8px; }
.link-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-head h2 { margin: 0; font-size: 17px; }
.link-card .sub { margin: 0; }
.link-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.link-warn { margin: 0; padding: 8px 10px; font-size: 12.5px; color: var(--warn); background: var(--warn-bg); border-radius: 4px; }
.link-note { grid-column: 1 / -1; margin: 0; }
.link-steps { margin: 0 0 14px; padding-left: 20px; color: var(--ink2); font-size: 13px; display: grid; gap: 4px; }
@media (max-width: 800px) { .link-grid { grid-template-columns: 1fr; } }
.ledger-gap { height: 14px; }
.rp { position: relative; }
.rp-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font: inherit; font-weight: 600; white-space: nowrap; }
.rp-btn:hover, .rp-btn[aria-expanded=true] { border-color: var(--accent); }
.rp-ico { display: block; width: 16px; height: 16px; color: var(--muted); }
.rp-ico svg { display: block; width: 100%; height: 100%; }
.rp-btn .chev { font-size: 10px; color: var(--muted); }
.rp-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: 318px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.rp-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rp-nav { width: 30px; height: 30px; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-size: 17px; line-height: 1; }
.rp-nav:hover:not(:disabled) { border-color: var(--accent); }
.rp-nav:disabled { opacity: .35; cursor: default; }
.rp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.rp-wd { padding: 4px 0; text-align: center; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.rp-day { height: 38px; color: var(--ink); background: none; border: 0; border-radius: 0; cursor: pointer; font: inherit; font-size: 13px; }
.rp-day:hover:not(:disabled) { outline: 1px solid var(--accent); outline-offset: -1px; border-radius: 4px; }
.rp-day:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rp-day:disabled { color: var(--muted); opacity: .4; cursor: default; }
.rp-day.today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rp-day.in { background: var(--accent-soft); }
.rp-day.in.old { background: var(--line); }
.rp-day.edge { color: #fff; background: var(--accent); border-radius: 4px; font-weight: 700; }
.rp-hint { min-height: 34px; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.rp-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.rp-actions .btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 640px) { .rp, .rp-btn { width: 100%; } .rp-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; } .rp-pop { left: 0; right: auto; width: min(318px, calc(100vw - 32px)); } }
/* Otomasyon akış görünümü */
.fl-list { display: grid; gap: 18px; }
.fl-item { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.fl-item.off .fl-canvas { opacity: .6; }
.fl-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fl-meta { font-size: 12.5px; }
.fl-canvas { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding: 34px 40px; background: var(--fl-canvas); }
.fl-wire { position: absolute; inset: 0; pointer-events: none; }
.fl-wire svg { display: block; overflow: visible; }
.fl-wire path { fill: none; stroke: var(--fl-wire); stroke-width: 2; marker-end: none; }
.fl-node { position: relative; z-index: 1; background: var(--fl-node); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 23, 42, .06); padding: 14px 14px 12px; }
.fl-when { width: 290px; margin-top: 30px; }
.fl-send { width: 300px; }
.fl-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.fl-bolt { width: 18px; height: 18px; }
.fl-bolt svg, .fl-plat svg, .fl-link svg { display: block; width: 100%; height: 100%; }
.fl-trigger { display: flex; gap: 8px; padding: 10px 12px; background: var(--fl-trig); border: 1px solid var(--fl-trig-line); border-radius: 8px; }
.fl-trig-t { font-size: 13px; font-weight: 600; }
.fl-trig-s { margin-top: 2px; color: var(--muted); font-size: 11.5px; line-height: 1.35; }
.fl-plat { flex: 0 0 auto; width: 18px; height: 18px; padding: 2px; color: #fff; border-radius: 5px; }
.fl-plat.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fl-plat.ms { background: linear-gradient(135deg, #00b2ff, #006aff); }
.fl-plat.lg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; }
.fl-out { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; color: var(--muted); font-size: 11.5px; }
.fl-dot { width: 10px; height: 10px; margin-right: -19px; border-radius: 50%; background: var(--fl-wire); border: 2px solid var(--fl-node); box-sizing: content-box; }
.fl-dot.hollow { background: var(--fl-node); border-color: var(--fl-wire); width: 8px; height: 8px; }
.fl-in { position: absolute; left: -6px; top: 26px; width: 0; height: 0; border-left: 7px solid var(--fl-wire); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.fl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.fl-sub { color: var(--muted); font-size: 10.5px; }
.fl-name { font-size: 13px; font-weight: 600; }
.fl-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px; text-align: center; }
.fl-stat strong { display: block; color: var(--fl-stat); font-size: 15px; }
.fl-stat span { color: var(--muted); font-size: 10.5px; line-height: 1.2; }
.fl-bubble { padding: 10px; background: var(--fl-bubble); border-radius: 6px; }
.fl-text { font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.fl-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 7px 10px; background: var(--fl-btn); border-radius: 3px; font-size: 12.5px; font-weight: 600; }
.fl-btn-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-ctr { color: var(--fl-stat); font-size: 11px; font-weight: 600; white-space: nowrap; }
.fl-link { width: 13px; height: 13px; color: var(--fl-stat); flex: 0 0 auto; }
.fl-replies { margin-top: 8px; color: var(--muted); font-size: 11.5px; }
@media (max-width: 760px) {
  .fl-canvas { flex-direction: column; align-items: stretch; gap: 34px; padding: 20px 16px; }
  .fl-when, .fl-send { width: auto; margin-top: 0; }
  .fl-dot { margin-right: 0; }
  .fl-in { left: 50%; top: -6px; border: 0; border-top: 7px solid var(--fl-wire); border-left: 5px solid transparent; border-right: 5px solid transparent; margin-left: -5px; }
  .fl-out { justify-content: center; }
}
.ledger-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ledger-grid.one { grid-template-columns: minmax(0, 1fr); }
a.ledger-card { text-decoration: none; }
a.ledger-card:hover { border-color: currentColor; }
.ledger-card .l-sub { color: var(--muted); font-size: 12.5px; }
.ledger-sec { font-size: 16px; margin: 22px 0 12px; }
.ledger-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ledger-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.ledger-search { flex: 1 1 220px; width: auto; min-width: 0; }
.ledger-tabs { flex: 0 1 330px; min-width: 240px; }
.ledger-actions { text-align: right; white-space: nowrap; }
.ledger-actions .btn + .btn { margin-left: 6px; }
.nw { white-space: nowrap; }
.nav:hover .ico-ltx .up { animation: ico-hop .45s ease-out; }
.nav:hover .ico-ltx .down { animation: ico-hop .45s .12s ease-out; }
.ico-ldoc .sheet { transform-origin: 50% 90%; }
.nav:hover .ico-ldoc .sheet { animation: ico-bubble .55s ease-in-out; }
.nav:hover .ico-lwallet .purse { animation: ico-hop .5s ease-out; }
.nav:hover .ico-lbars .b1 { animation: ico-hop .4s ease-out; }
.nav:hover .ico-lbars .b2 { animation: ico-hop .4s .1s ease-out; }
.nav:hover .ico-lbars .b3 { animation: ico-hop .4s .2s ease-out; }
.amt { font-weight: 600; white-space: nowrap; }
.amt.income { color: var(--money); }
.amt.expense { color: var(--bad); }
@media (max-width: 900px) { .ledger-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ledger-grid, .ledger-grid.two, .ledger-grid.four { grid-template-columns: 1fr; } .ledger-head { justify-content: flex-start; } }

/* Gelen kutusu */
.inbox { display: grid; grid-template-columns: 320px 1fr 300px; height: 100vh; }
.inbox .list { border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.inbox .list .tools { padding: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
/* Üç eşit balon: Tümü, Okunmamış, İlgilenilecek */
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tabs button { height: 32px; padding: 0 4px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); background: var(--panel); border-radius: 4px; cursor: pointer; font-size: 12px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.tabs button:hover { border-color: var(--line-hover); }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-n { font-size: 10.5px; font-weight: 700; min-width: 16px; padding: 0 4px; line-height: 16px; border-radius: 3px; background: var(--soft); color: var(--ink2); }
.tabs button.on .tab-n { background: rgba(255, 255, 255, .25); color: #fff; }
.search-row { display: flex; gap: 6px; }
.sync-btn { flex: 0 0 36px; padding: 0; font-size: 16px; line-height: 1; }
/* Sarı ikaz işareti */
.flag { flex: 0 0 20px; width: 20px; height: 20px; padding: 2px; border: 0; background: none; border-radius: 3px; cursor: pointer; color: var(--line-hover); transition: color .15s, transform .15s; }
.flag svg { width: 100%; height: 100%; display: block; }
.flag:hover:not(:disabled) { color: #eab308; transform: scale(1.12); }
.flag.on { color: #eab308; }
.flag.on svg path:first-child { fill: rgba(234, 179, 8, .25); }
.flag:disabled { cursor: default; }
.conv.flagged { box-shadow: inset 3px 0 0 #eab308; }
.conv .top .nm { flex: 1; }
.convs { overflow: auto; flex: 1; }
.conv { display: flex; gap: 10px; padding: 11px 12px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.conv:hover { background: var(--soft2); }
.conv.on { background: var(--accent-soft); }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--av-bg); flex: 0 0 36px; display: grid; place-items: center; font-weight: 600; color: var(--av-ink); overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.conv .meta { min-width: 0; flex: 1; }
.conv .top { display: flex; justify-content: space-between; gap: 6px; }
.conv .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .tm { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.conv .pv { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; }

.chat { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.chat .bar { background: var(--panel); border-bottom: 1px solid var(--line); padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.chat .bar .nm { font-weight: 600; flex: 1; }
.msgs { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 68%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.bub.in { background: var(--panel); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bub.out { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bub.out.bot { background: var(--bub-bot); }
.bub.out.page { background: var(--bub-page); }
.bub.err { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-bg); }
.bub .who { font-size: 10.5px; opacity: .75; margin-top: 3px; text-align: right; }
.bub .btns { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.bub .btns span { font-size: 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; padding: 1px 8px; }
.composer { background: var(--panel); border-top: 1px solid var(--line); padding: 10px 12px; }
.composer .warn { font-size: 12.5px; color: var(--warn); margin-bottom: 6px; }
.composer textarea { min-height: 44px; height: 44px; }
.empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; padding: 30px; }
.info { border-left: 1px solid var(--line); background: var(--panel); overflow: auto; padding: 16px; }
.info h3 { font-size: 13px; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

/* Akış editörü */
.steps { display: grid; gap: 12px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); border-left: 4px solid var(--accent); }
.step.t-delay { border-left-color: #9ca3af; }
.step.t-tag { border-left-color: var(--ok); }
.step.t-input { border-left-color: var(--warn); }
.step.t-condition { border-left-color: #8b5cf6; }
.step.t-handoff { border-left-color: var(--bad); }
.step .sh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.step .sh .id { font-family: ui-monospace, monospace; font-size: 12px; background: var(--soft); padding: 2px 7px; border-radius: 5px; }
.step .sh .start { font-size: 11px; color: var(--ok); font-weight: 600; }
.step .sh select { width: auto; }
.step .sh .sp { flex: 1; }
.step .sb { padding: 14px; }
.sublist { display: grid; gap: 6px; margin-bottom: 10px; }
.sublist .row select, .sublist .row input { padding: 6px 8px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }

.modal-bg { position: fixed; inset: 0; background: var(--backdrop); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: min(620px, 100%); max-height: 90vh; overflow: auto; padding: 22px; }
.modal h2 { margin: 0 0 16px; font-size: 18px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.login { display: grid; place-items: center; height: 100vh; }
.login .card { width: 340px; padding: 26px; }
/* Kutuya tıklanınca yönlendirme yazısı kaybolur */
.login input:focus::placeholder { color: transparent; }

/* Giriş ekranı: solda şirket alanı ve canlı ızgara, sağda giriş paneli */
@property --auth-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.auth-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; transition: opacity .6s ease; }
.auth-canvas.out { opacity: 0; z-index: 60; pointer-events: none; }
.login.auth { position: relative; z-index: 1; height: auto; min-height: 100vh; min-height: 100dvh; display: grid; place-items: stretch; grid-template-columns: minmax(0, 1.25fr) minmax(400px, .75fr);
  --ink-a: #eef1fb; --mut-a: #9aa5c0; --side-bg: rgba(8, 12, 24, .92); --side-line: rgba(255, 255, 255, .08); --field: rgba(255, 255, 255, .05); --field-line: rgba(255, 255, 255, .13);
  --cyan: #22d3ee; --vio: #6d6df8;
  background: radial-gradient(70vmax 60vmax at 25% 70%, rgba(34, 211, 238, .16), transparent 60%), radial-gradient(60vmax 60vmax at 20% 10%, rgba(109, 109, 248, .25), transparent 60%), #060a16; }
.auth-canvas ~ #app .login.auth { background: transparent; }
:root[data-theme=light] .login.auth { --ink-a: #10152a; --mut-a: #586079; --side-bg: rgba(255, 255, 255, .94); --side-line: rgba(16, 21, 42, .08); --field: #f6f7fb; --field-line: rgba(16, 21, 42, .14); --cyan: #0891b2; --vio: #4f46e5;
  background: radial-gradient(70vmax 60vmax at 25% 70%, rgba(34, 211, 238, .14), transparent 60%), radial-gradient(60vmax 60vmax at 20% 10%, rgba(109, 109, 248, .18), transparent 60%), #f4f6fc; }
:root[data-theme=light] .auth-canvas ~ #app .login.auth { background: transparent; }

/* Sol: şirket alanı */
.auth-brandside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px clamp(28px, 5vw, 72px); color: var(--ink-a); }
.auth-mark { display: flex; align-items: center; gap: 12px; animation: auth-fade .9s .1s ease both; }
.auth-logo { display: block; width: 42px; height: 42px; filter: drop-shadow(0 0 14px rgba(109, 109, 248, .55)); }
.auth-logo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.auth-logo .ring { stroke-dasharray: 200; animation: auth-draw 1.4s cubic-bezier(.65, 0, .35, 1) both; }
.auth-logo .mark { stroke-dasharray: 60; animation: auth-mark 1s .35s cubic-bezier(.65, 0, .35, 1) both; }
.auth-logo .node { transform-origin: 44px 20px; animation: auth-node 2.4s 1.2s ease-in-out infinite; }
.auth-co { font-size: 17px; font-weight: 800; letter-spacing: .2em; }
.auth-co b { margin-left: .45em; font-weight: 400; color: var(--mut-a); }
.auth-hero { max-width: 600px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; color: var(--cyan); border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--cyan) 8%, transparent); font-size: 12px; font-weight: 700; letter-spacing: .08em; animation: auth-item .8s .3s cubic-bezier(.16, 1, .3, 1) both; }
.auth-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: auth-blink 1.8s ease-in-out infinite; }
.auth-headline { margin: 18px 0 14px; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; animation: auth-item .9s .42s cubic-bezier(.16, 1, .3, 1) both; }
.auth-grad { background: linear-gradient(90deg, #a5a1ff, var(--vio) 40%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme=light] .auth-grad { background: linear-gradient(90deg, #4f46e5, #7c3aed 45%, #0891b2); -webkit-background-clip: text; background-clip: text; }
.auth-lead { margin: 0 0 26px; max-width: 480px; color: var(--mut-a); font-size: 15.5px; line-height: 1.55; animation: auth-item .9s .52s cubic-bezier(.16, 1, .3, 1) both; }
.auth-prods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; margin-bottom: 22px; animation: auth-item .9s .62s cubic-bezier(.16, 1, .3, 1) both; }
.auth-prod { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--side-line); border-radius: 12px; background: color-mix(in srgb, var(--side-bg) 55%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.auth-prod-ico { flex: 0 0 auto; width: 36px; height: 36px; padding: 8px; color: #fff; border-radius: 10px; background: linear-gradient(135deg, var(--vio), var(--cyan)); }
.auth-prod-ico svg { display: block; width: 100%; height: 100%; }
.auth-prod strong { display: block; font-size: 14px; }
.auth-prod span { color: var(--mut-a); font-size: 12px; line-height: 1.35; }
.auth-code { margin: 0; max-width: 520px; padding: 0 0 16px; overflow: hidden; border: 1px solid var(--side-line); border-radius: 12px; background: rgba(4, 7, 16, .72); font: 13px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; color: #c8d1ea; animation: auth-item .9s .72s cubic-bezier(.16, 1, .3, 1) both; }
:root[data-theme=light] .auth-code { background: rgba(14, 19, 38, .9); }
.auth-code-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; margin-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.auth-code-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4258; }
.auth-code-bar i:first-child { background: #f87171; } .auth-code-bar i:nth-child(2) { background: #fbbf24; } .auth-code-bar i:nth-child(3) { background: #34d399; }
.auth-code-bar span { margin-left: 8px; color: #7d88a6; font-size: 12px; }
.auth-code code { display: block; padding: 0 16px; min-height: 9.6em; white-space: pre-wrap; background: none; border: 0; border-radius: 0; color: inherit; font: inherit; }
.tk-k { color: #c4a5ff; } .tk-s { color: #86efac; } .tk-f { color: #67e8f9; } .tk-c { color: #6b7591; } .tk-p { color: #c8d1ea; }
.auth-caret { display: inline-block; width: 7px; height: 1.05em; margin-left: 1px; vertical-align: -2px; background: var(--cyan); animation: auth-blink 1s steps(1) infinite; }
.auth-legal { color: var(--mut-a); font-size: 12px; animation: auth-fade 1s .9s ease both; }

/* Sağ: giriş paneli */
.auth-side { position: relative; display: grid; place-items: center; padding: 72px 32px 32px; background: var(--side-bg); border-left: 1px solid var(--side-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: auth-slide 1s .1s cubic-bezier(.16, 1, .3, 1) both; }
.auth-top { position: absolute; top: 18px; right: 20px; z-index: 3; width: 214px; }
.auth-top .theme-tg { width: 100%; }
.auth-stage { display: grid; justify-items: stretch; width: min(380px, 100%); }
.login .card.auth-card { position: relative; width: 100%; padding: 0; color: var(--ink-a); background: none; border: 0; box-shadow: none; }
.auth-card > * { position: relative; animation: auth-item .75s cubic-bezier(.16, 1, .3, 1) both; }
.auth-card > :nth-child(1) { animation-delay: .35s; } .auth-card > :nth-child(2) { animation-delay: .42s; } .auth-card > :nth-child(3) { animation-delay: .5s; }
.auth-card > :nth-child(4) { animation-delay: .58s; } .auth-card > :nth-child(5) { animation-delay: .64s; } .auth-card > :nth-child(n+6) { animation-delay: .7s; }
.auth-title { margin: 0; font-size: 30px; letter-spacing: -.02em; animation: none !important; }
.auth-title span { display: inline-block; margin-right: .24em; animation: auth-word .8s calc(.35s + var(--i) * .1s) cubic-bezier(.16, 1, .3, 1) both; }
.auth-card .sub { color: var(--mut-a); margin: 6px 0 26px; }
.auth-card .hint, .auth-card .hint a { color: var(--mut-a); }
.auth-alt { text-align: center; margin: 14px 0 0; }
.auth-l { color: var(--mut-a); font-weight: 600; }
.auth-wrap { position: relative; display: block; }
.auth-ico { position: absolute; left: 13px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--mut-a); pointer-events: none; transition: color .2s; z-index: 1; }
.auth-ico svg, .auth-eye svg { display: block; width: 100%; height: 100%; }
.login .auth-input { width: 100%; height: 48px; padding: 0 44px 0 42px; color: var(--ink-a); background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; outline: 0; transition: border-color .2s, box-shadow .25s, background .2s; }
.login .auth-input::placeholder { color: var(--mut-a); opacity: .85; }
.login .auth-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); }
.login .auth-input:focus::placeholder { color: transparent; }
.auth-input:-webkit-autofill { -webkit-text-fill-color: var(--ink-a); caret-color: var(--ink-a); transition: background-color 9999s; }
.auth-wrap:focus-within .auth-ico { color: var(--cyan); }
.auth-line { display: none; }
.auth-eye { position: absolute; right: 8px; top: 50%; width: 32px; height: 32px; padding: 7px; transform: translateY(-50%); color: var(--mut-a); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.auth-eye:hover { color: var(--ink-a); }
.auth-eye:focus-visible { outline: 2px solid var(--cyan); }
.auth-eye .slash { stroke-dasharray: 26; stroke-dashoffset: 0; transition: stroke-dashoffset .25s; }
.auth-eye.on .slash { stroke-dashoffset: 26; }
.auth-caps { color: #f5b14a; font-size: 12.5px; font-weight: 600; margin: -6px 0 10px; }
:root[data-theme=light] .auth-caps { color: #a65f00; }
.auth-err { color: #ff8d92; font-size: 13px; font-weight: 600; }
:root[data-theme=light] .auth-err { color: #c81e2b; }
.auth-err:not(:empty) { margin: -2px 0 12px; animation: auth-item .35s ease both; }
.login .auth-btn { position: relative; width: 100%; height: 48px; margin-top: 6px; overflow: hidden; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .01em; border: 0; border-radius: 10px; background: linear-gradient(100deg, #5b5bf6, #6d6df8 45%, #0ea5c6); background-size: 180% 100%; box-shadow: 0 12px 30px rgba(34, 140, 238, .3); transition: background-position .5s, transform .18s, box-shadow .25s; }
.login .auth-btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -45%; width: 34%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); animation: auth-shine 3.8s 1.6s ease-in-out infinite; }
.login .auth-btn:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 16px 38px rgba(34, 140, 238, .42); }
.login .auth-btn:active { transform: translateY(0) scale(.985); }
.auth-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.auth-btn-t, .auth-spin, .auth-check { transition: opacity .2s, transform .25s; }
.auth-spin, .auth-check { position: absolute; left: 50%; top: 50%; opacity: 0; }
.auth-spin { width: 20px; height: 20px; margin: -10px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; }
.auth-check { width: 24px; height: 24px; margin: -12px; }
.auth-check svg { display: block; width: 100%; height: 100%; stroke-dasharray: 24; stroke-dashoffset: 24; }
.auth-btn.busy { pointer-events: none; }
.auth-btn.busy .auth-btn-t, .auth-btn.done .auth-btn-t { opacity: 0; transform: translateY(-8px); }
.auth-btn.busy .auth-spin { opacity: 1; animation: auth-turn .7s linear infinite; }
.auth-btn.done { background: linear-gradient(100deg, #0e9f8a, #22c3a6); pointer-events: none; }
.auth-btn.done .auth-check { opacity: 1; }
.auth-btn.done .auth-check svg { animation: auth-tick .3s ease forwards; }
.auth-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: var(--mut-a); font-size: 12px; animation: auth-fade 1s 1s ease both; }
.auth-foot-ico { width: 14px; height: 14px; color: var(--cyan); }
.auth-foot-ico svg { display: block; width: 100%; height: 100%; }
.login .card.auth-card.shake { animation: auth-shake .5s cubic-bezier(.36, .07, .19, .97) both; }
.auth-card.shake .auth-input { border-color: rgba(255, 92, 100, .75); }
/* Başarılı giriş: paneller çekilir, ızgara ışınlanır */
.login.auth.leave { overflow: hidden; }
.auth.leave .auth-side { animation: auth-away .7s cubic-bezier(.7, 0, .84, 0) forwards; }
.auth.leave .auth-hero, .auth.leave .auth-mark, .auth.leave .auth-legal { animation: auth-suck .75s cubic-bezier(.7, 0, .84, 0) forwards; }
@keyframes auth-item { from { opacity: 0; transform: translateY(14px); } }
@keyframes auth-word { from { opacity: 0; transform: translateY(60%); filter: blur(6px); } }
@keyframes auth-fade { from { opacity: 0; } }
@keyframes auth-slide { from { opacity: 0; transform: translateX(40px); } }
@keyframes auth-away { to { opacity: 0; transform: translateX(80px); } }
@keyframes auth-draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
@keyframes auth-mark { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes auth-node { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .6; } }
@keyframes auth-blink { 50% { opacity: .25; } }
@keyframes auth-turn { to { transform: rotate(360deg); } }
@keyframes auth-shine { 0%, 62% { left: -45%; } 100% { left: 125%; } }
@keyframes auth-tick { to { stroke-dashoffset: 0; } }
@keyframes auth-shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(5px); } 30%, 50%, 70% { transform: translateX(-9px); } 40%, 60% { transform: translateX(9px); } }
@keyframes auth-suck { to { opacity: 0; transform: scale(.85) translateY(-20px); filter: blur(6px); } }
@media (max-width: 960px) {
  .login.auth { grid-template-columns: 1fr; }
  .auth-brandside { padding: 24px 20px 8px; gap: 14px; }
  .auth-lead, .auth-prods, .auth-code, .auth-legal { display: none; }
  .auth-headline { font-size: 26px; margin: 12px 0 0; }
  .auth-brandside { justify-content: flex-start; }
  .auth-side { display: block; padding: 18px 20px 32px; border-left: 0; border-top: 1px solid var(--side-line); }
  .auth-top { position: static; width: 204px; margin: 0 0 22px auto; }
  .auth-stage { margin: 0 auto; }
  .login .auth-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth *, .auth-card::before, .auth.leave * { animation: none !important; transition: none !important; }
}

#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 99; display: grid; gap: 6px; }
#toast div { background: #1b1d22; color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
:root[data-theme=dark] #toast div { background: #222b3d; border: 1px solid #2f3a55; }
#toast div.bad { background: var(--bad); }

.steps-guide ol { margin: 6px 0 0; padding-left: 20px; }
.steps-guide li { margin-bottom: 6px; }

@media (max-width: 1100px) { .inbox { grid-template-columns: 280px 1fr; } .info { display: none; } }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .side { flex-direction: row; overflow-x: auto; padding: 8px; }
  .nav { flex: 0 0 auto; white-space: nowrap; }
  .theme-tg { flex: 0 0 150px; margin: 0; }
  .brand-sw { flex: 0 0 auto; margin-bottom: 0; }
  .brand-menu { position: fixed; top: 60px; left: 8px; right: 8px; width: auto; }
  .brand, .side .spacer { display: none; }
  .inbox { grid-template-columns: 1fr; }
  .inbox.has-chat .list { display: none; }
  .inbox:not(.has-chat) .chat { display: none; }
  .main { padding: 16px; }
}
