/*
 * convotify · Panel arayüzü
 * convotify.com ile aynı tasarım dili: siyah / beyaz zemin, mor vurgu, 4 px köşe, Mona Sans.
 * Koyu tema varsayılandır; açık tema html[data-theme="light"] ile gelir (assets/js/theme.js).
 * Bu dosya yalnızca görünümü belirler; sayfaların davranışı assets/js altındadır.
 */

/* ---------------------------------------------------------------- Fontlar */
@font-face {
    font-family: "Mona Sans";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url(../fonts/mona-sans-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Mona Sans";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url(../fonts/mona-sans-latin-wght-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Mona Sans";
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url(../fonts/mona-sans-latin-ext-wght-italic.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Mona Sans";
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url(../fonts/mona-sans-latin-wght-italic.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/poppins-latin-ext-400-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/poppins-latin-400-normal.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------- Renkler ve ölçüler */
:root {
    color-scheme: dark;
    --bg: #000;
    --bg-2: #070708;
    --card: #0f0f11;
    --card-2: #0b0b0d;
    --elev: #1a1a1d;
    --hover: rgba(255, 255, 255, .045);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .14);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --accent: #b692dd;
    --accent-2: #c9b3ff;
    --accent-soft: rgba(182, 146, 221, .12);
    --accent-line: rgba(182, 146, 221, .35);
    --ring: 0 0 0 4px rgba(154, 99, 194, .22);
    --btn-grad: linear-gradient(to bottom, #9a63c2, #53326b);
    --btn-border: #623781;
    --btn-text: #fff;
    --ok: #4ade80;
    --ok-text: #86efac;
    --ok-soft: rgba(74, 222, 128, .1);
    --warn: #fbbf24;
    --warn-text: #fcd34d;
    --warn-soft: rgba(251, 191, 36, .1);
    --bad: #f87171;
    --bad-text: #fca5a5;
    --bad-soft: rgba(239, 68, 68, .1);
    --info: #7dd3fc;
    --neutral: #86868b;
    --overlay: rgba(0, 0, 0, .62);
    --shadow: 0 40px 80px -40px rgba(0, 0, 0, .75);
    --shadow-sm: 0 18px 40px -24px rgba(0, 0, 0, .8);
    --nav-bg: rgba(10, 10, 12, .72);
    --code-bg: #0b0b0d;
    --bubble-in: #1a1a1d;
    --bubble-ai: #24182f;
    --bubble-team: linear-gradient(to bottom, #8a58b0, #5a3675);
    --ease: cubic-bezier(.22, .61, .36, 1);
    /* Köşe ölçüleri convotify.com demo paneliyle aynı (bkz. "Demo paneliyle aynı biçim"). */
    --r-xs: 6px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 999px;
    --r: var(--r-sm);
    --nav-h: 64px;
    --wrap: 1320px;
    --sb-w: 268px;          /* sol menü genişliği (masaüstü; demo panel --dp-side-w) */
    --top-h: 0px;           /* telefonda / tablette üst çubuk */
    --bottom-h: 0px;        /* kiracı paneli: telefonda alt menü */
    --sb-bg: #050506;
    --on-c: #0b0b0d;        /* renkli kutucuk üstündeki simge */
    --font: "Mona Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Vurgu renkleri: menü ve başlık simgeleri, avatarlar */
    --c-violet: #b692dd;
    --c-blue: #7cacf8;
    --c-green: #4ade80;
    --c-orange: #fb923c;
    --c-pink: #f472b6;
    --c-teal: #2dd4bf;
    --c-amber: #fbbf24;
    --c-red: #f87171;
    --c-sky: #38bdf8;
    --c-indigo: #a5b4fc;
    --c-slate: #a1a1aa;

    /* Bilgi kutusu (hafif mavi) */
    --info-bg: rgba(56, 189, 248, .07);
    --info-line: rgba(56, 189, 248, .26);
    --info-ic: #7dd3fc;

    /* Grafik renkleri (koyu yüzey #0f0f11 üzerinde doğrulandı) */
    --ch-ai: #9085e9;
    --ch-team: #d95926;
    --ch-open: #3987e5;
    --ch-closed: #6b6b73;
    --ch-ok: #3fb96f;
    --ch-warn: #d6a21e;
    --ch-bad: #e5534b;
    --ch-muted: #4a4a52;
    --ch-track: rgba(255, 255, 255, .06);
    --ch-st1: #4b3f7a;
    --ch-st2: #6a58ad;
    --ch-st3: #8d78d8;
    --ch-st4: #b7a5f5;
    --ch-q1: #1f6b62;
    --ch-q2: #26a091;
    --ch-q3: #5ee0cc;
    --ch-whatsapp: #25d366;
    --ch-instagram: #e1306c;
    --ch-messenger: #3b8cff;
    --ch-webchat: #a66cf0;
    --ch-google: #5b9cf6;
    --ch-telegram: #2aabee;
    --ch-voice_web: #f472b6;  /* Convotify Voice (tarayıcı) */
    --ch-phone: #2dd4bf;      /* telefon hattı */
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #fff;
    --bg-2: #fafafa;
    --card: #f4f4f5;
    --card-2: #f7f7f8;
    --elev: #e9e9ea;
    --hover: rgba(26, 26, 26, .04);
    --line: rgba(26, 26, 26, .08);
    --line-2: rgba(26, 26, 26, .14);
    --text: #1d1d1e;
    --text-2: #5e5e5f;
    --text-3: #626263;
    --accent: #714e94;
    --accent-2: #685296;
    --accent-soft: rgba(113, 78, 148, .08);
    --accent-line: rgba(113, 78, 148, .32);
    --ring: 0 0 0 4px rgba(113, 78, 148, .16);
    --btn-grad: linear-gradient(to bottom, #9a63c2, #c0afcf);
    --btn-border: #623781;
    --btn-text: #1a1a1a;
    --ok: #16a34a;
    --ok-text: #116a32;
    --ok-soft: rgba(22, 163, 74, .08);
    --warn: #d97706;
    --warn-text: #8a5205;
    --warn-soft: rgba(217, 119, 6, .09);
    --bad: #dc2626;
    --bad-text: #b91c1c;
    --bad-soft: rgba(220, 38, 38, .07);
    --info: #0369a1;
    --neutral: #8e8e93;
    --overlay: rgba(20, 20, 24, .38);
    --shadow: 0 40px 80px -44px rgba(30, 20, 50, .35);
    --shadow-sm: 0 18px 40px -28px rgba(30, 20, 50, .35);
    --nav-bg: rgba(248, 248, 248, .74);
    --code-bg: #f7f7f8;
    --bubble-in: #fff;
    --bubble-ai: #f1eaf8;
    --bubble-team: linear-gradient(to bottom, #8a58b0, #6b4290);
    --sb-bg: #fafafa;
    --on-c: #fff;

    --c-violet: #6d48a0;
    --c-blue: #2563eb;
    --c-green: #15803d;
    --c-orange: #c2410c;
    --c-pink: #be185d;
    --c-teal: #0f766e;
    --c-amber: #b45309;
    --c-red: #dc2626;
    --c-sky: #0369a1;
    --c-indigo: #4f46e5;
    --c-slate: #52525b;

    --info-bg: #f2f8fe;
    --info-line: #cfe3f8;
    --info-ic: #0369a1;

    /* Grafik renkleri (açık yüzey #f4f4f5 üzerinde doğrulandı; turuncu ve gri yazılı açıklamayla) */
    --ch-ai: #6250d6;
    --ch-team: #eb6834;
    --ch-open: #2a78d6;
    --ch-closed: #8b8b94;
    --ch-ok: #1f9d55;
    --ch-warn: #d08a0c;
    --ch-bad: #dc2626;
    --ch-muted: #c4c4cc;
    --ch-track: rgba(26, 26, 26, .07);
    --ch-st1: #cdc2f0;
    --ch-st2: #a28ce0;
    --ch-st3: #7a5fcf;
    --ch-st4: #553aae;
    --ch-q1: #a7e3da;
    --ch-q2: #33a596;
    --ch-q3: #0f6158;
    --ch-whatsapp: #1a9e4b;
    --ch-instagram: #c2185b;
    --ch-messenger: #0866ff;
    --ch-webchat: #7e33cc;
    --ch-voice_web: #c026d3;
    --ch-phone: #0d9488;
    --ch-google: #1a73e8;
    --ch-telegram: #0088cc;
}

/* ---------------------------------------------------------------- Temel */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent; /* zemin html'de: arkadaki ızgara görünsün */
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection { background: rgba(182, 146, 221, .35); color: inherit; }

a { color: var(--accent-2); text-decoration: none; -webkit-tap-highlight-color: transparent; }
html[data-theme="light"] a { color: var(--accent); }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.06rem; letter-spacing: -.012em; }
h3 { font-size: .95rem; letter-spacing: -.008em; }
p { margin: 0 0 .75rem; }
b, strong { font-weight: 600; }
small { font-size: .8rem; }

/* Panelde eş aralıklı (mono) yazı yok: kod, kimlik, adres ve anahtarlar da panelin yazı tipiyle yazılır */
code, kbd, samp, pre { font-family: inherit; font-size: .92em; }
code {
    padding: .08em .38em;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--code-bg);
    color: var(--text);
    overflow-wrap: anywhere;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone; /* satıra bölünen adresin her parçası kendi çerçevesiyle */
}
pre code { padding: 0; border: 0; background: none; font-size: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

[hidden] { display: none !important; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

.ic {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 15px; height: 15px; }
.ic-lg { width: 22px; height: 22px; }
.logo { width: 22px; height: 22px; flex: none; object-fit: contain; }
.logo-sm { width: 16px; height: 16px; }
.logo-lg { width: 32px; height: 32px; }

.muted { color: var(--text-2); font-size: .86rem; }
.hint { font-size: .8rem; color: var(--text-3); line-height: 1.5; margin-top: .3rem; }
.hint b, .hint strong { color: var(--text-2); }
.hint code { font-size: .78rem; }
/* Tablo satırlarında kimlikler: çerçevesiz, sakin */
td .hint code { padding: 0; border: 0; background: none; color: var(--text-3); font-size: .76rem; }
.nowrap { white-space: nowrap; }
.t-ok { color: var(--ok-text) !important; }
.t-warn { color: var(--warn-text) !important; }
.t-bad { color: var(--bad-text) !important; }

/* ---------------------------------------------------------------- Marka */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .62em;
    color: var(--text);
    font-family: "Poppins", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
    text-decoration: none !important;
}
.brand .brand-mark { display: block; flex: none; width: auto; height: 1.3em; object-fit: contain; }
.brand-word { display: inline-block; color: var(--text); }
/* convotify: kare işaret (koyu/açık tema ayrı dosya) + kelime işareti, convotify.com ile aynı. */
.brand--cv { gap: .5em; }
.brand--cv .brand-word { font-weight: 600; letter-spacing: -.025em; }
.brand--cv .brand-mark { height: 1.32em; }
.cv-reg { position: relative; top: -1.02em; margin-inline-start: .1em; font-size: .4em; font-weight: 500; font-style: normal; line-height: 0; letter-spacing: 0; }
html[data-theme="light"] .theme-dark-only, html:not([data-theme="light"]) .theme-light-only { display: none !important; }
/* ---------------------------------------------------------------- Üst menü */
.nav {
    position: sticky;
    top: 0;
    z-index: 900;
    height: var(--nav-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--line);
    animation: navDrop .9s var(--ease) both;
}
.nav::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 179, 255, .45), transparent);
    opacity: 0;
    transform: scaleX(.3);
    transition: opacity .6s ease, transform .8s var(--ease);
    pointer-events: none;
}
html[data-theme="light"] .nav::after { background: linear-gradient(90deg, transparent, rgba(113, 78, 148, .3), transparent); }
.nav.is-scrolled { background: var(--nav-bg); }
.nav.is-scrolled::after { opacity: 1; transform: none; }

.nav-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    max-width: calc(var(--wrap) + 48px);
    margin: 0 auto;
    padding: 0 24px;
}
.nav-sep { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.nav-context { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.nav-context b {
    font-size: .92rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32vw;
}
.nav-context small { font-size: .74rem; color: var(--text-3); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-link {
    position: relative;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 2px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    opacity: .72;
    transition: opacity .25s ease;
    text-decoration: none !important;
}
.nav-link::after {
    content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left;
    transition: transform .35s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { transform: none; }
.nav-user {
    display: inline-flex; align-items: center; gap: 8px;
    max-width: 260px; padding-inline-end: 6px;
    color: var(--text-2); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-user:empty { display: none; }
.nav-user .avatar {
    display: inline-grid; place-items: center; flex: none;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-2);
    font-size: .76rem; font-weight: 600;
}
html[data-theme="light"] .nav-user .avatar { color: var(--accent); }

@keyframes navDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tema düğmesi: koyu temada güneş, açık temada ay gösterir */
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px; height: 36px;
    flex: none;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: transparent;
    color: var(--text);
    cursor: var(--cv-cur-hand, pointer);
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--hover); border-color: var(--accent-line); }
.icon-btn:active { transform: scale(.96); }
.theme-toggle .i-moon { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-moon { display: block; }
.theme-toggle .ic { transition: transform .5s var(--ease); }
.theme-toggle:hover .ic { transform: rotate(-18deg); }

/* ---------------------------------------------------------------- Arka plan: şeritler
   Panelin zemini düz: ızgara yok (içerik kartları zeminden kendi kenarlarıyla ayrılır). */

/* Marka şeritleri: sağ üst köşeden ucu görünür, içeriğin arkasında kalır. */
.bg-ribbons {
    position: absolute;
    top: 0;
    inset-inline-end: 0;
    z-index: -1;
    width: min(100%, 760px);
    height: clamp(240px, 33vw, 480px);
    overflow: hidden;
    pointer-events: none;
    opacity: .62;
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 34%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 0, #000 34%, transparent 96%);
}
html[data-theme="light"] .bg-ribbons { opacity: .8; }
.bg-ribbons .rb-c {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    aspect-ratio: 1200 / 1000;
    transform-origin: 100% 0;
}
.bg-ribbons i { position: absolute; display: block; }
/* İki tema da baştan yüklenir: tema değişince şerit kaybolup gelmez. */
.bg-ribbons i::before, .bg-ribbons i::after {
    content: "";
    position: absolute;
    inset: 0;
    background-position: 0 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}
.bg-ribbons i::after { opacity: 0; }
html[data-theme="light"] .bg-ribbons i::before { opacity: 0; }
html[data-theme="light"] .bg-ribbons i::after { opacity: 1; }
.bg-ribbons i:nth-child(1) { --k: 0; left: 83.583%; top: 0; width: 16.417%; height: 45.8%; }
.bg-ribbons i:nth-child(2) { --k: 1; left: 70.583%; top: 0; width: 29.417%; height: 79.8%; }
.bg-ribbons i:nth-child(3) { --k: 2; left: 59.083%; top: 0; width: 40.917%; height: 100%; }
.bg-ribbons i:nth-child(4) { --k: 3; left: 49%; top: 0; width: 48.833%; height: 100%; }
.bg-ribbons i:nth-child(1)::before { background-image: url(../img/ribbons/page-dark-1.webp); }
.bg-ribbons i:nth-child(2)::before { background-image: url(../img/ribbons/page-dark-2.webp); }
.bg-ribbons i:nth-child(3)::before { background-image: url(../img/ribbons/page-dark-3.webp); }
.bg-ribbons i:nth-child(4)::before { background-image: url(../img/ribbons/page-dark-4.webp); }
.bg-ribbons i:nth-child(1)::after { background-image: url(../img/ribbons/page-light-1.webp); }
.bg-ribbons i:nth-child(2)::after { background-image: url(../img/ribbons/page-light-2.webp); }
.bg-ribbons i:nth-child(3)::after { background-image: url(../img/ribbons/page-light-3.webp); }
.bg-ribbons i:nth-child(4)::after { background-image: url(../img/ribbons/page-light-4.webp); }
@media (prefers-reduced-motion: no-preference) {
    .bg-ribbons .rb-c { animation: rbScale 2.8s cubic-bezier(.33, 1, .68, 1) both; }
    .bg-ribbons i { animation: rbFade 1.2s ease calc(var(--k, 0) * .2s) both; }
}
@keyframes rbScale { from { transform: scale(1.16); } to { transform: none; } }
@keyframes rbFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- Sol menü */
.sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 950;
    display: flex;
    flex-direction: column;
    width: var(--sb-w);
    padding: 16px 14px 14px;
    background: var(--sb-bg);
    border-inline-end: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sb-brand { display: flex; align-items: center; min-height: 40px; padding: 2px 8px 14px; }
.sb-brand .brand { font-size: 16.5px; }

/* Bağlam kutusu: "Sistem Yönetimi" ya da kiracı adı */
.sb-context {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 14px;
    padding: 10px 11px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    min-width: 0;
}
.sb-context > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sb-context b { font-size: .88rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-context small { margin-top: 2px; font-size: .74rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-context .badge { font-size: .74rem; }
.sb-back {
    display: flex; align-items: center; gap: 8px;
    margin: -4px 0 10px; padding: 6px 10px;
    border-radius: var(--r);
    color: var(--text-2) !important; font-size: .84rem; font-weight: 500;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}
.sb-back:hover { background: var(--hover); color: var(--text) !important; }
.sb-back .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.sb-back:hover .ic { transform: translateX(-2px); }

.sb-title { margin: 6px 10px 6px; font-size: .74rem; font-weight: 500; color: var(--text-3); }
.sb-nav { --c: var(--c-violet); display: flex; flex-direction: column; gap: 2px; }
.sb-nav .tab, .sb-nav .nav-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 6px 10px 6px 8px;
    border: 0;
    border-radius: var(--r);
    background: none;
    color: var(--text-2);
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: start;
    white-space: nowrap;
    cursor: var(--cv-cur-hand, pointer);
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}
.sb-nav .tab:hover, .sb-nav .nav-btn:hover { background: var(--hover); color: var(--text); }
.sb-nav .tab.active, .sb-nav .nav-btn.active {
    background: color-mix(in srgb, var(--c) 11%, transparent);
    color: var(--text);
}
.sb-nav .tab.active::before, .sb-nav .nav-btn.active::before {
    content: "";
    position: absolute;
    inset-inline-start: -14px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--c);
    animation: barIn .35s var(--ease) both;
}
@keyframes barIn { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
.sb-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: var(--r);
    background: color-mix(in srgb, var(--c) 15%, transparent);
    color: var(--c);
    transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}
.sb-ic .ic { width: 17px; height: 17px; }
.sb-nav .tab:hover .sb-ic, .sb-nav .nav-btn:hover .sb-ic { transform: scale(1.06); }
.sb-nav .active .sb-ic { background: var(--c); color: var(--on-c); }
.sb-count {
    flex: none;
    min-width: 22px;
    padding: 1px 7px;
    border-radius: var(--r);
    background: var(--hover);
    color: var(--text-3);
    font-size: .72rem;
    font-weight: 600;
    text-align: center;
}
.sb-count:empty { display: none; }

/* Menü öğelerinin renkleri */
.c-violet { --c: var(--c-violet); }
.c-blue { --c: var(--c-blue); }
.c-green { --c: var(--c-green); }
.c-orange { --c: var(--c-orange); }
.c-pink { --c: var(--c-pink); }
.c-teal { --c: var(--c-teal); }
.c-amber { --c: var(--c-amber); }
.c-red { --c: var(--c-red); }
.c-sky { --c: var(--c-sky); }
.c-indigo { --c: var(--c-indigo); }
.c-slate { --c: var(--c-slate); }

.sb-foot {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 14px;
}
.sb-foot::before { content: ""; display: block; height: 1px; margin: 0 4px 10px; background: var(--line); }
.sb-link {
    display: flex; align-items: center; gap: 11px;
    min-height: 36px; padding: 5px 10px;
    border-radius: var(--r);
    color: var(--text-2) !important; font-size: .85rem; font-weight: 500;
    text-decoration: none !important;
    transition: background .2s ease, color .2s ease;
}
.sb-link:hover { background: var(--hover); color: var(--text) !important; }
.sb-link .ic { width: 17px; height: 17px; color: var(--text-3); }
.sb-link .ext { width: 14px; height: 14px; margin-inline-start: auto; opacity: .55; }
.sb-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; margin-bottom: 6px;
    min-width: 0;
}
.sb-user:empty { display: none; }
.sb-user > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sb-user b { font-size: .86rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user small { font-size: .74rem; color: var(--text-3); }
.sb-actions { display: flex; gap: 8px; margin-top: 8px; }
.sb-actions .btn { flex: 1; min-height: 38px; }
.sb-actions .icon-btn { width: 38px; height: 38px; }

/* Üst çubuk ve alt menü (telefon / tablet) */
.topbar { display: none; }
.sb-overlay { display: none; }
.bottombar { display: none; }

/* İçerik alanı */
body { display: flex; flex-direction: column; }
.app-main {
    position: relative;
    isolation: isolate;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    min-height: 100dvh;
    margin-inline-start: var(--sb-w);
}
.app-main > .page { flex: 1 0 auto; }

/* ---------------------------------------------------------------- Sayfa düzeni */
/* Sayfa iskeleti: içerik, en altta sağda küçük gizlilik bağlantısı (ayrı alt bilgi yok) */
.page { flex: 1 0 auto; width: 100%; max-width: calc(var(--wrap) + 64px); margin: 0 auto; padding: 30px 32px 36px; }
.page-narrow { max-width: 1128px; }
.tab-panel, .section { display: none; }
.tab-panel.active, .section.active { display: block; animation: panelIn .45s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head, .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.page-head h1, .header-row h1 { margin: 0; }
.page-head .lead, .header-row .lead { margin: 6px 0 0; color: var(--text-2); font-size: .92rem; max-width: 72ch; }
.head-actions, .header-row .actions { display: flex; align-items: center; gap: 8px; flex: none; }
/* Başlık + renkli simge kutusu */
.head-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.head-title > div { min-width: 0; }
.head-title .tile { width: 44px; height: 44px; }
.head-title .tile .ic { width: 22px; height: 22px; }
.section-title {
    display: flex; align-items: center; gap: 10px;
    margin: 32px 0 12px;
    font-size: .95rem; font-weight: 600; color: var(--text); letter-spacing: -.01em;
}
.section-title .tile { width: 28px; height: 28px; }
.section-title .tile .ic { width: 15px; height: 15px; }
.section-title small { margin-inline-start: auto; font-size: .8rem; font-weight: 400; color: var(--text-3); }

/* Renkli simge kutusu (başlıklar, istatistikler) */
.tile {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: var(--r);
    background: color-mix(in srgb, var(--c, var(--c-violet)) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, var(--c-violet)) 22%, transparent);
    color: var(--c, var(--c-violet));
}
.tile .ic { width: 18px; height: 18px; }
html[data-theme="light"] .tile { background: color-mix(in srgb, var(--c, var(--c-violet)) 9%, #fff); border-color: color-mix(in srgb, var(--c, var(--c-violet)) 18%, transparent); }

/* Baş harf kutusu (kiracı, kullanıcı) */
.avatar-tile {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: var(--r);
    background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--c-violet)) 30%, transparent), color-mix(in srgb, var(--c, var(--c-violet)) 10%, transparent));
    border: 1px solid color-mix(in srgb, var(--c, var(--c-violet)) 30%, transparent);
    color: var(--c, var(--c-violet));
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}
html[data-theme="light"] .avatar-tile { background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--c-violet)) 16%, #fff), color-mix(in srgb, var(--c, var(--c-violet)) 6%, #fff)); }
.avatar-tile.sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar-tile.lg { width: 48px; height: 48px; font-size: .98rem; }

/* ---------------------------------------------------------------- Kartlar */
.card, .provider-card, .mp-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 24px;
    margin-bottom: 16px;
}
.card > h2, .card > h3 { margin: 0 0 14px; }
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.card-header h2 { margin: 0; }
.card-header .hint { margin: 0; }
.card-sub { margin: -6px 0 16px; color: var(--text-3); font-size: .85rem; }
/* Kart başlığı: renkli simge + başlık + kısa açıklama; sağda araçlar */
.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    min-width: 0;
}
.card-head > .ch-text { flex: 1; min-width: 0; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1.02rem; }
.card-head p { margin: 2px 0 0; color: var(--text-3); font-size: .84rem; line-height: 1.45; }
.card-head .ch-tools { display: flex; align-items: center; gap: 8px; flex: none; margin-inline-start: auto; }
.card-head .ch-tools select { width: auto; min-width: 200px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: .85rem; }
.card-head + .card-sub { margin-top: -10px; }
.card.flat { background: color-mix(in srgb, var(--card) 70%, transparent); }

/* Bilgi kutuları: hafif mavi zemin, başta "i" simgesi (uyarılar sarı, hatalar kırmızı) */
.note, .secret-note, .inline-note, .mp-note, .mi-warn, .callout, .info {
    --nb: var(--info-bg);
    --nl: var(--info-line);
    --ni: var(--info-ic);
    position: relative;
    display: block;
    margin: 0 0 16px;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--nl);
    border-radius: var(--r);
    background: linear-gradient(var(--nb), var(--nb)), var(--card); /* arkadaki şerit ve ızgara yazının altına karışmasın */
    color: var(--text-2);
    font-size: .86rem;
    line-height: 1.6;
}
.note::before, .secret-note::before, .inline-note::before, .mp-note::before, .mi-warn::before, .callout::before, .info::before {
    content: "";
    position: absolute;
    inset-inline-start: 14px;
    top: 13px;
    width: 18px;
    height: 18px;
    background: var(--ni);
    -webkit-mask: var(--note-ic, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E")) center / contain no-repeat;
    mask: var(--note-ic, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E")) center / contain no-repeat;
}
.note b, .note strong, .secret-note strong, .secret-note b, .inline-note strong, .mp-note b, .info b, .info strong, .callout b, .callout strong { color: var(--text); }
.note code, .info code { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.inline-note { margin: 10px 0 0; }
/* Dış betik engellendi (external-script.js): nedenler ve çözümleri */
.script-help { margin: 12px 0; text-align: start; }
.script-help p { margin: 4px 0 0; }
.script-help ul { margin: 6px 0; padding-inline-start: 18px; }
.script-help li { margin: 3px 0; }
.secret-note, .callout-warn, .mi-warn, #setupBanner {
    --nb: var(--warn-soft);
    --nl: color-mix(in srgb, var(--warn) 32%, transparent);
    --ni: var(--warn);
    --note-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.secret-note {
    --note-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}
.callout-bad {
    --nb: var(--bad-soft);
    --nl: color-mix(in srgb, var(--bad) 32%, transparent);
    --ni: var(--bad);
    --note-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4'/%3E%3Cpath d='M12 16h.01'/%3E%3C/svg%3E");
}
.callout-ok {
    --nb: var(--ok-soft);
    --nl: color-mix(in srgb, var(--ok) 30%, transparent);
    --ni: var(--ok);
    --note-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5'/%3E%3C/svg%3E");
}
#setupBanner a { font-weight: 600; }
.info-sm { padding: 9px 12px 9px 38px; font-size: .82rem; }
.info-sm::before { inset-inline-start: 12px; top: 10px; width: 16px; height: 16px; }
.form-group > .info { margin: 2px 0 0; }

/* ---------------------------------------------------------------- Düğmeler */
.btn, .mi-btn, .mp-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: var(--cv-cur-hand, pointer);
    user-select: none;
    transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease, transform .2s var(--ease), box-shadow .3s ease;
}
.btn:hover, .mi-btn:hover, .mp-btn:hover { background: var(--hover); border-color: var(--accent-line); }
.btn:active, .mi-btn:active, .mp-btn:active { transform: translateY(1px); }
.btn:disabled, .mi-btn:disabled, .mp-btn:disabled, .btn[aria-disabled="true"] {
    opacity: .45; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn .ic { width: 16px; height: 16px; }

.btn-primary, .mi-btn-primary, .mp-btn-primary {
    border-color: var(--btn-border);
    background: var(--btn-grad);
    color: var(--btn-text);
    box-shadow: 0 10px 26px -16px rgba(154, 99, 194, .9);
}
.btn-primary:hover, .mi-btn-primary:hover, .mp-btn-primary:hover {
    border-color: var(--btn-border);
    background: var(--btn-grad);
    filter: brightness(1.08);
    box-shadow: 0 14px 30px -14px rgba(154, 99, 194, .95);
}
html[data-theme="light"] .btn-primary, html[data-theme="light"] .mi-btn-primary, html[data-theme="light"] .mp-btn-primary {
    box-shadow: 0 10px 24px -16px rgba(98, 55, 129, .55);
}
/* Bağlantı (<a>) olarak yazılmış düğmeler: açık temadaki genel bağlantı rengi düğmenin yazı rengini ezmesin. */
html[data-theme="light"] a.btn { color: var(--text); }
html[data-theme="light"] a.btn-primary { color: var(--btn-text); }
html[data-theme="light"] a.btn-danger { color: var(--bad-text); }
.btn-secondary, .mi-btn-light, .mp-btn-light { background: color-mix(in srgb, var(--card) 82%, transparent); }
.btn-secondary:hover, .mi-btn-light:hover, .mp-btn-light:hover { background: color-mix(in srgb, var(--elev) 88%, transparent); }
.btn-ghost { border-color: transparent; }
.btn-danger, .mi-btn-danger, .mp-btn-danger { color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 38%, transparent); }
.btn-danger:hover, .mi-btn-danger:hover, .mp-btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); }
.mi-btn-warn { color: var(--accent-2); border-color: var(--accent-line); background: var(--accent-soft); }
html[data-theme="light"] .mi-btn-warn { color: var(--accent); }
.mi-btn-warn:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }

.btn-sm, .mi-btn, .mp-btn { min-height: 32px; padding: 0 12px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn-lg { min-height: 46px; padding: 0 22px; font-size: .95rem; }

.actions, .btn-row { display: flex; align-items: center; gap: 8px; }
.btn-row.end { justify-content: flex-end; }
/* Telefonda sığmayan düğme satırı alt satıra geçer; tek başına sığmayan düğmenin yazısı kırılır (yatay taşma olmaz). */
@media (max-width: 640px) {
    .btn-row { flex-wrap: wrap; }
    .btn-row > .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
}

/* İşlem sürüyorken düğmede küçük dönen gösterge */
.btn.is-busy { color: transparent !important; pointer-events: none; }
.btn.is-busy::after {
    content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-color: var(--btn-text) transparent var(--btn-text) transparent;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- Form alanları */
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; min-width: 0; }
.form-group > label, .field-label, fieldset legend {
    font-size: .84rem;
    font-weight: 500;
    color: var(--text);
}
.form-group > .hint { margin-top: 0; }
.form-row, .grid2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0 16px;
    align-items: start;
}
.form-row > .check { margin-bottom: 12px; }
.form-actions, .modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

input[type=text], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=url], input[type=email], input[type=search], input[type=tel], input:not([type]),
select, textarea, .inline-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: var(--bg-2);
    color: var(--text);
    font: inherit;
    font-size: .9rem;
    line-height: 1.35;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-appearance: none;
    appearance: none;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select {
    padding-inline-end: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: var(--cv-cur-hand, pointer);
}
select option { background: var(--card); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); }
input:focus, select:focus, textarea:focus, .inline-input:focus {
    outline: none;
    border-color: var(--accent-line);
    background-color: var(--bg-2);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; }
input[readonly], textarea[readonly] { background: var(--card); color: var(--text-2); }
input[type=date], input[type=time] { min-width: 0; }
input[type=number] { -moz-appearance: textfield; }
input[type=search]::-webkit-search-cancel-button { filter: grayscale(1); }
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }

input[type=checkbox], input[type=radio] {
    width: 17px; height: 17px; margin: 0; flex: none;
    accent-color: #9a63c2; cursor: var(--cv-cur-hand, pointer);
}
.check, label.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    font-weight: 400;
    color: var(--text);
    cursor: var(--cv-cur-hand, pointer);
    line-height: 1.4;
}
.check-row { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 4px; }

fieldset {
    margin: 4px 0 16px;
    padding: 16px 16px 4px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card-2);
}
fieldset legend { padding: 0 6px; }

/* Parola göster / gizle */
.pw-field { position: relative; }
.pw-field input { padding-inline-end: 46px; }
.pw-toggle {
    position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 34px; height: 34px;
    border: 0; border-radius: var(--r); background: transparent; color: var(--text-3); cursor: var(--cv-cur-hand, pointer);
}
.pw-toggle:hover { color: var(--text); background: var(--hover); }
.pw-toggle .i-eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .i-eye { display: none; }
.pw-toggle[aria-pressed="true"] .i-eye-off { display: block; }

/* details (gelişmiş alanlar, elle bağlama formları) */
details > summary { cursor: var(--cv-cur-hand, pointer); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.disclosure, details.wa-manual {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card-2);
}
.disclosure > summary, details.wa-manual > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 16px;
    font-size: .88rem; font-weight: 600; color: var(--text);
}
.disclosure > summary::after, details.wa-manual > summary::after, details.adv > summary::after {
    content: "";
    width: 9px; height: 9px; flex: none;
    border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .3s var(--ease);
}
.disclosure[open] > summary::after, details.wa-manual[open] > summary::after, details.adv[open] > summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}
.disclosure > :not(summary), details.wa-manual > :not(summary) { margin-inline: 16px; }
.disclosure > :last-child, details.wa-manual > :last-child { margin-bottom: 16px; }
details.wa-manual > .hint:first-of-type { margin-top: 0; }
details.adv { margin: 4px 0 14px; }
details.adv > summary {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .82rem; color: var(--text-2); font-weight: 500; padding: 4px 0;
}
details.adv[open] > summary { margin-bottom: 12px; }

/* ---------------------------------------------------------------- Durum yazıları (eski "badge"ler) */
/* Hap rozet yok: küçük bir nokta ve sakin bir metin. */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    background: none;
    color: var(--text-2);
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    vertical-align: middle;
    text-decoration: none !important;
}
.badge::before {
    content: "";
    width: 7px; height: 7px; flex: none;
    border-radius: 50%;
    background: var(--neutral);
}
.badge-ok, .badge-active, .badge-current, .badge-set { color: var(--ok-text); }
.badge-ok::before, .badge-active::before, .badge-current::before, .badge-set::before { background: var(--ok); }
.badge-bad, .badge-missing, .badge-error, .badge-failed, .badge-unset { color: var(--bad-text); }
.badge-bad::before, .badge-missing::before, .badge-error::before, .badge-failed::before, .badge-unset::before { background: var(--bad); }
.badge-warn, .badge-stale, .badge-incomplete, .badge-pending { color: var(--warn-text); }
.badge-warn::before, .badge-stale::before, .badge-incomplete::before, .badge-pending::before { background: var(--warn); }
.badge-plain, .badge-disabled, .badge-inactive { color: var(--text-2); }
.badge-inactive::before { background: var(--text-3); }
/* Tür etiketleri (Kanal, Yürütücü, demo, plan): noktasız, ince metin */
.badge-demo, .badge-channel, .badge-executor, .badge.tag { color: var(--text-3); font-weight: 500; }
.badge-demo::before, .badge-channel::before, .badge-executor::before, .badge.tag::before { display: none; }
a.badge:hover { text-decoration: underline !important; }

/* Ölçü listesi (sayaçlar): "WhatsApp 12 · Instagram 4" */
.kv { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.kv-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; width: 100%; padding: 10px 0; border-top: 1px solid var(--line); }
.kv-line:first-child { border-top: 0; padding-top: 0; }
.kv-line > .kv-k { flex: 0 0 120px; color: var(--text-3); font-size: .82rem; }
.metric { display: inline-flex; align-items: baseline; gap: 8px; font-size: .88rem; color: var(--text-2); white-space: nowrap; max-width: 100%; }
.metric b { color: var(--text); font-weight: 600; }
.metric .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral); align-self: center; }
.metric.ok .dot { background: var(--ok); }
.metric.warn .dot { background: var(--warn); }
.metric.bad .dot { background: var(--bad); }

/* ---------------------------------------------------------------- İstatistikler */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.stat {
    position: relative;
    padding: 18px 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    min-width: 0;
    overflow: hidden;
}
.stat::before {
    content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
    opacity: .7;
}
/* Renkli istatistik: üstte ince renk çizgisi, köşede hafif ışık */
.stat[class*="c-"]::before { background: linear-gradient(90deg, transparent 4%, color-mix(in srgb, var(--c) 70%, transparent), transparent 96%); opacity: .8; }
.stat[class*="c-"]::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 55%);
}
.stat-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stat-top .tile { width: 32px; height: 32px; }
.stat-top .tile .ic { width: 17px; height: 17px; }
.stat-top .label { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.stat .stat-top + .value { margin-top: 12px; }
.stat .label { font-size: .82rem; color: var(--text-2); font-weight: 500; text-transform: none; letter-spacing: 0; }
.stat .value {
    margin-top: 6px;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--text);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.stat .value.small, .stat .value[style*="font-size"] { font-size: 1rem !important; line-height: 1.5; letter-spacing: -.01em; font-weight: 500; }
.stat .detail { margin-top: 6px; font-size: .8rem; color: var(--text-3); }
.stats > .empty { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- Araç çubuğu */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.toolbar select { width: auto; min-width: 220px; min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
.toolbar .hint { margin: 0 0 0 auto; text-align: end; }

/* ---------------------------------------------------------------- Tablolar */
.table-wrap {
    position: relative; /* gizli başlık metinleri (sr-only) tablo kutusunun dışına taşmasın */
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow-x: auto;
    margin-bottom: 16px;
}
.card .table-wrap, .card > table { margin-bottom: 0; }
.card > table { width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td {
    padding: 13px 16px;
    text-align: start;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}
th {
    background: transparent;
    color: var(--text-3);
    font-size: .78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s ease; }
tbody tr:hover td { background: var(--hover); }
table.data tr.click { cursor: var(--cv-cur-hand, pointer); }
td .hint { margin-top: 3px; }
td code { white-space: nowrap; }
td.actions, td:last-child:has(> .btn) { white-space: nowrap; }
td.actions { display: table-cell; }
td.actions > .btn + .btn, td > .btn + .btn { margin-inline-start: 6px; }
.card > table th:first-child, .card > table td:first-child { padding-inline-start: 0; }
.card > table th:last-child, .card > table td:last-child { padding-inline-end: 0; }

/* Satır menüsü (⋯): ikincil işlemler tek bir menüde */
.table-wrap.menu-wrap { overflow: visible; }
.row-menu { position: relative; display: inline-block; vertical-align: middle; }
.row-menu > summary {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px;
    border: 1px solid var(--line-2); border-radius: var(--r);
    color: var(--text-2);
    transition: background .2s ease, border-color .2s ease;
}
.row-menu > summary:hover, .row-menu[open] > summary { background: var(--hover); border-color: var(--accent-line); color: var(--text); }
.row-menu > summary .ic { width: 16px; height: 16px; }
.row-menu-list {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    z-index: 60;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    padding: 6px;
    background: var(--elev);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    animation: menuIn .2s var(--ease) both;
}
html[data-theme="light"] .row-menu-list { background: #fff; }
.row-menu-list button, .row-menu-list a {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 10px;
    border: 0; border-radius: 3px;
    background: none; color: var(--text);
    font: inherit; font-size: .86rem; text-align: start; white-space: nowrap;
    cursor: var(--cv-cur-hand, pointer); text-decoration: none !important;
}
.row-menu-list button:hover, .row-menu-list a:hover { background: var(--hover); }
.row-menu-list .ic { width: 16px; height: 16px; color: var(--text-3); }
.row-menu-list .danger, .row-menu-list .danger .ic { color: var(--bad-text); }
.row-menu-list .danger:hover { background: var(--bad-soft); }
.row-menu-sep { height: 1px; margin: 4px 2px; background: var(--line-2); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Satır işlemleri: tek satırda; sığmazsa yatay kayar, alt alta dökülmez */
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions .btn { min-height: 30px; padding: 0 10px; font-size: .8rem; }
.empty, .mi-empty, .mp-empty {
    padding: 28px 16px;
    color: var(--text-3);
    text-align: center;
    font-size: .88rem;
    font-style: normal;
}
td.empty { padding: 28px 16px; }

/* ---------------------------------------------------------------- Pencereler (modal) */
.modal-bg, .modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    overflow-y: auto;
    background: var(--overlay);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.modal-bg.open, .modal.open { display: flex; animation: fadeIn .25s ease both; }
.modal-bg > .modal, .modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: none;
    margin: auto;
    padding: 28px;
    background: var(--bg-2);
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    animation: modalIn .38s var(--ease) both;
}
html[data-theme="light"] .modal-bg > .modal, html[data-theme="light"] .modal-content { background: var(--bg); }
.modal-bg > .modal { display: block; position: relative; inset: auto; max-width: 880px; padding: 28px; overflow: visible; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: auto; }
.modal-content.wide { max-width: 820px; }
.modal-content > h2, .modal-bg > .modal h2 { font-size: 1.2rem; margin: 0 0 18px; }
.modal-bg > .modal h3 {
    margin: 24px 0 10px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-3);
    text-transform: none;
    letter-spacing: 0;
}
.modal-actions { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.modal-head h2 { margin: 0 !important; }
.modal-close { margin-inline-start: auto; }
.modal-sub { font-weight: 400; color: var(--text-3); font-size: .9rem; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
html.has-modal, html.has-modal body { overflow: hidden; }

/* İki sütunlu anahtar–değer listesi (fırsat ayrıntısı) */
.modal .kv, .kv-grid {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 10px 18px;
    font-size: .88rem;
}
.modal .kv .k, .kv-grid .k { color: var(--text-3); }
.list { margin: 6px 0 0; padding-inline-start: 18px; font-size: .86rem; color: var(--text-2); }
.list li { margin: 3px 0; }
.src { margin-inline-start: 6px; font-size: .74rem; color: var(--text-3); white-space: nowrap; }
.src-inferred { color: var(--warn-text); }

.code-block {
    margin: 0;
    padding: 16px;
    max-height: 60vh;
    overflow: auto;
    background: var(--code-bg);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: .8rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ---------------------------------------------------------------- Bildirimler (toast): dosyanın sonunda, demo paneldeki yığın */

/* ---------------------------------------------------------------- Gizlilik bağlantısı (alt sağ, küçük) */
.legal-link {
    flex: none;
    display: block;
    width: max-content;
    margin: 0 max(24px, calc((100% - var(--wrap)) / 2)) 16px auto;
    padding: 4px 0;
    color: var(--text-3) !important;
    font-size: .74rem;
    font-weight: 500;
    transition: color .2s ease;
}
.legal-link:hover { color: var(--text) !important; text-decoration: none; }

/* ---------------------------------------------------------------- Giriş sayfaları */
.auth-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
}
/* Yumuşak marka ışığı: ızgaranın üstünde, şeritlerin altında */
.auth-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 50% -8%, rgba(154, 99, 194, .22), transparent 70%),
        radial-gradient(40% 35% at 85% 110%, rgba(248, 87, 107, .08), transparent 70%);
}
html[data-theme="light"] .auth-body::after {
    background:
        radial-gradient(60% 50% at 50% -8%, rgba(154, 99, 194, .14), transparent 70%),
        radial-gradient(40% 35% at 85% 110%, rgba(186, 15, 58, .05), transparent 70%);
}
.auth-body > .bg-ribbons { position: fixed; }
.auth-body .nav { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.auth-main { flex: 1; display: grid; place-items: center; padding: 24px 16px 48px; }
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 34px 30px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    animation: modalIn .6s var(--ease) both;
}
.auth-card .eyebrow-mark { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card .eyebrow-mark img { height: 34px; width: auto; }
.auth-card h1 { font-size: 1.5rem; text-align: center; letter-spacing: -.025em; }
.auth-card .subtitle { margin: 8px 0 26px; text-align: center; color: var(--text-2); font-size: .92rem; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-card .btn-primary { width: 100%; min-height: 46px; margin-top: 6px; font-size: .95rem; }
.auth-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--text-3); font-size: .84rem; }
.auth-foot a { font-weight: 500; }

/* ---------------------------------------------------------------- Giriş sayfaları: sabit tema (panel girişi, sistem yönetimi girişi,
   iki adımlı doğrulama). Shopify'daki gibi koyu sayfa, ortada beyaz kart; üstte solda yalnız logo
   (convotify.com'a gider), altta küçük yardım satırı. Tema düğmesi yok; sayfa her ziyaretçide aynı görünür. */
html:has(body.pl-body) { background: #0c0c0e; }
body.pl-body { background: #0c0c0e; color: #f4f4f5; }
body.pl-body::after { background: radial-gradient(90% 60% at 50% -14%, rgba(255, 255, 255, .045), rgba(255, 255, 255, 0) 70%); }
.pl-logo {
    position: absolute; top: 26px; inset-inline-start: 32px; z-index: 2;
    display: inline-flex; align-items: center; gap: 9px; padding: 4px 2px;
    color: #fff !important; font-size: 1.14rem; font-weight: 650; letter-spacing: -.02em; text-decoration: none !important;
}
.pl-logo img { width: 30px; height: 30px; }
.pl-logo:focus-visible { outline: 2px solid #c9b3ff; outline-offset: 4px; border-radius: 8px; }
.pl-main { flex: 1; display: grid; place-items: center; padding: 96px 16px 28px; }
.pl-card {
    width: 100%; max-width: 440px; padding: 38px 40px 34px; border-radius: 20px;
    background: #fff; color: #17171b; box-shadow: 0 30px 80px -32px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06);
    animation: plIn .5s var(--ease) both;
}
.pl-mark { display: block; width: 40px; height: 40px; margin: 0 0 18px; }
.pl-card h1 { margin: 0; color: #17171b; font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; }
.pl-sub { margin: 5px 0 26px; color: #616168; font-size: .9rem; line-height: 1.5; }
.pl-card .error { margin-bottom: 16px; }
.pl-card .subtitle { margin: 5px 0 24px; text-align: start; color: #616168; font-size: .9rem; line-height: 1.5; }
.pl-card .hint { color: #6b6b74; }
.pl-card .auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e4e4e7; color: #6b6b74; }
.pl-card .auth-foot a { color: #6f45b0; font-weight: 600; }
.pl-card .btn-ghost { color: #3f3f46; }
.pl-card .btn-ghost:hover:not(:disabled) { background: #f1f1f3; }
.pl-card .form-group { gap: 6px; margin-bottom: 14px; }
.pl-card .form-group > label { color: #2b2b31; font-size: .84rem; font-weight: 500; }
.pl-card input[type=text], .pl-card input[type=password], .pl-card input[type=email] {
    min-height: 44px; padding: 10px 12px; border: 1px solid #d4d4d8; border-radius: 10px; background: #f7f7f8; color: #17171b; font-size: .95rem;
}
.pl-card .pw-field input { padding-inline-end: 46px; }
.pl-card input:hover { border-color: #b8b8c0; }
.pl-card input:focus { border-color: #6f45b0; background: #fff; box-shadow: 0 0 0 3px rgba(111, 69, 176, .16); }
.pl-card .pw-toggle { color: #6b6b74; }
.pl-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 18px; }
.pl-card .check { color: #3f3f46; font-size: .86rem; }
.pl-link { padding: 4px 0; border: 0; background: none; color: #6f45b0; font: inherit; font-size: .86rem; font-weight: 600; cursor: var(--cv-cur-hand, pointer); }
.pl-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-link:focus-visible { outline: 2px solid #6f45b0; outline-offset: 3px; border-radius: 4px; }
.pl-card .btn-primary {
    width: 100%; min-height: 46px; justify-content: center; border: 0; border-radius: 10px;
    background: linear-gradient(180deg, #3a3a41, #17171b); color: #fff; font-size: .95rem; font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 2px rgba(0, 0, 0, .3);
}
.pl-card .btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #46464e, #202026); }
.pl-card .btn-primary:focus-visible { outline: 2px solid #6f45b0; outline-offset: 2px; }
.pl-card .btn-primary .ic { width: 17px; height: 17px; }
.pl-or { display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; color: #8a8a92; font-size: .82rem; }
.pl-or::before, .pl-or::after { content: ""; flex: 1; height: 1px; background: #e4e4e7; }
.pl-alt { display: flex; flex-direction: column; gap: 10px; }
.pl-social {
    display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 16px;
    border: 0; border-radius: 10px; background: #f1f1f3; color: #17171b !important; font: inherit; font-size: .92rem; font-weight: 600;
    text-decoration: none !important; cursor: var(--cv-cur-hand, pointer); transition: background .15s ease;
}
.pl-social:hover { background: #e7e7ea; }
.pl-social:active { background: #dedee2; }
.pl-social:focus-visible { outline: 2px solid #6f45b0; outline-offset: 2px; }
.pl-social img { width: 18px; height: 18px; }
.pl-new { margin: 24px 0 0; color: #3f3f46; font-size: .88rem; line-height: 1.5; }
.pl-new .pl-signup { display: inline-flex; align-items: center; gap: 4px; color: #6f45b0 !important; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
.pl-new .pl-signup .ic { width: 14px; height: 14px; transform: rotate(180deg); transition: transform .2s ease; }
.pl-new .pl-signup:hover .ic { transform: rotate(180deg) translateX(-2px); }
.pl-new .pl-signup:focus-visible { outline: 2px solid #6f45b0; outline-offset: 3px; border-radius: 4px; }
/* "Şifremi unuttum": sıfırlama formu giriş formunun yerini alır */
.pl-form-body.is-forgot :is(#panelLoginForm, #googleLogin, #loginError, .pl-new) { display: none; }
.pl-forgot { animation: plIn .35s var(--ease) both; }
.pl-forgot .form-group { margin-bottom: 16px; }
.pl-forgot .hint { margin: 12px 0 0; color: #616168; }
.pl-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; }
.pl-back .ic { width: 16px; height: 16px; }
/* Alt satır: yardım ve küçük bağlantılar */
.pl-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 16px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; color: #a1a1aa; font-size: .78rem; }
.pl-foot p { margin: 0; line-height: 1.6; }
.pl-foot a { color: #e4e4e7 !important; font-weight: 500; text-decoration: none !important; white-space: nowrap; }
.pl-foot a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.pl-foot .pl-help { color: #fff !important; font-size: .84rem; font-weight: 600; }
@keyframes plIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
    .pl-logo { top: 16px; inset-inline-start: 16px; }
    .pl-main { padding: 72px 12px 16px; }
    .pl-card { padding: 30px 22px 26px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-card, .pl-forgot { animation: none; }
}
.error, .form-error {
    display: none;
    margin: 0 0 18px;
    padding: 12px 14px;
    color: var(--bad-text);
    background: var(--bad-soft);
    border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent);
    border-radius: var(--r);
    font-size: .88rem;
    line-height: 1.45;
}
.error.show, .form-error.is-visible { display: block; animation: shake .4s var(--ease) both; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Geçici şifre değiştirme penceresi (panel) */
.gate {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: var(--overlay);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.gate .auth-card { max-width: 440px; }
.gate .auth-card h2 { font-size: 1.3rem; text-align: center; }
.gate .btn-row { margin-top: 8px; }
.gate .btn-row .btn { flex: 1; }

/* ---------------------------------------------------------------- Sağlayıcı (entegrasyon) kartları */
.provider-card { padding: 22px 24px; }
.provider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.provider-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}
.provider-name .pv-title { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.provider-name .pv-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-name .pv-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 400; }
.provider-name .badge { font-size: .8rem; }
.pv-logo {
    display: grid; place-items: center; flex: none;
    width: 42px; height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card-2);
}
.pv-logo img { width: 24px; height: 24px; object-fit: contain; }
.pv-logo .ic { width: 22px; height: 22px; color: var(--accent-2); }
html[data-theme="light"] .pv-logo .ic { color: var(--accent); }
.provider-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.provider-desc { margin: 14px 0 0; font-size: .88rem; color: var(--text-2); line-height: 1.55; }
.provider-card > .hint { margin-top: 8px; }
.provider-card > .note { margin: 14px 0 0; }
.provider-card form { margin-top: 18px; }
.provider-card form > .check { margin-bottom: 16px; }
.provider-meta-row { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: .84rem; color: var(--text-2); }
.provider-meta-row strong { color: var(--text); }
.copy-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: nowrap; }
.copy-line .k { color: var(--text-3); font-size: .82rem; white-space: nowrap; }
.copy-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; padding: 6px 9px; }
.status-line { margin-top: 10px; font-size: .84rem; color: var(--text-2); min-height: 0; }
.status-line:empty { display: none; }
.caps { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; }
.caps .badge { color: var(--text-3); }
.caps .badge::before { width: 5px; height: 5px; background: var(--line-2); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-2); }

/* ---------------------------------------------------------------- Sohbet kutusu (inbox.js) */
.mi-root {
    display: grid;
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 0;
    height: calc(100vh - var(--top-h) - var(--bottom-h) - 96px - var(--inbox-offset, 0px));
    height: calc(100dvh - var(--top-h) - var(--bottom-h) - 96px - var(--inbox-offset, 0px));
    min-height: 560px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
.mi-col { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--card); }
.mi-col + .mi-col { border-inline-start: 1px solid var(--line); background: var(--bg-2); }
html[data-theme="light"] .mi-col + .mi-col { background: #fbfbfc; }

.mi-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}
.mi-filters input[type=search] {
    grid-column: 1 / -1;
    padding-inline-start: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 13px center;
}
.mi-filters select, .mi-filters input { min-height: 38px; font-size: .86rem; padding-top: 7px; padding-bottom: 7px; }
.mi-filters label { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-2); cursor: var(--cv-cur-hand, pointer); padding: 4px 2px; }
.mi-filters select[data-f="tenant"] { grid-column: 1 / -1; }

.mi-list { flex: 1; overflow-y: auto; max-height: none; overscroll-behavior: contain; }
.mi-item {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 2px 12px;
    padding: 14px 16px 14px 14px;
    border-bottom: 1px solid var(--line);
    cursor: var(--cv-cur-hand, pointer);
    transition: background .15s ease;
}
.mi-item:hover { background: var(--hover); }
.mi-item.active { background: var(--accent-soft); }
.mi-item.active::before {
    content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 2px; background: var(--btn-grad);
}
.mi-ch {
    grid-row: 1 / span 3;
    align-self: center; /* kanal logosu satırın (ad, önizleme, etiketler) tam ortasında */
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--card-2);
    border: 1px solid var(--line);
}
.mi-ch img { width: 18px; height: 18px; object-fit: contain; }
.mi-item-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
.mi-name { font-weight: 600; font-size: .9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-time { font-size: .74rem; color: var(--text-3); white-space: nowrap; }
.mi-row2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mi-preview { flex: 1; min-width: 0; font-size: .84rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0; }
.mi-unread {
    display: inline-grid; place-items: center; flex: none;
    min-width: 20px; height: 20px; padding: 2px 6px 0;
    border-radius: var(--r);
    background: var(--btn-grad);
    color: #fff;
    font-size: .7rem; font-weight: 600;
}
.mi-tags { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-top: 3px; font-size: .76rem; color: var(--text-3); }
.mi-tag { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mi-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--neutral); }
/* Durum renkleri genel bakıştaki grafikle aynı: yapay zeka mor, ekip turuncu, açık mavi, kapalı gri */
.mi-tag.s-ai::before { background: var(--ch-ai); }
.mi-tag.s-team::before { background: var(--ch-team); }
.mi-tag.s-closed::before { background: var(--ch-closed); }
.mi-tag.s-open::before { background: var(--ch-open); }
.mi-tag.t-hot { color: var(--bad-text); }
.mi-tag.t-hot::before { background: var(--bad); }
.mi-tag.t-warm { color: var(--warn-text); }
.mi-tag.t-warm::before { background: var(--warn); }
.mi-tag.t-cold::before { background: #7dd3fc; }
.mi-tag.tenant::before { display: none; }
.mi-tag.tenant { color: var(--text-2); }
.mi-more { padding: 14px; text-align: center; }
.mi-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 40px;
    color: var(--text-3);
    font-size: .92rem;
    text-align: center;
}
.mi-placeholder .ic { width: 34px; height: 34px; color: var(--accent); opacity: .7; stroke-width: 1.4; }

.mi-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}
.mi-head-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.mi-head h3 { margin: 0; font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mi-sub { margin-top: 3px; font-size: .8rem; color: var(--text-3); line-height: 1.45; }
.mi-back { display: none; }
.mi-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.mi-actions .mi-btn { min-height: 32px; }
.mi-actions .mi-btn .ic { width: 15px; height: 15px; }

.mi-intel { border-bottom: 1px solid var(--line); background: var(--card); font-size: .84rem; }
.mi-intel > details > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 11px 20px;
    font-weight: 600; font-size: .84rem; color: var(--text);
}
.mi-intel > details > summary::after {
    content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease);
}
.mi-intel > details[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.mi-intel > details > :not(summary) { margin-inline: 20px; }
.mi-intel > details[open] { padding-bottom: 14px; max-height: 32vh; overflow-y: auto; }

/* Geniş kutu: müşteri zekası sağda ayrı sütun, mesajlar tam yükseklik (sohbet kutusunun genişliğine göre) */
.mi-host { container: inbox / inline-size; }
@container inbox (min-width: 1100px) {
    .mi-col[data-r="detail"]:has(> .mi-intel:not([style*="none"])) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(280px, 28%, 340px);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas: "head head" "msgs intel" "reply intel";
    }
    .mi-col[data-r="detail"] > .mi-head { grid-area: head; }
    .mi-col[data-r="detail"] > .mi-msgs { grid-area: msgs; }
    .mi-col[data-r="detail"] > .mi-reply { grid-area: reply; }
    .mi-col[data-r="detail"] > .mi-intel {
        grid-area: intel;
        min-height: 0;
        overflow-y: auto;
        border-bottom: 0;
        border-inline-start: 1px solid var(--line);
    }
    .mi-col[data-r="detail"] > .mi-intel > details[open] { max-height: none; overflow: visible; }
    .mi-col[data-r="detail"] > .mi-intel .mi-intel-grid { grid-template-columns: 1fr; gap: 10px; }
}
@container inbox (max-width: 1000px) {
    .mi-head { flex-direction: column; align-items: stretch; gap: 10px; }
    .mi-actions { flex-wrap: wrap; }
}
@container inbox (min-width: 761px) and (max-width: 880px) {
    .mi-root { grid-template-columns: minmax(250px, 300px) 1fr; }
}
.mi-intel-title { margin: 12px 0 6px; font-size: .74rem; font-weight: 600; color: var(--text-3); }
.mi-intel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; }
.mi-intel-row { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mi-intel-k { font-size: .74rem; color: var(--text-3); }
.mi-intel-v { color: var(--text); overflow-wrap: anywhere; }
.mi-src { margin-inline-start: 5px; font-size: .7rem; color: var(--text-3); }
.mi-src-inferred { color: var(--warn-text); }

.mi-msgs {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 22px 20px;
    background: transparent;
    overscroll-behavior: contain;
}
.mi-msg { display: flex; flex-direction: column; max-width: 74%; margin-bottom: 12px; animation: msgIn .25s ease both; }
.mi-msg-in { align-items: flex-start; }
.mi-msg-out { align-items: flex-end; margin-inline-start: auto; }
.mi-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text);
}
.mi-msg-in .mi-bubble { background: var(--bubble-in); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.mi-msg-ai .mi-bubble { background: var(--bubble-ai); border: 1px solid var(--accent-line); border-bottom-right-radius: 4px; }
.mi-msg-team .mi-bubble { background: var(--bubble-team); color: #fff; border: 1px solid transparent; border-bottom-right-radius: 4px; }
.mi-meta { margin-top: 4px; font-size: .72rem; color: var(--text-3); }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.mi-reply { padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--card); }
.mi-reply textarea { min-height: 76px; max-height: 40vh; font-size: .92rem; }
.mi-reply-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.mi-reply-row .mi-btn-primary { min-height: 38px; padding: 0 18px; }
.mi-note { font-size: .8rem; color: var(--text-3); line-height: 1.45; }
label.mi-note { display: inline-flex; align-items: center; gap: 9px; cursor: var(--cv-cur-hand, pointer); }
.mi-reply [data-r="window"] .mi-note { margin-bottom: 8px; }
.mi-warn { margin-bottom: 10px; }

/* ---------------------------------------------------------------- Fiyatlar (pricing.js) */
.mp-card { padding: 22px 24px; }
.mp-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1rem; }
.mp-muted { font-size: .8rem; color: var(--text-3); font-weight: 400; }
.mp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.mp-row select, .mp-row input:not([type=checkbox]) {
    width: auto; min-width: 0; min-height: 38px;
    padding-top: 7px; padding-bottom: 7px; font-size: .86rem;
}
.mp-row select { flex: 0 0 152px; padding-inline-end: 32px; background-position: right 10px center; }
.mp-row input.mp-num { flex: 0 0 112px; }
.mp-row input.mp-cur { flex: 0 0 76px; text-transform: uppercase; }
.mp-row input.mp-noteinp { flex: 1 1 170px; }
.mp-row label.mp-muted { display: inline-flex; align-items: center; gap: 8px; cursor: var(--cv-cur-hand, pointer); white-space: nowrap; padding: 0 4px; }
.mp-row .mp-btn-icon { flex: none; }
.mp-label { flex: 0 0 110px; font-size: .84rem; font-weight: 500; color: var(--text); min-width: 0; }
.mp-regional { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.mp-regional > .mp-muted { margin-bottom: 10px !important; }
.mp-row[data-r="regional"] {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card-2);
}
.mp-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 16px; }
.mp-display { font-size: .82rem; color: var(--ok-text); white-space: nowrap; }
.mp-btn-icon { width: 32px; padding: 0; }

/* ---------------------------------------------------------------- Yönetim (sistem) sayfaları */
.hours-row {
    display: grid;
    grid-template-columns: 120px 90px 140px 140px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.hours-row:last-child { border-bottom: 0; }
.hours-row .lbl { font-size: .9rem; font-weight: 500; }
.hours-row input { min-height: 38px; padding-top: 7px; padding-bottom: 7px; }

.tenant-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.tenant-head h1 { font-size: 1.7rem; }
.tenant-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--text-3); font-size: .84rem; }
.tenant-meta code { font-size: .8rem; }
.tenant-meta .badge { font-size: .82rem; }
#hdrBadges { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.list-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.list-actions select { width: auto; min-width: 210px; min-height: 32px; padding-top: 5px; padding-bottom: 5px; font-size: .84rem; }

.pool-empty td { color: var(--text-3); font-size: .84rem; }

/* Kiracı düzenleme: sohbet kutusunun üstünde kiracı başlığı var; kutu ekrana sığsın */
#tenantInbox { --inbox-offset: 82px; }

/* Kart dışında duran listelerin başlığı: başlık + kısa açıklama solda, işlem sağda */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 36px 0 12px; }
.list-head:first-child { margin-top: 0; }
.list-head h2 { margin: 0; }
.list-head p { margin: 5px 0 0; max-width: 78ch; color: var(--text-3); font-size: .85rem; line-height: 1.5; }
.list-head > .btn { flex: none; }

.card-header select { width: auto; min-width: 230px; min-height: 38px; padding-top: 7px; padding-bottom: 7px; font-size: .86rem; }

/* Girdi + düğme (kopyala) */
.input-group { display: flex; align-items: stretch; gap: 8px; }
.input-group > input, .input-group > textarea { flex: 1; min-width: 0; }
.input-group > .btn { flex: none; min-height: 42px; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row > label { font-size: .84rem; font-weight: 500; color: var(--text); }
textarea.snippet { min-height: 132px; font-size: .8rem; line-height: 1.55; white-space: pre; overflow-x: auto; }

/* Anahtar yenileme satırı */
.key-rotate { flex-wrap: wrap; }
.key-rotate label { font-size: .84rem; color: var(--text-2); }
.key-rotate input[type=number] { width: 96px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; text-align: center; }

/* ---------------------------------------------------------------- Demo sayfası */
.demo-body { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.demo-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}
.demo-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.demo-avatar {
    display: grid; place-items: center; flex: none;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--btn-grad); color: #fff; font-weight: 600;
}
.demo-who h1 { font-size: .98rem; letter-spacing: -.01em; }
.demo-who p { margin: 2px 0 0; font-size: .78rem; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.demo-who p::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.demo-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.demo-tools label.sel { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--text-3); white-space: nowrap; }
.demo-tools select { width: auto; min-width: 210px; min-height: 36px; padding-top: 6px; padding-bottom: 6px; font-size: .85rem; }

#chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px clamp(16px, 5vw, 64px);
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}
.row {
    position: relative;
    max-width: min(76%, 680px);
    padding: 10px 14px;
    border-radius: 14px;
    font-size: .93rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    animation: messageIn .2s ease both;
}
@keyframes messageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.row.in { align-self: flex-end; background: var(--bubble-team); color: #fff; border-bottom-right-radius: 4px; }
.row.out { align-self: flex-start; background: var(--bubble-in); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.row .meta { display: block; margin-top: 5px; font-size: .7rem; text-align: end; opacity: .7; }
.typing {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 12px 15px;
    background: var(--bubble-in);
    border: 1px solid var(--line);
    border-radius: 14px; border-bottom-left-radius: 4px;
    min-width: 54px;
}
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typingBounce 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
.pill {
    align-self: center;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 2px;
    color: var(--text-3);
    font-size: .76rem; font-weight: 500;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.demo-db { margin: 0 clamp(16px, 5vw, 64px) 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); max-height: 42vh; overflow: auto; }
.demo-db > summary { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: .86rem; font-weight: 600; }
.demo-db > summary .ic { width: 16px; height: 16px; color: var(--text-3); }
.demo-db > summary #dbCount { color: var(--text-3); font-weight: 400; font-size: .8rem; }
#dbContent { padding: 0 14px 14px; font-size: .82rem; }
#dbContent select { width: auto; min-width: 240px; min-height: 34px; padding-top: 5px; padding-bottom: 5px; font-size: .84rem; }
#dbContent button { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--text); font: inherit; font-size: .82rem; cursor: var(--cv-cur-hand, pointer); }
#dbContent button:hover { background: var(--hover); }
.db-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; flex-wrap: wrap; }
.db-info { color: var(--text-3); }
.db-row { margin: 6px 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-2); }
.db-row > summary { padding: 9px 12px; font-size: .8rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-row pre { margin: 0; padding: 0 12px 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; color: var(--text); }

.composer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px clamp(16px, 5vw, 64px) 18px;
    border-top: 1px solid var(--line);
    background: var(--card);
}
.composer input { flex: 1; min-width: 0; min-height: 48px; font-size: .95rem; }
.composer .send-btn { width: 48px; min-height: 48px; padding: 0; flex: none; }
.composer .send-btn .ic { width: 19px; height: 19px; }

.demo-bar .brand { flex: none; }
.demo-bar .demo-sep { height: 26px; }
.demo-tools .btn .ic { width: 15px; height: 15px; }

/* Boş sohbet: kimlik, kısa açıklama ve öneri düğmeleri */
.demo-empty { margin: auto; max-width: 460px; padding: 28px 8px; text-align: center; animation: panelIn .55s var(--ease) both; }
.demo-empty .demo-avatar { width: 56px; height: 56px; margin: 0 auto 16px; font-size: 1.25rem; }
.demo-empty h2 { font-size: 1.2rem; letter-spacing: -.02em; }
.demo-empty p { margin: 8px 0 20px; color: var(--text-2); font-size: .92rem; line-height: 1.55; }
.demo-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
    display: inline-flex; align-items: center;
    min-height: 38px; padding: 0 15px;
    border: 1px solid var(--line-2); border-radius: var(--r);
    background: var(--card); color: var(--text);
    font: inherit; font-size: .86rem;
    cursor: var(--cv-cur-hand, pointer);
    transition: background .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.chip:hover { background: var(--hover); border-color: var(--accent-line); }
.chip:active { transform: translateY(1px); }

/* Sistem bildirimi (bağlantı / sunucu hatası) */
.row.err {
    align-self: center;
    max-width: min(92%, 560px);
    background: var(--bad-soft);
    color: var(--bad-text);
    border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent);
    border-radius: var(--r);
    font-size: .86rem;
    text-align: center;
}

/* Yazma alanı + altında küçük gizlilik bağlantısı (ayrı bir alt bilgi yok) */
.composer-area { border-top: 1px solid var(--line); background: var(--card); padding-bottom: env(safe-area-inset-bottom, 0px); }
.composer-area .composer { border-top: 0; background: transparent; padding-bottom: 6px; }
.legal-link.legal-inline {
    position: static; display: block; width: max-content;
    margin: 0 clamp(16px, 5vw, 64px) 8px auto; padding: 2px 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    font-size: .72rem;
}
#dbContent .db-info { margin: 0; padding: 4px 0 8px; color: var(--text-3); }
#dbContent button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------------------------------------------------------------- Tablet ve telefon */
@media (max-width: 1100px) {
    .nav-user { display: none; }
    .nav-context b { max-width: 40vw; }
    .demo-bar .brand-word { display: none; }
    .demo-tools label.sel span { display: none; }
}
.demo-who > div { min-width: 0; }
.demo-who h1, .demo-who p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
    .hours-row { grid-template-columns: 1fr 90px; }
    .hours-row .h-from, .hours-row .h-to { grid-column: auto; }
    .hours-row .h-note { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body { font-size: 15px; }
    :root { --nav-h: 58px; }
    .nav-inner { padding: 0 16px; }
    .nav-inner { gap: 12px; }
    .brand { font-size: 15px; }
    .nav .brand-word { display: none; }
    .nav-sep { display: none; }
    .nav-context b { max-width: 46vw; font-size: .88rem; }
    .nav-actions { gap: 6px; }
    .nav-actions .btn-label { display: none; }
    .nav-actions .btn { width: 36px; min-height: 36px; padding: 0; }
    .page { padding: 20px 16px 28px; }
    h1 { font-size: 1.35rem; }
    .page-head, .header-row, .tenant-head { flex-direction: column; align-items: stretch; gap: 14px; }
    .head-actions, .header-row .actions, .header-row > .toolbar { width: 100%; }
    .head-actions > .btn, .header-row .actions > .btn { flex: 1; }
    .card, .provider-card, .mp-card { padding: 18px 16px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric { white-space: normal; }
    .metric b { white-space: nowrap; }
    .kv-line > .kv-k { flex-basis: 100%; }
    .stat { padding: 14px 15px; }
    .stat .value { font-size: 1.4rem; }
    .toolbar { flex-wrap: wrap; }
    .toolbar select { flex: 1; min-width: 0; }
    .toolbar .hint { width: 100%; margin: 0; text-align: start; }
    .form-row, .grid2 { grid-template-columns: 1fr; }
    input, select, textarea { font-size: 16px !important; } /* iOS: odakta yakınlaştırma olmasın */
    .form-actions, .modal-actions { position: sticky; bottom: 0; margin-inline: -16px; margin-bottom: -16px; padding: 14px 16px; background: var(--bg-2); }
    .form-actions .btn, .modal-actions .btn { flex: 1; }
    .provider-head { flex-direction: column; align-items: stretch; }
    .provider-actions { overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
    .provider-actions::-webkit-scrollbar { display: none; }
    .copy-line { flex-wrap: wrap; }
    .copy-line code { flex-basis: 100%; }
    .legal-link { margin: 0 16px 18px auto; }

    /* Pencereler alttan açılan sayfa gibi */
    .modal-bg, .modal { padding: 0; align-items: flex-end; }
    .modal-bg > .modal, .modal-content {
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        margin: 0;
        padding: 22px 16px 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 12px 12px 0 0;
        border-bottom: 0;
        animation: sheetIn .4s var(--ease) both;
    }
    /* Pencere düğmeleri alt kenara yapışık; altında içerik görünmez */
    .modal-content .modal-actions, .modal-bg > .modal .modal-actions {
        margin-bottom: 0;
        padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }
    @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
    .modal .kv, .kv-grid { grid-template-columns: 1fr; gap: 2px 0; }
    .modal .kv .k { margin-top: 8px; }

    /* Sohbet kutusu: liste sayfanın akışında; açılan sohbet tam ekran (aşağıda .mi-thread) */
    .mi-host { container-type: normal; }
    .mi-root {
        display: block;
        height: auto;
        min-height: 0;
        margin-inline: -16px;
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }
    .mi-root > .mi-col:first-child { background: transparent; }
    .mi-root > .mi-col[data-r="detail"] { display: none; }
    .mi-list { flex: none; overflow: visible; }

    .mp-row select, .mp-row input.mp-num, .mp-row input.mp-cur { flex: 1 1 calc(50% - 4px); }
    .mp-row .mp-label, .mp-row input.mp-noteinp, .mp-row .mp-display { flex: 1 1 100%; }
    .mp-row label.mp-muted { margin-inline-end: auto; }

    .hours-row { grid-template-columns: 1fr auto; }
    .hours-row .h-from, .hours-row .h-to { grid-column: span 1; }

    .list-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 30px; }
    .list-head > .list-actions { width: 100%; }
    .list-actions select { flex: 1; min-width: 0; }
    .card-header { flex-wrap: wrap; }
    .card-header select { flex: 1 1 100%; width: 100%; min-width: 0; }

    .demo-bar { flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
    .demo-tools { width: 100%; margin: 0; }
    .demo-tools label.sel { flex: 1; }
    .demo-tools label.sel span { display: none; }
    .demo-tools select { flex: 1; min-width: 0; }
    #chat { padding: 18px 14px; }
    .row { max-width: 88%; }
    .composer { padding: 10px 12px 12px; }
    .composer-area .composer { padding-bottom: 4px; }
    .legal-link.legal-inline { margin: 0 14px 6px auto; }
    .demo-db { margin: 0 12px 8px; }
    .demo-bar .brand, .demo-bar .demo-sep { display: none; }
    .demo-tools .btn-label { display: none; }
    .demo-tools .btn { width: 36px; min-height: 36px; padding: 0; }
    .demo-empty { padding: 18px 4px; }
}

/* Tablet ve telefon: tablolar satır başına bir kart */
@media (max-width: 900px) {
    .table-wrap { background: transparent; border: 0; overflow: visible; }
    .table-wrap table, .card > table { display: block; }
    .table-wrap thead, .card > table thead { display: none; }
    .table-wrap tbody, .card > table tbody { display: grid; gap: 10px; }
    .table-wrap tr, .card > table tr {
        display: grid;
        grid-template-columns: 1fr;
        padding: 14px 16px;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--r);
    }
    .card > table tr { background: var(--card-2); }
    /* Hücre: solda sütun adı, sağda değer(ler); birden çok öğe sağda yan yana durur */
    .table-wrap td, .card > table td {
        display: flow-root;
        padding: 6px 0 !important;
        border: 0;
        text-align: end;
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .table-wrap td[data-label]::before, .card > table td[data-label]::before {
        content: attr(data-label);
        float: left;
        max-width: 45%;
        margin-inline-end: 14px;
        color: var(--text-3);
        font-size: .8rem;
        text-align: start;
        line-height: 1.7;
    }
    .table-wrap td .badge + .badge, .card > table td .badge + .badge { margin-inline-start: 10px; }
    .table-wrap td:first-child, .card > table td:first-child {
        display: block;
        text-align: start;
        font-weight: 600;
        font-size: .95rem;
        padding-bottom: 8px !important;
    }
    .table-wrap td:first-child::before, .card > table td:first-child::before { display: none; }
    .table-wrap td.actions, .card > table td:last-child:has(> .btn), .table-wrap td:last-child:has(> .btn) {
        display: flex;
        justify-content: flex-end;
        gap: 6px;
        flex-wrap: wrap;
        padding-top: 12px !important;
        margin-top: 6px;
        border-top: 1px solid var(--line);
    }
    .table-wrap td.actions::before, .card > table td:last-child:has(> .btn)::before, .table-wrap td:last-child:has(> .btn)::before { display: none; }
    .table-wrap td.empty, .card > table td.empty { display: block; text-align: center; font-weight: 400; }
    .table-wrap td:empty, .card > table td:empty { display: none; }
    tbody tr:hover td { background: transparent; }
    td input, td select { max-width: 62%; }
}
/* Tablette kartlar iki sütun; yan yana iki kart aynı boyda, düğmeleri aynı hizada (en altta) */
@media (min-width: 640px) and (max-width: 900px) {
    .table-wrap tbody, .card > table tbody { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
    .table-wrap tr:has(> td.empty), .card > table tr:has(> td.empty) { grid-column: 1 / -1; }
    .table-wrap tr, .card > table tr { display: flex; flex-direction: column; }
    :is(.table-wrap, .card > table) tr:has(> td.actions) > td:has(+ td.actions),
    :is(.table-wrap, .card > table) tr:has(> td:last-child > .btn) > td:nth-last-child(2) { flex-grow: 1; }
}

@media (max-width: 420px) {
    .stat { padding: 13px 13px; }
    .stat .value { font-size: 1.3rem; }
    .auth-card { padding: 28px 20px 22px; }
}

/* ================================================================ Yeni parçalar (sol menü sürümü) */

/* ---------------------------------------------------------------- Yükleniyor göstergesi (marka renkleri) */
:root { --spin: conic-gradient(from 90deg, rgba(155, 85, 238, 0) 0deg, #f8576b 110deg, #c353b4 220deg, #9b55ee 340deg, #9b55ee 360deg); }
html[data-theme="light"] { --spin: conic-gradient(from 90deg, rgba(126, 51, 204, 0) 0deg, #ba0f3a 110deg, #9d2e90 220deg, #7e33cc 340deg, #7e33cc 360deg); }
.spinner {
    display: inline-block;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--spin);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 2.6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3.2px), #000 calc(100% - 2.6px));
    animation: spin .85s linear infinite;
    vertical-align: middle;
}
.empty .spinner, .mi-empty .spinner, .mp-empty .spinner, .db-info .spinner, .code-block .spinner { display: block; margin: 0 auto 10px; }
.empty.is-loading, .mi-empty.is-loading, .mp-empty.is-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.empty.is-loading .spinner, .mi-empty.is-loading .spinner, .mp-empty.is-loading .spinner { margin-bottom: 10px; }
td.empty .spinner { display: block; margin: 0 auto 10px; }
.code-block .spinner { margin: 6px 0 10px; }
.hint .spinner, .card-sub .spinner, .status-line .spinner, p .spinner { width: 15px; height: 15px; margin: 0 8px 0 0; vertical-align: -3px; display: inline-block; }
.db-info .spinner { display: inline-block; width: 15px; height: 15px; margin: 0 8px 0 0; vertical-align: -3px; }
.code-block:has(> .spinner) { color: var(--text-3); }

/* ---------------------------------------------------------------- Grafikler */
.chart-split { display: flex; align-items: center; gap: 30px; }
.chart-split > .legend { flex: 1; min-width: 0; }
.donut { position: relative; flex: none; width: 176px; aspect-ratio: 1; }
.donut svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dn-track { fill: none; stroke: var(--ch-track); stroke-width: 12; }
.dn-seg { fill: none; stroke-width: 12; transition: stroke-width .2s var(--ease), opacity .2s ease; }
.dn-seg:hover { stroke-width: 14.5; }
.donut:has(.dn-seg:hover) .dn-seg:not(:hover) { opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
    .dn-seg { animation: dnIn 1s var(--ease) calc(var(--i, 0) * .07s) both; }
}
@keyframes dnIn { from { stroke-dasharray: 0 252; } }
.dn-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.dn-center b { font-size: 1.75rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.dn-center span { margin-top: 2px; font-size: .76rem; color: var(--text-3); }

.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.legend li:last-child { border-bottom: 0; }
.legend .sw { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.lg-label { flex: 1; min-width: 0; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-val { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.lg-val b { color: var(--text); font-weight: 600; }
.lg-val small { min-width: 38px; text-align: end; color: var(--text-3); font-size: .78rem; }
.legend-inline { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.legend-inline li { padding: 0; border: 0; gap: 7px; font-size: .82rem; }
.legend-inline .lg-label { flex: none; }
.legend-inline .lg-val small { min-width: 0; }

.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "lead label val" "lead track track";
    align-items: center;
    column-gap: 12px;
    row-gap: 7px;
}
.bar-row:not(:has(> .bar-lead)) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "track track"; }
.bar-lead { grid-area: lead; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card-2); }
.bar-lead .logo { width: 21px; height: 21px; }
.bar-lead .ic { width: 18px; height: 18px; color: var(--c, var(--text-2)); }
.bar-label { grid-area: label; min-width: 0; font-size: .92rem; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label small { margin-inline-start: 8px; font-size: .78rem; font-weight: 400; color: var(--text-3); }
.bar-val { grid-area: val; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.bar-val b { font-size: .95rem; font-weight: 600; color: var(--text); }
.bar-val small { min-width: 38px; text-align: end; font-size: .78rem; color: var(--text-3); }
.bar-track { grid-area: track; height: 8px; border-radius: 4px; background: var(--ch-track); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 4px; transform-origin: 0 50%; }
@media (prefers-reduced-motion: no-preference) {
    .bar-track i { animation: barGrow .85s var(--ease) calc(var(--i, 0) * .06s) both; }
}
@keyframes barGrow { from { transform: scaleX(0); } }
.bars-compact { gap: 12px; }
.bars-compact .bar-row { row-gap: 5px; }
.bars-compact .bar-label { font-size: .86rem; }
.bars-compact .bar-track { height: 6px; }

.stack { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; }
.stack i { display: block; min-width: 3px; height: 100%; }
.stack-thin { height: 8px; }
.stack-empty { background: var(--ch-track); }
@media (prefers-reduced-motion: no-preference) {
    .stack { animation: stackIn .8s var(--ease) both; }
}
@keyframes stackIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

.chart-tip {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 4000;
    padding: 6px 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: var(--elev);
    color: var(--text);
    font-size: .8rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s ease;
}
html[data-theme="light"] .chart-tip { background: #fff; }
.chart-tip.show { opacity: 1; }
.chart-empty { padding: 26px 0 18px; text-align: center; color: var(--text-3); font-size: .88rem; }
.chart-note { margin-top: 14px; font-size: .8rem; color: var(--text-3); }

/* İki eşit sütun: genel bakış, satış */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid-2 > .card { margin-bottom: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.grid-3 > .card { margin-bottom: 0; }
.stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- Sekmeli seçici */
.seg {
    --c: var(--c-violet);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 3px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow-x: auto;
    scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg [role="tab"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    min-height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 3px;
    background: none;
    color: var(--text-2);
    font: inherit;
    font-size: .86rem;
    font-weight: 500;
    white-space: nowrap;
    cursor: var(--cv-cur-hand, pointer);
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.seg [role="tab"]:hover { color: var(--text); background: var(--hover); }
.seg [role="tab"][aria-selected="true"] { background: var(--elev); color: var(--text); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .8); }
html[data-theme="light"] .seg [role="tab"][aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(20, 20, 30, .1); }
.seg [role="tab"] .ic { width: 16px; height: 16px; color: var(--c); }
.seg-count {
    min-width: 20px;
    padding: 0 6px;
    border-radius: 3px;
    background: var(--hover);
    color: var(--text-3);
    font-size: .72rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}
[aria-selected="true"] > .seg-count { background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--text); }
.seg-wide { display: flex; width: 100%; margin-bottom: 20px; }
.seg-wide [role="tab"] { flex: 1 0 auto; justify-content: center; min-height: 40px; }
.seg-in { animation: panelIn .35s var(--ease) both; }
[role="tabpanel"][hidden] { display: none !important; }

/* ---------------------------------------------------------------- Akordeon (tek kart açık) */
.acc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
details.acc {
    margin: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .2s ease, box-shadow .3s ease;
    scroll-margin-top: calc(var(--top-h) + 12px);
}
details.acc[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
details.acc > summary.acc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 14px 16px 14px 18px;
    border-radius: var(--r);
    cursor: var(--cv-cur-hand, pointer);
    list-style: none;
    transition: background .2s ease;
}
details.acc > summary.acc-head::-webkit-details-marker { display: none; }
details.acc > summary.acc-head:hover { background: var(--hover); }
details.acc[open] > summary.acc-head { border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.acc-title { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.acc-title > b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.acc-title > small { font-size: .82rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 14px; }
.acc-side { display: flex; align-items: center; gap: 12px; flex: none; color: var(--text-3); font-size: .84rem; }
.acc-chevron {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--text-2);
    transition: transform .3s var(--ease), background .2s ease, border-color .2s ease;
}
.acc-chevron .ic { width: 16px; height: 16px; }
details.acc > summary.acc-head:hover .acc-chevron { border-color: var(--accent-line); }
details.acc[open] .acc-chevron { transform: rotate(180deg); }
.acc-body { padding: 18px 18px 20px; }
@media (prefers-reduced-motion: no-preference) {
    details.acc[open] > .acc-body { animation: accIn .35s var(--ease) both; }
}
@keyframes accIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.acc-body > .provider-desc:first-child, .acc-body > :first-child { margin-top: 0; }
.acc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.acc-actions .hint { margin: 0 auto 0 0; }
details.acc .pv-logo { width: 44px; height: 44px; }
details.acc .acc-head > .tile { width: 40px; height: 40px; }
details.acc .acc-head > .tile .ic { width: 20px; height: 20px; }
.acc-body > .card-sub { margin: 0 0 16px; }
.acc-body > .form-actions { margin-top: 4px; }

/* ---------------------------------------------------------------- Liste araçları: arama + sayı */
.list-tools { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.search { position: relative; flex: 1 1 320px; max-width: 520px; }
.search > .ic { position: absolute; inset-inline-start: 13px; top: 50%; width: 17px; height: 17px; color: var(--text-3); transform: translateY(-50%); pointer-events: none; }
.search input { padding-inline-start: 40px; }
.list-count { color: var(--text-3); font-size: .84rem; white-space: nowrap; }

/* ---------------------------------------------------------------- Kiracı kartları */
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.t-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .2s ease, box-shadow .3s ease;
    animation: panelIn .45s var(--ease) both;
}
.t-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.t-card:has(.row-menu[open]) { z-index: 5; }
.t-card-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-card-top .avatar-tile { width: 44px; height: 44px; font-size: .9rem; }
.t-id { flex: 1; min-width: 0; }
.t-name { margin: 1px 0 0; font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-name a { color: var(--text) !important; }
.t-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 12px; margin-top: 5px; font-size: .8rem; color: var(--text-3); }
.t-card-top .row-menu { flex: none; margin-inline-start: auto; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.id-chip, .chip-soft {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    max-width: 100%;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    background: var(--card-2);
    color: var(--text-2);
    font: inherit;
    font-size: .78rem;
    line-height: 1.2;
    white-space: nowrap;
}
.id-chip { cursor: copy; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.id-chip:hover { border-color: var(--accent-line); background: var(--hover); color: var(--text); }
.id-chip .ic, .chip-soft .ic { width: 14px; height: 14px; flex: none; }
.id-chip .ic { color: var(--c-violet); }
.chip-soft { border-color: var(--line); color: var(--text-3); }
.chip-soft span { overflow: hidden; text-overflow: ellipsis; }
.t-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card-2);
}
.t-facts > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 9px 12px; font-size: .74rem; color: var(--text-3); }
.t-facts > span + span { border-inline-start: 1px solid var(--line); }
.t-facts b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: .88rem; font-weight: 600; }
.t-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
    border-radius: var(--r);
    background: var(--warn-soft);
    color: var(--warn-text) !important;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none !important;
}
.t-warn .ic { width: 16px; height: 16px; }
.t-warn:hover { border-color: var(--warn); }
.t-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.t-actions .btn { width: 100%; min-height: 38px; }
.grid-empty { grid-column: 1 / -1; padding: 40px 16px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-3); }
.grid-empty .tile { margin-bottom: 12px; }
.grid-empty p { margin: 0 0 14px; }

/* Küçük etiket (plan, demo, mod): 4 px köşe, hap değil */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 7px;
    border: 1px solid color-mix(in srgb, var(--c, var(--c-slate)) 32%, transparent);
    border-radius: 3px;
    background: color-mix(in srgb, var(--c, var(--c-slate)) 9%, transparent);
    color: var(--c, var(--c-slate));
    font-size: .74rem;
    font-weight: 600;
    line-height: 18px;
    white-space: nowrap;
}
.tag .ic { width: 12px; height: 12px; }

/* ---------------------------------------------------------------- Entegrasyon durumu: logolu kutucuklar */
.int-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.int-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    transition: border-color .2s ease;
}
.int-tile:hover { border-color: var(--line-2); }
.int-tile .pv-logo { width: 40px; height: 40px; }
.int-tile .pv-logo img { width: 22px; height: 22px; }
.int-tile-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.int-tile-text b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: .9rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.int-tile-text small { font-size: .78rem; line-height: 1.4; color: var(--text-3); }
.state-ring {
    display: grid;
    place-items: center;
    flex: none;
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--line-2);
    border-radius: 50%;
    color: var(--text-3);
}
.state-ring .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.state-ring.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 60%, transparent); background: color-mix(in srgb, var(--ok) 14%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 8%, transparent); }
.state-ring.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 60%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.state-ring.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 60%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.state-ring.off { border-style: dashed; }
.tab-empty { padding: 26px 16px; text-align: center; color: var(--text-3); font-size: .88rem; border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ---------------------------------------------------------------- Entegrasyonlar: kiracıya göre kutular */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; margin-bottom: 16px; }
.int-card { display: flex; flex-direction: column; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); animation: panelIn .45s var(--ease) both; }
.int-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 12px; min-width: 0; }
.int-card-head .ch-text { flex: 1; min-width: 0; }
.int-card-head h3 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-card-head p { margin: 2px 0 0; font-size: .8rem; color: var(--text-3); }
.int-health { padding: 0 18px 14px; }
.int-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.int-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.int-row:last-child { border-bottom: 0; }
.int-row .pv-logo { width: 36px; height: 36px; }
.int-row .pv-logo img { width: 20px; height: 20px; }
.int-row-main { min-width: 0; }
.int-row-main b { display: block; font-size: .9rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-row-main small { display: block; font-size: .76rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.int-row .miss { grid-column: 2 / -1; font-size: .78rem; color: var(--warn-text); line-height: 1.45; }
.int-card-foot { margin-top: auto; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.int-card-foot .btn { width: 100%; }

/* Meta / WhatsApp hesapları */
.acct-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.acct { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); }
.acct .pv-logo { width: 38px; height: 38px; }
.acct .pv-logo img { width: 21px; height: 21px; }
.acct-text { flex: 1; min-width: 0; }
.acct-text b { display: block; font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-text small { display: block; font-size: .76rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Son başarısız olaylar */
.fail-list { display: flex; flex-direction: column; gap: 10px; }
.fail {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 4px 14px;
    align-items: center;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid color-mix(in srgb, var(--bad) 20%, var(--line));
    border-radius: var(--r-md);
}
.fail > .tile { grid-row: span 2; align-self: center; }
.fail-title { min-width: 0; font-size: .92rem; font-weight: 600; color: var(--text); }
.fail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 14px; min-width: 0; font-size: .78rem; color: var(--text-3); }
.fail-err {
    grid-column: 2 / -1;
    margin: 6px 0 0;
    padding: 8px 10px;
    border-radius: var(--r);
    background: var(--bad-soft);
    color: var(--bad-text);
    font-size: .8rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.fail > .btn { grid-column: 3; grid-row: 1 / span 2; }
.ok-empty { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid color-mix(in srgb, var(--ok) 26%, transparent); border-radius: var(--r); background: var(--ok-soft); color: var(--text-2); font-size: .88rem; }

/* ---------------------------------------------------------------- Satış zekası */
.s-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; margin-bottom: 16px; }
.s-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.s-card-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.s-card-head .ch-text { flex: 1; min-width: 0; }
.s-card-head h3 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-card-head p { margin: 2px 0 0; font-size: .8rem; color: var(--text-3); }
.s-block-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: .8rem; color: var(--text-3); }
.s-block-title b { color: var(--text); font-weight: 600; font-size: .86rem; }
.kv-mini { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--text-2); }
.kv-mini b { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- Aç / kapat düğmesi (onay kutusu görünümü) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: var(--cv-cur-hand, pointer); font-size: .88rem; color: var(--text); }
.switch input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    flex: none;
    width: 38px;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: 11px;
    background: var(--elev);
    cursor: var(--cv-cur-hand, pointer);
    transition: background .2s ease, border-color .2s ease;
}
.switch input[type=checkbox]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    transition: transform .25s var(--ease);
}
.switch input[type=checkbox]:checked { background: #9a63c2; border-color: #9a63c2; }
.switch.switch-ok input[type=checkbox]:checked { background: var(--ok); border-color: var(--ok); }
.switch input[type=checkbox]:checked::after { transform: translateX(16px); }
.switch input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------------------------------------------------------- Çalışma saatleri */
.hours-row { grid-template-columns: 150px 118px 140px 140px minmax(0, 1fr); gap: 12px; padding: 10px 0; }
.hours-row .lbl { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.hours-row .lbl::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 15%, transparent); }
.hours-row.is-closed .lbl::before { background: var(--text-3); box-shadow: none; opacity: .6; }
.hours-row.is-closed .lbl { color: var(--text-2); }
.hours-row .h-sep { display: none; }

/* ---------------------------------------------------------------- Kiracı başlığı (kiracı düzenleme) */
.tenant-head { align-items: center; }
.tenant-head .head-title .avatar-tile { width: 52px; height: 52px; font-size: 1.05rem; }
.tenant-meta .id-chip, .tenant-meta .chip-soft { min-height: 26px; }

/* ---------------------------------------------------------------- Ayar listesi: etiket + açıklama solda, alan sağda */
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px 28px; padding: 16px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; padding-top: 0; }
.set-row > .set-text b { display: block; font-size: .92rem; font-weight: 600; color: var(--text); }
.set-row > .set-text p { margin: 4px 0 0; font-size: .82rem; color: var(--text-3); line-height: 1.5; }

/* ---------------------------------------------------------------- Küçük yardımcılar */
.head-actions select { width: auto; min-width: 210px; min-height: 38px; padding-top: 7px; padding-bottom: 7px; font-size: .88rem; }
.big-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 14px; }
.big-num b { font-size: 2rem; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.big-num span { color: var(--text-3); font-size: .86rem; }
.stat .value code.model-code, code.model-code { font-size: .86rem; padding: 2px 7px; overflow-wrap: anywhere; white-space: normal; }
.cell-id { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cell-id > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cell-id .hint { margin: 1px 0 0; }
.int-card-empty { padding: 16px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .86rem; }
.s-block-title > span { display: inline-flex; align-items: center; gap: 7px; }
.s-block-title .ic-sm { width: 15px; height: 15px; color: var(--text-3); }
.ok-empty.sm { padding: 10px 12px; font-size: .84rem; }
.ok-empty.sm .ic { width: 17px; height: 17px; }
.fail-meta .id-chip { min-height: 24px; padding: 0 8px; font-size: .72rem; }
.fail-meta .ic-sm { width: 14px; height: 14px; vertical-align: -2px; }
.fail-meta code { padding: 0; border: 0; background: none; color: var(--text-3); font-size: .76rem; }

/* ---------------------------------------------------------------- Akordeon içindeki parçalar */
details.acc.mp-card { padding: 0; margin: 0; }
details.acc.mp-card .acc-actions { margin-top: 16px; }
.mp-price { color: var(--ok-text); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.acc-meta .mp-muted { font-size: .8rem; }
.acc-actions.acc-actions-top { justify-content: flex-start; margin: 14px 0 4px; padding-top: 0; border-top: 0; }
.acc-body .provider-desc { margin-top: 0; }
.acc-body .toggle-row:first-child { margin-top: 0; }
.acc-body > .table-wrap { margin-bottom: 0; }
.acc-body > .key-rotate { margin-top: 4px; }
.btn .logo-sm, .btn .logo { width: 16px; height: 16px; }
.seg-count:empty { display: none; }
.list-head .head-title .tile { width: 36px; height: 36px; }
.list-head .head-title .tile .ic { width: 18px; height: 18px; }
.list-head .head-title h2 { font-size: 1.06rem; }
.hours-row .switch { font-size: .84rem; color: var(--text-2); }
.hours-row .h-state { min-width: 44px; }
.hours-row.is-closed .h-from, .hours-row.is-closed .h-to { opacity: .45; }
#tab-general > [data-tabs] > [role="tabpanel"] > .list-head:first-child { margin-top: 4px; }

.pv-acc .acc-body form { margin-top: 16px; }
.pv-acc .acc-body form > .switch { margin-bottom: 16px; }
.pv-acc .acc-body > .hint { margin-top: 8px; }
.pv-acc .acc-body .note { margin-top: 12px; }

.acc-group-title { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; }
.acc-group-title:first-child { margin-top: 0; }
.acc-group-title .tile { width: 32px; height: 32px; }
.acc-group-title .tile .ic { width: 16px; height: 16px; }
/* Yalnız yazı bloğu sütun olur; simge kutusu (.tile) kendi ortalamasını korur. */
.acc-group-title > span:not(.tile) { display: flex; flex-direction: column; min-width: 0; }
.acc-group-title b { font-size: .95rem; font-weight: 600; color: var(--text); }
.acc-group-title small { font-size: .8rem; color: var(--text-3); }
.stat .value.chart-value { margin-top: 14px; }
.stat .value.chart-value .legend-inline { margin-top: 10px; gap: 4px 12px; }
.stat .value.chart-value .legend-inline li { font-size: .78rem; }

/* Bilgi kutusunda "devamı" (uzun açıklamalar katlanır) */
details.more { margin-top: 6px; }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--info-ic); font-weight: 600; font-size: .84rem; }
details.more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-1px, -2px); transition: transform .25s var(--ease); }
details.more[open] > summary::after { transform: rotate(225deg) translate(-1px, -1px); }
details.more > ol { margin: 8px 0 2px; padding-inline-start: 20px; }
details.more > ol li { margin: 3px 0; }

.chart-empty.is-loading { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chart-empty .spinner { margin: 0; }
.tenant-meta .muted .spinner { width: 14px; height: 14px; margin: 0 7px 0 0; vertical-align: -2px; }

.link-btn { padding: 0; border: 0; background: none; color: var(--accent-2); font: inherit; font-weight: 600; cursor: var(--cv-cur-hand, pointer); text-align: start; }
html[data-theme="light"] .link-btn { color: var(--accent); }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Açık temada renkli etiket yazıları biraz koyulaşır (okunurluk, WCAG AA) */
html[data-theme="light"] .tag { color: color-mix(in srgb, var(--c, var(--c-slate)) 76%, #000); }
/* Seçili sohbet satırında küçük etiketler soluk kalmasın */
.mi-item.active .mi-tags { color: var(--text-2); }

/* ---------------------------------------------------------------- Sol menüsüz sayfalar (giriş, demo) */
.auth-body, .demo-body { --sb-w: 0px; }

/* ---------------------------------------------------------------- Küçük dizüstü / yatay tablet: dar menü, kısa adlar (demo panel) */
@media (min-width: 1024px) and (max-width: 1279.98px) {
    :root { --sb-w: 220px; }
    .sb-brand .brand { font-size: 15.5px; }
    .sb-nav .tab .tab-long { display: none; }
    .sb-nav .tab .tab-short { display: inline; }
    .page { padding-inline: 24px; }
}

/* ---------------------------------------------------------------- Tablet ve telefon: üst çubuk + çekmece menü */
@media (max-width: 1023.98px) {
    :root { --sb-w: 0px; --top-h: 58px; }
    .topbar {
        position: sticky;
        top: 0;
        z-index: 900;
        display: flex;
        align-items: center;
        gap: 10px;
        height: var(--top-h);
        padding: 0 12px 0 10px;
        background: color-mix(in srgb, var(--bg) 84%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-bottom: 1px solid var(--line);
    }
    .topbar .brand { flex: none; }
    .topbar .brand .brand-word { display: none; }
    .topbar-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
    .topbar-title b { font-size: .95rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-title small { font-size: .72rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-actions { display: flex; align-items: center; gap: 6px; flex: none; }
    .menu-btn .ic { width: 20px; height: 20px; }
    /* Uygulama gibi sade üst çubuk: simge düğmeleri çerçevesiz */
    .topbar .icon-btn { width: 40px; height: 40px; border-color: transparent; }
    .topbar .icon-btn .ic { width: 20px; height: 20px; }
    .topbar .top-back { margin-inline-start: -4px; color: var(--text) !important; }
    .topbar .top-back .ic { width: 22px; height: 22px; }

    /* Menü: alttaki çubuktan ("Menü" / "Hesap") alttan açılan sayfa olarak gelir */
    .sidebar {
        inset: auto 0 0 0;
        width: auto;
        max-height: min(86vh, 700px);
        max-height: min(86dvh, 700px);
        padding: 24px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        background: var(--bg-2);
        border: 0;
        border-top: 1px solid var(--line-2);
        border-radius: 12px 12px 0 0;
        transform: translateY(102%);
        visibility: hidden;
        transition: transform .34s var(--ease), visibility 0s linear .34s, box-shadow .34s ease;
    }
    html[data-theme="light"] .sidebar { background: var(--bg); }
    .sidebar::before {
        content: ""; position: absolute; top: 9px; left: 50%;
        width: 38px; height: 4px; margin-left: -19px;
        border-radius: 2px; background: var(--line-2);
    }
    html.sb-open .sidebar { transform: none; visibility: visible; box-shadow: 0 -18px 60px -24px rgba(0, 0, 0, .6); transition: transform .34s var(--ease), box-shadow .34s ease; }
    .sidebar.is-dragging { transition: none; }
    .sb-brand { padding: 0 0 12px; }
    .sb-back { display: none; } /* üst çubukta geri oku var */
    .sb-nav .in-bb { display: none; } /* alt çubukta zaten olan bölümler */
    .sb-nav .tab.active::before, .sb-nav .nav-btn.active::before { inset-inline-start: -16px; }
    .sb-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 940;
        background: var(--overlay);
        -webkit-backdrop-filter: blur(3px);
        backdrop-filter: blur(3px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility 0s linear .3s;
    }
    html.sb-open .sb-overlay { opacity: 1; visibility: visible; transition: opacity .3s ease; }
    html.sb-open, html.sb-open body { overflow: hidden; }
    .sb-nav .tab, .sb-nav .nav-btn { min-height: 48px; }

    /* Alt menü: altta sabit çubuk (sık kullanılan bölümler + Menü) */
    body.app { --bottom-h: calc(60px + env(safe-area-inset-bottom, 0px)); }
    .bottombar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 920;
        display: flex;
        align-items: stretch;
        height: var(--bottom-h);
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        background: color-mix(in srgb, var(--bg) 92%, transparent);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
        border-top: 1px solid var(--line);
    }
    .bb-item {
        --c: var(--accent);
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        padding: 6px 2px 5px;
        border: 0;
        background: none;
        color: var(--text-3);
        font: inherit;
        font-size: .69rem;
        font-weight: 500;
        line-height: 1.1;
        cursor: var(--cv-cur-hand, pointer);
        -webkit-tap-highlight-color: transparent;
        transition: color .2s ease;
    }
    .bb-ic {
        display: grid;
        place-items: center;
        width: 46px;
        height: 28px;
        border-radius: var(--r);
        color: var(--text-2);
        transition: background .2s ease, color .2s ease, transform .2s var(--ease);
    }
    .bb-ic .ic { width: 22px; height: 22px; }
    .bb-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bb-item:active .bb-ic { transform: scale(.92); }
    .bb-item.active { color: var(--text); font-weight: 600; }
    .bb-item.active .bb-ic { background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); }
    html[data-theme="light"] .bb-item.active .bb-ic { background: color-mix(in srgb, var(--c) 14%, transparent); }
    .bb-item:focus-visible { outline: none; }
    .bb-item:focus-visible .bb-ic { outline: 2px solid var(--accent); outline-offset: 2px; }
    .app-main { padding-bottom: var(--bottom-h); }
    /* Sayfaya yapışık kaydet çubukları alt menünün üstünde durur */
    body.app .app-main .form-actions { bottom: var(--bottom-h); }

    .stats.stats-3, .stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .bg-ribbons { width: 100%; height: clamp(220px, 46vw, 380px); opacity: .7; }
}
/* Menüde her zaman uzun ad görünür (çekmecede ikisi yan yana "TakvimTakvim" diye çıkıyordu).
   Kısa ad yalnız erişilebilir başlık / ipucu kaynağı olarak işaretlemede kalır. */
.tab .tab-short { display: none; }

@media (max-width: 860px) {
    .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .page { padding: 20px 16px 28px; }
    .head-title { gap: 12px; }
    .head-title .tile { width: 38px; height: 38px; }
    .head-title .tile .ic { width: 19px; height: 19px; }
    .card-head { flex-wrap: wrap; }
    .card-head .ch-tools { width: 100%; margin: 4px 0 0; }
    .card-head .ch-tools select { flex: 1; min-width: 0; }
    .chart-split { flex-direction: column; align-items: stretch; gap: 18px; }
    .donut { align-self: center; width: 168px; }
    .t-grid, .int-grid, .s-grid { grid-template-columns: minmax(0, 1fr); }
    .list-tools .search { max-width: none; }
    .acc-body { padding: 16px 14px 18px; }
    details.acc > summary.acc-head { padding: 12px 12px 12px 14px; gap: 12px; }
    .acc-actions { justify-content: stretch; }
    .acc-actions .btn { flex: 1 1 auto; }
    /* Telefonda alt sekmeler tek satır: yana kaydırılır; devamı oklarla ve solmayla gösterilir (ui.js stxBind) */
    .seg-wide { flex-wrap: nowrap; overflow-x: auto; }
    .seg-wide [role="tab"] { flex: 0 0 auto; padding: 0 12px; }
    .hours-row { grid-template-columns: minmax(0, 1fr) auto; }
    .hours-row .h-from, .hours-row .h-to { grid-column: span 1; }
    .hours-row .h-note { grid-column: 1 / -1; }
    .set-row { grid-template-columns: 1fr; gap: 10px; }
    .fail { grid-template-columns: auto minmax(0, 1fr); }
    .fail > .btn { order: 10; grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 8px; }
    .fail-err { grid-column: 1 / -1; }
    .stat-top .tile { width: 28px; height: 28px; }
    .stat-top .tile .ic { width: 15px; height: 15px; }
    .stats .stat-wide { grid-column: 1 / -1; }
}

/* ================================================================ Müşteri gözüyle inceleme sonrası düzeltmeler */

/* Başlıktaki düğmeler sağ üstteki şeritlerin üstüne denk gelir: zemin renginde ince bir hale kenarı belirginleştirir. */
:root { --halo: rgba(0, 0, 0, .62); }
html[data-theme="light"] { --halo: rgba(255, 255, 255, .85); }
.page-head .head-actions .btn, .list-head > .btn { box-shadow: 0 0 0 3px var(--halo); }
.page-head .head-actions .btn-primary, .list-head > .btn-primary { box-shadow: 0 0 0 3px var(--halo), 0 10px 26px -16px rgba(154, 99, 194, .9); }

/* Açık temada okunmamış sayısı ve demo avatarı düz vurgu renginde (degradenin açık ucu beyaz yazıyı soldurmasın). */
html[data-theme="light"] .mi-unread, html[data-theme="light"] .demo-avatar { background: var(--accent); }

/* Silme düğmeleri sakin; kırmızı yalnız üzerine gelince. */
.btn-del { color: var(--text-3); }
.btn-del:hover { color: var(--bad-text); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 38%, transparent); }
/* Kart altındaki düğmeler: bağlantıyı kesen / kaldıran düğme solda, Kaydet sağda. */
.acc-actions > .btn-danger { margin-inline-end: auto; }

/* NetGSM kurulum kartı: işletmenin yapacağı adımlar ile platform adımları
   aynı yerde görünür; "bilgi kaydedildi" hiçbir zaman "çağrıya hazır" sayılmaz. */
.ng-safety { margin-top: 14px; }
.ng-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 20px;
    padding: 0;
}
.ng-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card-2);
}
.ng-step-mark {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text-3);
    font-size: .78rem;
}
.ng-step-mark .ic { width: 15px; height: 15px; }
.ng-step.is-done .ng-step-mark { border-color: var(--ok); background: var(--ok-soft); color: var(--ok-text); }
.ng-step b, .ng-step small { display: block; }
.ng-step b { font-size: .84rem; }
.ng-step small { margin-top: 4px; color: var(--text-3); font-size: .76rem; line-height: 1.45; }
.ng-step small .badge { margin-top: 5px; }
.ng-section { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.ng-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ng-section-head h3 { margin: 0; font-size: .96rem; }
.ng-section-head p { margin: 4px 0 0; color: var(--text-3); font-size: .82rem; }
.ng-inline-actions { margin-top: 8px; }
.ng-number-list { display: flex; flex-direction: column; gap: 10px; }
.ng-number {
    display: grid;
    grid-template-columns: minmax(190px, .8fr) minmax(280px, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card-2);
}
.ng-number-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; min-width: 0; }
.ng-number-main small { flex-basis: 100%; color: var(--text-3); }
.ng-number-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.ng-number-tools input { min-width: 0; }
.ng-add-number { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto; gap: 12px; align-items: end; margin-top: 14px; }
.ng-add-number .form-group { margin: 0; }
.ng-empty { padding: 18px; }

@media (max-width: 980px) {
    .ng-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .ng-steps { grid-template-columns: minmax(0, 1fr); }
    .ng-number { grid-template-columns: minmax(0, 1fr); }
    .ng-number-tools { justify-content: stretch; flex-wrap: wrap; }
    .ng-number-tools input { flex: 1 1 100%; }
    .ng-number-tools .btn { flex: 1 1 auto; }
    .ng-add-number { grid-template-columns: minmax(0, 1fr); }
    .ng-add-number .btn { width: 100%; }
}

/* Nitelik: özet çubuğundaki camgöbeği tonlar; öncelik: renk yerine simge (kırmızı yalnız hatalar için). */
.badge.q-high::before { background: var(--ch-q3); }
.badge.q-medium::before { background: var(--ch-q2); }
.badge.q-low::before { background: var(--ch-q1); }
.badge.q-unknown::before { background: var(--ch-closed); }
.badge.q-high, .badge.q-medium { color: var(--text); }
.prio { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-2); white-space: nowrap; }
.prio .ic { width: 14px; height: 14px; flex: none; }
.prio-high { color: var(--text); font-weight: 600; }
.prio-high .ic { color: var(--ch-team); }
.prio-low { color: var(--text-3); }
td.cell-name, .cell-name b { white-space: nowrap; }
/* Fırsat tablosu: sığması için sıkı hücreler; kaynak etiketi aşamanın altına iner */
#salesRows td, table:has(#salesRows) th { padding-inline: 12px; }
#salesRows td.cell-next { min-width: 170px; }
#salesRows .src { display: block; margin: 2px 0 0; }

/* Entegrasyon sorun özeti (adına dokununca kart açılır) */
.int-alerts:empty { display: none; }
.int-alerts { display: grid; gap: 10px; margin-bottom: 14px; }
.int-alerts > .note { margin: 0; }
.int-alert .link-btn { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.int-alert .muted { font-size: inherit; color: var(--text-3); }
.int-issues { margin: 0 0 14px; }
.int-row .miss-bad { color: var(--bad-text); }
.secret-note details.more { margin-top: 8px; }
details.more > ul { margin: 8px 0 2px; padding-inline-start: 20px; }
details.more > ul li { margin: 4px 0; }
.mi-note > .ic-sm { width: 14px; height: 14px; margin-inline-end: 6px; vertical-align: -2px; color: var(--text-3); }
.acct-text small { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }

/* Satış fırsatı ayrıntısı: başlık ve düğmeler sabit, içerik kendi içinde kayar; ayrıntılar katlanır. */
.modal-bg > .modal.sd {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    max-width: 860px; padding: 0; overflow: hidden;
    max-height: min(920px, calc(100vh - 64px));
    max-height: min(920px, calc(100dvh - 64px));
}
.sd .sd-head { flex: none; align-items: center; margin: 0; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.sd-title { min-width: 0; }
.sd-title h2 { font-size: 1.15rem; }
.sd-title .hint { margin-top: 4px; }
.sd-head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.sd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 22px; }
.modal-bg > .modal.sd .sd-foot { flex: none; display: flex; justify-content: flex-end; gap: 8px; margin: 0; padding: 14px 24px; border-top: 1px solid var(--line); background: inherit; }
.sd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sd-fact { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 12px 14px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); }
.sd-fact .k { font-size: .74rem; color: var(--text-3); }
.sd-fact .v { font-size: .9rem; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.sd-fact .v .src { display: block; margin: 2px 0 0; font-weight: 400; }
.sd-note { margin: 12px 0 0; }
.sd-next { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: var(--r); background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--card); }
.sd-next > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sd-next .k { font-size: .76rem; color: var(--text-3); }
.sd-next b { font-size: .95rem; color: var(--text); }
.sd-next .hint { margin: 2px 0 0; }
.sd-sec { margin-top: 10px; }
.sd-sec > summary { font-size: .88rem; }
.sd-count { margin-inline-start: 6px; padding: 1px 7px; border-radius: 3px; background: var(--hover); color: var(--text-2); font-size: .74rem; font-weight: 600; }
.sd-sec-body { padding-top: 2px; }
.sd-reasons { margin-top: 14px; gap: 10px 18px; }
.sd-reasons b { font-size: .84rem; }
.sd-convs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sd-convs li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.sd-convs .pv-logo { width: 34px; height: 34px; }
.sd-convs .pv-logo img { width: 18px; height: 18px; }
.sd-conv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sd-conv-text b { font-size: .88rem; }
.sd-conv-text small { font-size: .76rem; color: var(--text-3); }
.sd-history li { margin: 6px 0; }
.sd-when { color: var(--text-3); margin-inline-end: 4px; }
.modal-bg > .modal.sd h3.sd-h { margin: 22px 0 10px; }

/* Yan yana kartlar aynı boyda (alt alta dizildiklerinde her biri kendi boyunda) */
.grid-2.grid-top { align-items: stretch; }

/* Telefon menüsünde kapatma düğmesi */
.sb-close { display: none; }

@media (max-width: 1023.98px) {
    .sb-close { display: inline-grid; margin-inline-start: auto; }
    .sb-brand { gap: 10px; }
    /* Sayfa başlığı görünürken üst çubukta aynı başlık tekrar yazılmaz; aşağı kaydırınca belirir. */
    .topbar-title { transition: opacity .2s ease, transform .2s ease; }
    html.head-visible .topbar-title { opacity: 0; transform: translateY(4px); pointer-events: none; }
}

/* Tablet ve küçük dizüstü: tablolar sığsın (satır düğmeleri yalnız simge, isteğe bağlı sütun gizli) */
@media (min-width: 761px) and (max-width: 1279.98px) {
    .row-actions .btn-text { display: none; }
    .row-actions .btn { width: 32px; padding: 0; }
    .col-opt { display: none; }
}

@media (max-width: 760px) {
    .sd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modal-bg > .modal.sd { max-height: 92vh; max-height: 92dvh; padding: 0; overflow: hidden; }
    .sd .sd-head { padding: 16px 16px 12px; align-items: flex-start; }
    .sd-head-actions .btn { padding: 0 10px; }
    .sd-body { padding: 14px 16px 18px; }
    .modal-bg > .modal.sd .sd-foot { position: static; margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* Sohbet başlığı: özet en fazla iki satır; dar kutuda ikincil düğmeler yalnız simge */
.mi-head .mi-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@container inbox (max-width: 560px) {
    .mi-actions .mi-btn-compact .mi-btn-label { display: none; }
    .mi-actions .mi-btn-compact { width: 36px; padding: 0; justify-content: center; }
}

/* ================================================================ Telefon düzeni: dengeli başlıklar ve kartlar */

/* Tablette alt menü ortada toplu; menü sayfası geniş ekranda ortalanır */
@media (max-width: 359.98px) {
    .bb-item { font-size: .63rem; }
    .bb-ic { width: 40px; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
    .bottombar { justify-content: center; }
    .bb-item { flex: 0 1 128px; }
    .sidebar { inset-inline: calc(50% - 290px); }
}

/* Tablo kartlarında yazı alanı / seçim: etiket üstte, alan tam genişlikte */
@media (max-width: 900px) {
    .table-wrap td:has(> .inline-input), .card > table td:has(> .inline-input) {
        display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: start;
    }
    .table-wrap td:has(> .inline-input)::before, .card > table td:has(> .inline-input)::before { float: none; max-width: none; margin: 0; line-height: 1.4; }
    td > .inline-input { width: 100%; max-width: none; }
}

@media (max-width: 760px) {
    /* Telefonda şeritler başlık metninin arkasına düşer: okunurluk için hafifler */
    .bg-ribbons { opacity: .42; }
    html[data-theme="light"] .bg-ribbons { opacity: .55; }
    /* Sayfa başlığı (her sayfada aynı): simge, başlık ve işlem düğmeleri tek satırda (uygulama başlığı
       gibi); açıklama altında tam genişlikte okunur. */
    .page-head {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
    }
    .page-head > .head-title, .page-head > .head-title > div { display: contents; }
    .page-head > .head-title > .tile { grid-column: 1; grid-row: 1; }
    .page-head h1 { grid-column: 2; grid-row: 1; min-width: 0; }
    .page-head .lead { grid-column: 1 / -1; grid-row: 2; margin: 2px 0 0; }
    .page-head > .head-actions { grid-column: 3; grid-row: 1; width: auto; gap: 8px; }
    .page-head > .head-actions > .btn { flex: none; width: 40px; min-height: 40px; padding: 0; justify-content: center; }
    .page-head > .head-actions .btn-text {
        position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
        overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
    /* Başlıkta filtre seçimi varsa: işlemler açıklamanın altında tam genişlikte */
    .page-head > .head-actions:has(select) { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
    .page-head > .head-actions:has(select) > select { flex: 1; min-width: 0; }

    /* Kiracı başlığı daha derli toplu */
    .tenant-head { margin-bottom: 14px; }
    .tenant-head .head-title { align-items: flex-start; }
    .tenant-head .head-title .avatar-tile { width: 44px; height: 44px; font-size: .95rem; }
    .tenant-head h1 { font-size: 1.3rem; line-height: 1.25; }
    .tenant-meta { gap: 6px 8px; margin-top: 6px; font-size: .8rem; }

    /* Fırsat kartı: açık itiraz ayrıntıda (kart kısa kalsın) */
    #salesRows td.col-opt { display: none; }
}

/* ================================================================ Sohbetler: büyük kanal logoları + telefonda tam ekran sohbet */

/* Kanal logosu: çerçevesiz, zeminsiz, net (tüm genişliklerde) */
.mi-item { grid-template-columns: 34px minmax(0, 1fr); }
.mi-ch { width: 34px; height: 34px; background: none; border: 0; border-radius: 0; }
.mi-ch img { width: 32px; height: 32px; }
.mi-head-logo { flex: none; display: grid; place-items: center; width: 34px; height: 34px; }
.mi-head-logo img { width: 30px; height: 30px; object-fit: contain; }
.mi-head-text { min-width: 0; }
.mi-head-main { align-items: center; }
.mi-head-main:has(.mi-sub + .mi-sub) { align-items: flex-start; }

/* Filtre satırı: genişte eski ızgara düzeni (öğeler doğrudan ızgarada) */
.mi-frow { display: contents; }

/* Yalnız telefonda görünen parçalar */
.mi-handler, .mi-scrim, .mi-info, .mi-only-phone, .mi-short, .mi-sub-m { display: none; }

@media (max-width: 760px) {
    /* Liste: arama, yana kayan filtre çipleri, sayfa ile birlikte kayan sohbetler */
    .mi-filters { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 16px 12px; border-bottom: 1px solid var(--line); }
    .mi-frow {
        display: flex; gap: 8px;
        margin-inline: -16px; padding-inline: 16px 22px;
        overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
    }
    .mi-frow > .mi-chip { order: -1; } /* hızlı filtre önde */
    .mi-frow::-webkit-scrollbar { display: none; }
    .mi-frow select { flex: none; width: auto; max-width: 64vw; min-height: 40px; padding-block: 6px; }
    .mi-filters .mi-chip {
        flex: none; gap: 8px;
        min-height: 40px; padding: 0 14px 0 12px;
        border: 1px solid var(--line-2); border-radius: var(--r);
        background: var(--card); color: var(--text-2); white-space: nowrap;
    }
    .mi-filters .mi-chip:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
    .mi-item { padding: 13px 16px; gap: 2px 12px; }
    .mi-item:active { background: var(--hover); }

    /* Açık sohbet: tüm ekranı kaplar (üst çubuk ve alt menü dahil), sağdan kayarak gelir */
    .mi-thread {
        position: fixed;
        inset: 0;
        z-index: 1200;
        display: flex;
        flex-direction: column;
        min-height: 0;
        background: var(--bg);
        transform: translateX(100%);
        transition: transform .32s var(--ease);
        overscroll-behavior: contain;
    }
    .mi-thread.has-vv { inset: auto 0; top: var(--vv-top, 0px); height: var(--vv-h, 100%); }
    .mi-thread.is-in { transform: none; box-shadow: -18px 0 50px -30px rgba(0, 0, 0, .7); }
    html.mi-open, html.mi-open body { overflow: hidden; }

    .mi-thread .mi-head {
        flex: none;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: calc(env(safe-area-inset-top, 0px) + 8px) 6px 8px 4px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
    .mi-thread .mi-head-main { flex: 1; align-items: center; gap: 8px; }
    .mi-thread .mi-head-text { flex: 1; cursor: var(--cv-cur-hand, pointer); } /* ada dokununca sohbet bilgileri açılır */
    .mi-thread .mi-back { display: inline-grid; width: 40px; height: 40px; border-color: transparent; }
    .mi-thread .mi-back .ic { width: 22px; height: 22px; }
    .mi-thread .mi-head-logo { width: 32px; height: 32px; }
    .mi-thread .mi-head h3 { font-size: 1rem; line-height: 1.25; }
    .mi-thread .mi-head .mi-sub { display: none; } /* durum şeritte, ayrıntılar bilgi sayfasında */
    .mi-thread .mi-sub-m { display: block; margin-top: 1px; font-size: .76rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mi-thread .mi-actions { flex-wrap: nowrap; gap: 0; overflow: visible; padding: 0; }
    .mi-thread .mi-actions > .mi-btn { display: none; }
    .mi-thread .mi-actions > .mi-only-phone { display: inline-grid; }
    .mi-thread .mi-actions > details.mi-only-phone { display: inline-block; }
    .mi-thread .mi-actions .icon-btn, .mi-thread .mi-menu > summary { width: 40px; height: 40px; border-color: transparent; background: none; }
    .mi-thread .mi-actions .icon-btn .ic, .mi-thread .mi-menu > summary .ic { width: 20px; height: 20px; }
    .mi-thread .mi-menu .row-menu-list { min-width: 200px; }

    /* Şerit: sohbeti kim cevaplıyor + tek dokunuşla devral / devret */
    .mi-thread .mi-handler {
        flex: none;
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding: 6px 12px 6px 16px;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        font-size: .82rem;
        color: var(--text-2);
    }
    .mi-handler-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--neutral); }
    .mi-handler-dot.s-ai { background: var(--ch-ai); }
    .mi-handler-dot.s-team { background: var(--ch-team); }
    .mi-handler-dot.s-open { background: var(--ch-open); }
    .mi-handler-dot.s-closed { background: var(--ch-closed); }
    .mi-handler-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mi-thread .mi-handler .mi-btn { flex: none; min-height: 34px; padding: 0 12px; gap: 6px; font-size: .82rem; }
    .mi-thread .mi-handler .mi-btn .ic { width: 15px; height: 15px; }

    .mi-thread .mi-intel { display: none !important; } /* telefonda bilgi sayfasında (ⓘ) */
    .mi-thread .mi-msgs { flex: 1 1 auto; min-height: 0; padding: 14px 12px 8px; }
    .mi-thread .mi-msg { max-width: 84%; margin-bottom: 10px; }
    .mi-thread .mi-bubble { font-size: .94rem; }

    /* Yazma alanı: tek satırdan başlar, yazdıkça büyür; gönder düğmesi yanında */
    .mi-thread .mi-reply {
        flex: none;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 6px 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        border-top: 1px solid var(--line);
    }
    .mi-thread .mi-reply > [data-r="window"] { grid-column: 1 / -1; }
    .mi-thread .mi-reply > [data-r="window"]:empty { display: none; }
    .mi-thread .mi-reply [data-r="window"] .mi-note { margin: 0 2px; font-size: .74rem; }
    .mi-thread .mi-reply [data-r="window"] .mi-warn { margin: 0; padding: 9px 11px 9px 36px; font-size: .78rem; line-height: 1.5; }
    .mi-thread .mi-reply [data-r="window"] .mi-warn::before { inset-inline-start: 11px; top: 10px; width: 16px; height: 16px; }
    .mi-thread .mi-reply textarea {
        grid-column: 1; grid-row: 2;
        min-height: 44px; height: 44px; max-height: 140px;
        padding: 10px 12px;
        line-height: 1.4;
        resize: none;
    }
    .mi-thread .mi-reply-row { display: contents; }
    .mi-thread .mi-reply .mi-takeover { grid-column: 1 / -1; grid-row: 3; gap: 8px; padding: 0 2px; font-size: .76rem; }
    .mi-thread .mi-reply .mi-takeover input { width: 16px; height: 16px; }
    .mi-thread .mi-long { display: none; }
    .mi-thread .mi-short { display: inline; }
    .mi-thread[data-status="team"] .mi-reply .mi-takeover { display: none; }
    .mi-thread .mi-reply [data-r="send"] {
        grid-column: 2; grid-row: 2;
        width: 44px; height: 44px; min-height: 44px;
        padding: 0;
        justify-content: center;
    }
    .mi-thread .mi-reply [data-r="send"] .mi-btn-label { display: none; }
    .mi-thread .mi-reply [data-r="send"] .ic { width: 19px; height: 19px; margin: 0; }

    /* Sohbet bilgileri (ⓘ): alttan açılan sayfa */
    .mi-thread .mi-scrim {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 30;
        background: var(--overlay);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility 0s linear .25s;
    }
    .mi-thread.info-open .mi-scrim { opacity: 1; visibility: visible; transition: opacity .25s ease; }
    .mi-thread .mi-info {
        display: flex;
        flex-direction: column;
        position: absolute;
        inset: auto 0 0 0;
        z-index: 31;
        max-height: 82%;
        background: var(--bg-2);
        border-top: 1px solid var(--line-2);
        border-radius: 12px 12px 0 0;
        transform: translateY(102%);
        visibility: hidden;
        transition: transform .3s var(--ease), visibility 0s linear .3s;
    }
    html[data-theme="light"] .mi-thread .mi-info { background: var(--bg); }
    .mi-thread.info-open .mi-info { transform: none; visibility: visible; transition: transform .3s var(--ease); box-shadow: 0 -18px 60px -24px rgba(0, 0, 0, .6); }
    .mi-info-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--line); }
    .mi-info-head b { font-size: .98rem; font-weight: 600; color: var(--text); }
    .mi-info-head .icon-btn { width: 40px; height: 40px; border-color: transparent; }
    .mi-info-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 16px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: .86rem; }
    .mi-info-body .mi-intel-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .mi-info-body .mi-intel-title { margin: 16px 0 8px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .mi-thread, .mi-thread .mi-info { transition: none; }
}

/* Tema değişirken renk geçişleri kapalı (tek karede değişir) */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Randevu talebi (süresi tanımlı olmayan hizmet): kesin randevu değil, ekip teyit eder. */
/* Demo panelindeki gibi: kalın renkli çerçeve yok; vurgu rengiyle yumuşak not kutusu ve hap etiket. */
.mi-request { border: 1px solid var(--accent-line); border-radius: var(--r-md);
    padding: 12px 14px; margin: 0 0 12px; background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--card); }
.mi-request-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.mi-request-title::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.mi-request .mi-note { margin-top: 8px; }
.mi-tag.req { padding: 1px 8px; border: 1px solid var(--accent-line); border-radius: var(--r-full);
    background: var(--accent-soft); color: var(--accent-2); font-weight: 500; }
.mi-tag.req::before { display: none; }
html[data-theme="light"] .mi-tag.req { color: var(--accent); }

/* ---------------------------------------------------------------- Bildirim zili + Randevu talepleri (panel-ops.js) */
.nb-btn { position: relative; }
.nb-count {
    position: absolute; top: -4px; inset-inline-end: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; background: var(--bad); color: #fff;
    font-size: .68rem; font-weight: 600; line-height: 18px; text-align: center;
}
.nb-count[hidden] { display: none; }
.np {
    display: none; position: fixed; z-index: 1600;
    top: 16px; inset-inline-start: calc(var(--sb-w, 260px) + 16px);
    width: min(400px, calc(100vw - 32px)); max-height: min(70vh, 560px);
    flex-direction: column;
    background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
.np.open { display: flex; }
.np-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.np-head b { margin-inline-end: auto; }
.np-list { overflow-y: auto; padding: 6px; }
.np-item {
    display: flex; flex-direction: column; gap: 3px; width: 100%;
    padding: 10px 12px; border: 0; border-radius: calc(var(--r) - 4px);
    background: transparent; color: var(--text-2); text-align: start; cursor: var(--cv-cur-hand, pointer); font: inherit;
}
.np-item:hover { background: var(--hover); }
.np-item.unread { color: var(--text); font-weight: 600; }
.np-item.unread .np-text::before {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px;
    border-radius: 50%; background: var(--accent); vertical-align: middle;
}
.np-item small { color: var(--text-3); font-weight: 400; }
.pf-section { padding: 16px 0; border-top: 1px solid var(--line); }
.pf-section:first-child { border-top: 0; padding-top: 0; }
.pf-section h3 { margin: 0 0 6px; font-size: 1rem; }
.pf-section .switch { display: flex; margin: 8px 0; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.pf-card { margin-top: 20px; }
.cb-settings { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.cb-settings > summary { cursor: pointer; font-weight: 600; }
.cb-settings[open] > summary { margin-bottom: 12px; }
.rq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.rq-list > .empty { grid-column: 1 / -1; }
.rq-card {
    display: flex; flex-direction: column; gap: 8px; min-width: 0;
    padding: 16px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--card); color: var(--text); text-align: start; cursor: var(--cv-cur-hand, pointer); font: inherit;
}
.rq-card:hover { border-color: var(--accent-line); background: var(--hover); }
.rq-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rq-top b { overflow-wrap: anywhere; }
.rq-when { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.rq-meta { color: var(--text-3); font-size: .85rem; overflow-wrap: anywhere; }
.rq-modal { max-width: 720px; }
.rq-kv { margin-bottom: 18px; font-size: .9rem; }
.rq-kv .kv-line > .kv-k { flex-basis: 150px; }
.rq-actions { flex-wrap: wrap; justify-content: flex-start; margin-bottom: 12px; }
#reqForm { margin-bottom: 8px; }
#reqForm .switch { margin: 4px 0 10px; }
.rq-delivery, .rq-history { margin: 0 0 8px; padding-inline-start: 18px; color: var(--text-2); font-size: .88rem; }
.rq-delivery li, .rq-history li { margin: 4px 0; }
@media (max-width: 1023.98px) {
    .np { top: calc(var(--top-h, 58px) + 8px); inset-inline-start: auto; inset-inline-end: 12px; }
}
@media (max-width: 900px) {
    .np {
        top: auto; bottom: 0; inset-inline: 0; width: 100%; max-height: 80vh;
        border-radius: var(--r) var(--r) 0 0; padding-bottom: env(safe-area-inset-bottom);
    }
    .rq-list { grid-template-columns: 1fr; }
    .modal-bg > .modal.rq-modal { padding: 20px 16px; }
}

/* ---------------------------------------------------------------- Bağlı hesaplar (panel-accounts.js) */
.ca-list { margin-bottom: 26px; }
.ca-return { margin-bottom: 14px; }
.ca-hint { margin-top: 10px; }
.ca-accounts { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.ca-acct { padding: 14px 16px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.ca-acct[data-status="reauthorization_required"] { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.ca-acct-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ca-acct-name { flex: 1 1 220px; min-width: 0; }
.ca-acct-name b { display: block; font-size: .92rem; font-weight: 600; overflow-wrap: anywhere; }
.ca-acct-name small { display: block; font-size: .78rem; color: var(--text-3); }
.ca-facts { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: .82rem; color: var(--text-3); }
.ca-facts b { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.ca-acct .note { margin-top: 10px; }
.ca-acct-actions, .ca-tools, .ca-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ca-radios { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.ca-radio { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); cursor: var(--cv-cur-hand, pointer); }
.ca-radio:has(input:checked) { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); }
.ca-radio.is-off { opacity: .65; cursor: not-allowed; }
.ca-radio input { margin-top: 3px; }
.ca-radio b { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.ca-radio small { display: block; font-size: .78rem; color: var(--text-3); }
.ca-fallback { margin-top: 4px; }
.ca-modal { max-width: 720px !important; }
.ca-status { margin-top: 12px; }
.ca-status .note { margin: 0; }
.ca-files { display: flex; flex-direction: column; gap: 8px; }
.ca-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.ca-file-main { flex: 1 1 220px; min-width: 0; }
.ca-file-main b { display: block; font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.ca-file-main small { display: block; font-size: .76rem; color: var(--text-3); }
.ca-file-actions { margin-top: 0; align-items: center; }
.ca-file-actions select { width: auto; min-width: 84px; }
.ca-ai { font-size: .82rem; }
.ca-upload { cursor: var(--cv-cur-hand, pointer); }
@media (max-width: 760px) {
    .ca-acct { padding: 12px; }
    .ca-acct-actions .btn, .ca-tools .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
    .ca-file-actions { width: 100%; }
}

/* Meta Business: tek girişte kanal seçimi (/ui/meta_business.js). */
.mb-select { display: grid; gap: 12px; margin-top: 14px; }
.mb-group { display: grid; gap: 6px; margin: 0; padding: 10px 14px 12px; border: 1px solid var(--line-2); border-radius: 12px; }
.mb-group legend { padding: 0 6px; }
.mb-group .check { align-items: baseline; }

/* ---- Web Sitesi ve Formlar (panel-website.js) ---- */
/* Geniş ekranda iki sütun: solda site ayarları (açılır bölümler), sağda gelen formlar (yapışık). Yerleşim
   sekmenin kendi genişliğine göre (container query): dar ekranda önce gelen formlar, sonra ayarlar. */
#panelWebsite { container: website / inline-size; }
.ws-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.ws-inbox, .ws-settings { min-width: 0; }
@container website (min-width: 860px) {
    .ws-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); grid-template-areas: "settings inbox"; column-gap: 24px; }
    .ws-settings { grid-area: settings; }
    .ws-inbox { grid-area: inbox; position: sticky; top: 20px; max-height: calc(100dvh - 40px); display: flex; flex-direction: column; }
    .ws-inbox-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

/* Gelen formlar */
.ws-inbox { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ws-inbox-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.ws-inbox-head .tile { width: 36px; height: 36px; flex: none; }
.ws-inbox-head .tile .ic { width: 18px; height: 18px; }
.ws-inbox-title { flex: 1; min-width: 0; }
.ws-inbox-title h2 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.ws-inbox-title p { margin: 2px 0 0; font-size: .8rem; line-height: 1.45; color: var(--text-3); }
.ws-inbox-head .icon-btn { width: 34px; height: 34px; border-color: transparent; color: var(--text-2); }
.ws-inbox-head .icon-btn:hover { border-color: var(--line-2); color: var(--text); }
.ws-inbox-tools { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.ws-filter { --c: var(--c-indigo); display: flex; width: 100%; border-radius: var(--r-full); }
.ws-filter [role="tab"] { flex: 1 1 0; justify-content: center; gap: 5px; min-width: 0; min-height: 32px; padding: 0 6px; border-radius: var(--r-full); font-size: .8rem; }
.ws-filter .seg-count { min-width: 18px; padding: 0 5px; border-radius: var(--r-full); line-height: 17px; font-size: .68rem; }
.ws-inbox-tools select { min-height: 36px; font-size: .84rem; border-radius: var(--r-full); }
.ws-more { display: flex; justify-content: center; padding-top: 10px; }

.wf-list { display: flex; flex-direction: column; gap: 6px; }
.wf-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); transition: border-color .2s ease, background .2s ease; }
.wf-item:hover { border-color: var(--line-2); }
.wf-item.is-open { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2)); background: color-mix(in srgb, var(--accent) 4%, var(--bg-2)); }
.wf-sum { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; border-radius: inherit; background: none; color: inherit; font: inherit; text-align: start; cursor: var(--cv-cur-hand, pointer); }
.wf-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.wf-ava { width: 34px; height: 34px; flex: none; font-size: .74rem; }
.wf-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wf-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.wf-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.wf-item.is-new .wf-top b { font-weight: 650; }
.wf-time { flex: none; color: var(--text-3); font-size: .74rem; white-space: nowrap; }
.wf-form { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-2); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-dot { flex: none; width: 7px; height: 7px; margin-inline-start: auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wf-state { flex: none; margin-inline-start: auto; padding: 0 7px; border: 1px solid var(--line-2); border-radius: var(--r-full); color: var(--text-3); font-size: .68rem; line-height: 17px; }
.wf-chev { flex: none; display: inline-grid; color: var(--text-3); transition: transform .25s var(--ease); }
.wf-chev .ic { width: 16px; height: 16px; }
.wf-item.is-open .wf-chev { transform: rotate(180deg); }
.wf-detail { display: flex; flex-direction: column; gap: 12px; padding: 2px 12px 12px; animation: panelIn .3s var(--ease) both; }
.wf-fields { display: flex; flex-direction: column; margin: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.wf-field { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr); gap: 10px; padding: 8px 11px; }
.wf-field + .wf-field { border-top: 1px solid var(--line); }
.wf-field dt { color: var(--text-3); font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.wf-field dd { margin: 0; color: var(--text); font-size: .85rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.wf-meta { display: flex; flex-direction: column; gap: 5px; margin: 0; padding: 0; list-style: none; }
.wf-meta li { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--text-3); font-size: .76rem; }
.wf-meta li .ic { flex: none; width: 14px; height: 14px; }
.wf-meta li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-acts .btn { flex: 1 1 auto; }
.wf-acts-status .btn { flex: 0 1 auto; }

.ws-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 14px; text-align: center; }
.ws-empty .tile { width: 38px; height: 38px; margin-bottom: 4px; }
.ws-empty b { font-size: .9rem; font-weight: 600; }
.ws-empty p { margin: 0; max-width: 34ch; color: var(--text-3); font-size: .8rem; line-height: 1.5; }
.ws-settings > .ws-empty { border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

/* Site seçici + yeni site */
.ws-site { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ws-site > .tile { width: 40px; height: 40px; flex: none; }
.ws-site-text { flex: 1; min-width: 0; }
.ws-site-text h2 { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 600; line-height: 1.3; }
.ws-site-text p { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin: 3px 0 0; color: var(--text-3); font-size: .8rem; line-height: 1.45; }
.ws-site-text p .ws-origin { color: var(--text-2); font-weight: 500; }
.ws-site-text p i { font-style: normal; }
.ws-site-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: none; }
.ws-pick select { width: auto; max-width: 220px; min-height: 32px; padding-block: 4px; border-radius: var(--r-full); font-size: .84rem; }
.ws-newform { margin-bottom: 14px; animation: panelIn .3s var(--ease) both; }
.ws-newform-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.ws-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ws-note { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent); border-radius: var(--r-md); background: var(--warn-soft); }
.ws-note .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--warn-text); }
.ws-note p { margin: 0; color: var(--text); font-size: .84rem; line-height: 1.5; }

/* Açılır ayar bölümleri */
.ws-secs { display: flex; flex-direction: column; gap: 10px; }
.ws-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s ease; }
.ws-sec[open] { border-color: var(--line-2); }
.ws-sec-head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border-radius: inherit; list-style: none; cursor: var(--cv-cur-hand, pointer); user-select: none; }
.ws-sec-head::-webkit-details-marker { display: none; }
.ws-sec-head:hover { background: var(--hover); }
.ws-sec[open] > .ws-sec-head { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ws-sec-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ws-sec-head .tile { width: 36px; height: 36px; flex: none; }
.ws-sec-head .tile .ic { width: 18px; height: 18px; }
.ws-sec-title { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.ws-sec-title b { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.ws-sec-title small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: .8rem; line-height: 1.4; }
.ws-pill { flex: none; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: var(--r-full); color: var(--text-2); font-size: .74rem; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.ws-pill.is-ok { border-color: color-mix(in srgb, var(--ok) 32%, transparent); background: var(--ok-soft); color: var(--ok-text); }
.ws-pill.is-warn { border-color: color-mix(in srgb, var(--warn) 36%, transparent); background: var(--warn-soft); color: var(--warn-text); }
.ws-chev { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text-2); transition: transform .25s var(--ease); }
.ws-chev .ic { width: 15px; height: 15px; }
.ws-sec[open] .ws-chev { transform: rotate(180deg); }
.ws-sec-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 16px 16px; animation: panelIn .3s var(--ease) both; }
.ws-sec-body .st-box { background: var(--bg-2); }
.ws-row .st-row-text label { cursor: inherit; }
.ws-row .st-row-ctl textarea { min-height: 88px; }
.ws-pair { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.ws-pair > .st-row + .st-row { border-top: 1px solid var(--line); }
@container website (min-width: 620px) {
    .ws-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ws-pair > .st-row + .st-row { border-top: 0; border-inline-start: 1px solid var(--line); }
}
.st-box > .st-row + .ws-pair { margin: 0; }

/* Formlar */
.ws-forms { display: flex; flex-direction: column; gap: 10px; }
.ws-forms-empty { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--text-3); font-size: .84rem; }
.ws-forms-empty .ic { flex: none; width: 18px; height: 18px; }
.ws-form { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.ws-form-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ws-form-head .tile { width: 32px; height: 32px; flex: none; }
.ws-form-head .tile .ic { width: 16px; height: 16px; }
.ws-form-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ws-form-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; font-weight: 600; }
.ws-form-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3); font-size: .78rem; }
.ws-form-del { width: 32px; height: 32px; border-color: transparent; color: var(--text-3); }
.ws-form-del:hover { border-color: color-mix(in srgb, var(--bad) 38%, transparent); background: var(--bad-soft); color: var(--bad-text); }
.ws-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ws-form-grid .form-group, .ws-map-grid .form-group { margin: 0; }
.ws-recipients { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.ws-recipients legend { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 0; font-size: .84rem; font-weight: 500; color: var(--text); }
.ws-recipients legend .ic { width: 15px; height: 15px; color: var(--text-3); }
.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 3px 12px 3px 4px; border: 1px solid var(--line-2); border-radius: var(--r-full); background: var(--card); color: var(--text-2); font-size: .84rem; cursor: var(--cv-cur-hand, pointer); transition: border-color .2s ease, background .2s ease, color .2s ease; }
.ws-chip:hover { border-color: var(--accent-line); color: var(--text); }
.ws-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.ws-chip:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--accent-soft); color: var(--text); }
.ws-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-chip:has(input:disabled) { opacity: .7; cursor: not-allowed; }
.ws-chip-ava { width: 26px; height: 26px; border-radius: 50%; font-size: .62rem; }
.ws-chip-name { display: inline-flex; flex-direction: column; line-height: 1.25; }
.ws-chip small { color: var(--text-3); font-size: .68rem; }
.ws-chip.is-off .ws-chip-ava { opacity: .6; }
.ws-map { border-top: 1px solid var(--line); padding-top: 12px; }
.ws-map > summary { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .84rem; font-weight: 500; list-style: none; cursor: var(--cv-cur-hand, pointer); }
.ws-map > summary::-webkit-details-marker { display: none; }
.ws-map > summary .ic { width: 15px; height: 15px; color: var(--text-3); }
.ws-map > summary small { color: var(--text-3); font-size: .74rem; font-weight: 400; }
.ws-map > summary::after { content: ""; width: 7px; height: 7px; margin-inline-start: auto; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: rotate(45deg) translateY(-2px); transition: transform .25s var(--ease); }
.ws-map[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.ws-map-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
@container website (min-width: 560px) { .ws-form-grid, .ws-map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-map > .hint { margin-top: 8px; }
.ws-add { align-self: flex-start; }
.ws-forms-hint, .ws-sec-body .hint:has(> .ic) { display: flex; align-items: flex-start; gap: 7px; margin: 0; }
.ws-sec-body .hint > .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; }

/* Kurulum */
.ws-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: ws; }
.ws-steps li { position: relative; padding-inline-start: 32px; color: var(--text-2); font-size: .86rem; line-height: 1.55; counter-increment: ws; }
.ws-steps li::before { content: counter(ws); position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--c-amber) 16%, transparent); color: var(--c-amber); font-size: .74rem; font-weight: 700; }
.ws-steps b { color: var(--text); font-weight: 600; }
.ws-install-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-code > summary { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-2); font-size: .84rem; font-weight: 500; cursor: var(--cv-cur-hand, pointer); }
html[data-theme="light"] .ws-code > summary { color: var(--accent); }
.ws-code > summary .ic { width: 15px; height: 15px; }
.ws-pre { max-height: 360px; margin: 10px 0 0; overflow: auto; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); font-size: .8rem; line-height: 1.6; }

/* Kaydet çubuğu: ayar sütununun sonunda */
.ws-bar { position: relative; z-index: 5; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 10px 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-full); background: color-mix(in srgb, var(--card) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 16px 40px -22px rgba(0, 0, 0, .9); }
html[data-theme="light"] .ws-bar { background: rgba(255, 255, 255, .9); box-shadow: 0 14px 34px -22px rgba(40, 30, 80, .4); }
.ws-bar-note { flex: 1; min-width: 0; color: var(--text-3); font-size: .82rem; text-align: end; }
.ws-note-s { display: none; }
/* Değişiklik varken ekranın altına yapışır (AI Studio'daki kaydet çubuğu gibi); yokken sütunun sonunda durur */
.ws-bar.is-dirty { position: sticky; bottom: 16px; border-color: color-mix(in srgb, var(--warn) 40%, var(--line-2)); }
.ws-bar.is-dirty .ws-bar-note { color: var(--warn-text); font-weight: 500; }
.ws-del { color: var(--text-3); }
.ws-del:hover { color: var(--bad-text); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 38%, transparent); }
@media (max-width: 1023.98px) { .ws-bar.is-dirty { bottom: calc(var(--bottom-h) + 12px); } }
@container website (max-width: 520px) {
    .ws-site { flex-wrap: wrap; }
    .ws-site-tools { width: 100%; justify-content: flex-start; }
    .ws-pick { flex: 1; min-width: 0; }
    .ws-pick select { width: 100%; max-width: none; }
    .ws-sec-head { gap: 10px; padding: 12px 14px; }
    .ws-sec-title small { white-space: normal; }
    .ws-sec-body { padding: 4px 12px 14px; }
    .ws-form { padding: 12px; }
    .ws-note-l, .ws-del-t { display: none; }
    .ws-note-s { display: inline; }
    .ws-del { width: 36px; padding: 0; }
    .wf-acts .btn { flex: 1 1 100%; }
}

/* ================================================================ Demo paneliyle aynı biçim */
/* convotify.com/demo-panel ile aynı biçim dili: yuvarlak köşeli kartlar, hap biçimli düğmeler ve
   menü öğeleri, renkli göstergeler. Yalnız görünüm değişir; sınıflar, kimlikler ve davranış aynıdır. */
html[data-theme="light"] {
    /* Ana düğme: demo panel gibi koyu mor degrade, beyaz yazı (açık degradede yazı soluyordu). */
    --btn-grad: linear-gradient(to bottom, #8a54b3, #5a3477);
    --btn-text: #fff;
}

/* Büyük kutular: kartlar, tablolar, akordeonlar, sohbet kutusu */
.card, .provider-card, .mp-card, .table-wrap, .stat, details.acc, .int-card, .s-card, .t-card,
.rq-card, .mi-root, .grid-empty, .tab-empty { border-radius: var(--r-lg); }
details.acc > summary.acc-head { border-radius: var(--r-lg); }
details.acc[open] > summary.acc-head { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal-bg > .modal, .modal-content { border-radius: var(--r-xl); }
.np { border-radius: var(--r-lg); }
.np-item { border-radius: var(--r-md); }
@media (max-width: 900px) { .np { border-radius: var(--r-xl) var(--r-xl) 0 0; } }

/* Orta kutular: bilgi kutuları, alanlar, liste öğeleri */
.note, .secret-note, .inline-note, .mp-note, .mi-warn, .callout, .info, .error, .form-error,
input[type=text], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=url], input[type=email], input[type=search], input[type=tel], input:not([type]),
select, textarea, .inline-input, fieldset, .disclosure, details.wa-manual, .code-block,
.sb-context, .acct, .ca-acct, .ca-radio, .ca-file, .sd-fact, .sd-next, .sd-convs li, .fail, .fail-err, .ok-empty,
.t-warn, .t-facts, .int-tile, .row.err, .row-menu-list, .chart-tip, .mp-row[data-r="regional"] { border-radius: var(--r-md); }
input[type=checkbox] { border-radius: var(--r-xs); }

/* Hap biçimi: düğmeler, menü öğeleri, seçiciler, etiketler */
.btn, .mi-btn, .mp-btn, .icon-btn, .pw-toggle, .chip, .mi-chip, .mi-filters .mi-chip, .row-menu > summary,
.sb-nav .tab, .sb-nav .nav-btn, .sb-back, .sb-link, .acc-chevron, .seg, .seg [role="tab"], .seg-count,
.sb-count, .mi-unread, .id-chip, .chip-soft { border-radius: var(--r-full); }
.mi-filters input[type=search], .mi-filters select, .toolbar select, .card-head .ch-tools select,
.search input, .list-tools input[type=search] { border-radius: var(--r-full); }
.tile, .avatar-tile, .pv-logo { border-radius: var(--r-md); }
.sb-ic { border-radius: var(--r-sm); }
.bar-lead { border-radius: var(--r-md); }

/* Sol menü: demo paneldeki ölçüler */
.sb-nav .tab, .sb-nav .nav-btn { min-height: 44px; font-size: .92rem; }
.sb-context { padding: 11px 12px; }
.sb-brand { justify-content: space-between; gap: 10px; }
.sb-brand .nb-btn { width: 34px; height: 34px; border-color: transparent; }
.sb-brand .nb-btn:hover { border-color: var(--line-2); }
.sb-count {
    min-width: 22px; padding: 1px 7px;
    background: var(--accent); color: #fff;
}
html[data-theme="light"] .sb-count { background: var(--accent); }
.sb-actions .btn { min-height: 38px; }

/* Segment seçici: hap biçimli ray, seçili öğe kabartmalı */
.seg { padding: 3px; background: var(--card); }
.seg [role="tab"] { min-height: 36px; padding: 0 16px; font-size: .88rem; }
.seg [role="tab"][aria-selected="true"] { font-weight: 600; }

/* İstatistik ve gösterge kartları: sol üstte renkli ışık, üst kenarda solan renk çizgisi (demo panel) */
.stat[class*="c-"] {
    background:
        radial-gradient(130% 85% at 0% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 64%),
        var(--card);
    border-color: color-mix(in srgb, var(--c) 22%, var(--line));
    overflow: visible;
}
html[data-theme="light"] .stat[class*="c-"] {
    background:
        radial-gradient(130% 85% at 0% 0%, color-mix(in srgb, var(--c) 11%, transparent), transparent 64%),
        #fff;
    border-color: color-mix(in srgb, var(--c) 20%, var(--line-2));
}
.stat[class*="c-"]::before {
    inset: -1px; height: auto;
    background: none;
    border-top: 2px solid var(--c);
    border-radius: calc(var(--r-lg) + 1px);
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 74%);
    mask-image: linear-gradient(90deg, #000, transparent 74%);
    opacity: 1;
    pointer-events: none;
}
.stat[class*="c-"]::after { display: none; }
[dir="rtl"] .stat[class*="c-"]::before { -webkit-mask-image: linear-gradient(270deg, #000, transparent 74%); mask-image: linear-gradient(270deg, #000, transparent 74%); }
.stat .value { font-size: 1.75rem; }

/* Sohbet kutusu: demo paneldeki gibi yumuşak kenarlar ve yuvarlak gönder düğmesi */
.mi-item.active::before { width: 3px; border-radius: 0 3px 3px 0; inset-block: 10px; }
.mi-ch { background: transparent; border: 0; }
.mi-reply textarea { border-radius: var(--r-md); }
.mi-reply-row .mi-btn-primary { min-height: 40px; padding: 0 20px; }
.mi-head { padding: 16px 20px; }

/* Tablolar: yumuşak başlık satırı */
.table-wrap th { padding-top: 14px; padding-bottom: 14px; }

/* Bilgi kutusundaki "devamı" bağlantısı hap düğme değil, yazı bağlantısıdır */
.note summary, .secret-note summary { border-radius: var(--r-xs); }

/* Sol menüdeki zil (masaüstü) ve alt menüdeki okunmamış sayacı */
@media (max-width: 1023.98px) { .sb-bell { display: none; } }
.bb-ic { position: relative; }
.bb-count {
    position: absolute; top: -5px; inset-inline-end: -9px;
    min-width: 17px; height: 17px; padding: 0 5px;
    border-radius: var(--r-full); background: var(--accent); color: #fff;
    font-size: .64rem; font-weight: 700; line-height: 17px; text-align: center;
}
.bb-count:empty { display: none; }

/* ---------------------------------------------------------------- Genel Bakış (panel-overview.js) */
.ov { container: ov / inline-size; }
.ov-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.ov-bar .seg { margin: 0; }
.ov-updated { font-size: .82rem; color: var(--text-3); }
.ov-bar .icon-btn { margin-inline-start: auto; }
[data-ov-body].is-busy { opacity: .5; transition: opacity .2s ease; pointer-events: none; }
.ov-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
@container ov (min-width: 880px) { .ov-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ov-kpi { display: flex; flex-direction: column; gap: 4px; }
.ov-kpi .stat-top .tile { width: 28px; height: 28px; }
.ov-kpi .stat-top .tile .ic { width: 15px; height: 15px; }
.ov-kpi .value { margin-top: 10px; font-size: 1.9rem; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-kpi .detail { margin-top: 2px; }
.ov-kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: auto; padding-top: 6px; font-size: .78rem; color: var(--text-3); }
.ov-delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.ov-delta .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.ov-delta.is-good { color: var(--ok-text); }
.ov-delta.is-bad { color: var(--bad-text); }
.ov-delta.is-same { color: var(--text-2); font-weight: 500; }
.ov-delta.is-new { color: var(--accent-2); }
html[data-theme="light"] .ov-delta.is-new { color: var(--accent); }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container ov (min-width: 700px) {
    .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "traffic traffic" "appts hot" "hours hours" "status channels" "services feed"; }
    /* Paketinde satış fırsatları (CRM) olmayan işletme: sıcak fırsatlar kartı yok. */
    .ov-grid.no-hot { grid-template-areas: "traffic traffic" "appts appts" "hours hours" "status channels" "services feed"; }
    .ov-card.is-traffic { grid-area: traffic; } .ov-card.is-appts { grid-area: appts; } .ov-card.is-hot { grid-area: hot; }
    .ov-card.is-hours { grid-area: hours; } .ov-card.is-status { grid-area: status; } .ov-card.is-channels { grid-area: channels; }
    .ov-card.is-services { grid-area: services; } .ov-card.is-feed { grid-area: feed; }
}
@container ov (min-width: 1080px) {
    .ov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "traffic traffic appts" "hot hours hours" "status channels services" "feed feed feed"; }
    .ov-grid.no-hot { grid-template-areas: "traffic traffic appts" "hours hours hours" "status channels services" "feed feed feed"; }
}
.ov-card {
    position: relative;
    display: flex; flex-direction: column; gap: 16px; min-width: 0;
    padding: 18px 20px;
    background: radial-gradient(130% 85% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 64%), var(--card);
    border: 1px solid color-mix(in srgb, var(--c) 20%, var(--line));
    border-radius: var(--r-lg);
}
html[data-theme="light"] .ov-card {
    background: radial-gradient(130% 85% at 0% 0%, color-mix(in srgb, var(--c) 9%, transparent), transparent 64%), #fff;
    border-color: color-mix(in srgb, var(--c) 18%, var(--line-2));
}
.ov-card::before {
    content: ""; position: absolute; inset: -1px; pointer-events: none;
    border-top: 2px solid var(--c); border-radius: calc(var(--r-lg) + 1px);
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.ov-card-head { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ov-card-head > div { flex: 1; min-width: 0; }
.ov-card-head .tile { width: 32px; height: 32px; }
.ov-card-head .tile .ic { width: 16px; height: 16px; }
.ov-card-head h2 { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.ov-card-head p { margin: 2px 0 0; font-size: .82rem; color: var(--text-3); }
.ov-card-body { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ov-card-foot { margin-top: auto; padding-top: 4px; }
.ov-sub { padding-top: 14px; border-top: 1px solid var(--line); }
.ov-sub h3 { margin: 0 0 10px; font-size: .84rem; font-weight: 500; color: var(--text-2); }
.ov-sub h3 b { color: var(--text); }
.ov-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0 6px; font-size: .86rem; color: var(--text-3); line-height: 1.5; }
.ov-foot-note { margin: 8px 0 0; font-size: .78rem; color: var(--text-3); }
.ov-link {
    display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
    color: var(--accent-2); font: inherit; font-size: .86rem; font-weight: 600; cursor: var(--cv-cur-hand, pointer);
}
html[data-theme="light"] .ov-link { color: var(--accent); }
.ov-link .ic { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.ov-link:hover .ic { transform: translateX(2px); }
.ov-error { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Sütun grafiği */
.ov-cols { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; min-height: 230px; }
.ov-cols.is-dense { min-height: 170px; }
.ov-axis { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 26px; font-size: .74rem; color: var(--text-3); text-align: end; }
.ov-axis span { line-height: 1; transform: translateY(-50%); }
.ov-axis span:last-child { transform: none; }
.ov-plot { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; }
.ov-lines { position: absolute; inset: 0 0 26px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.ov-lines i { display: block; height: 1px; background: var(--line); }
.ov-bars { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); align-items: end; gap: 6%; height: 100%; padding: 0 2%; }
.ov-cols.is-dense .ov-bars { gap: 3px; }
.ov-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.ov-col i {
    position: relative; display: block; width: min(100%, 38px); min-height: 0;
    border-radius: 6px 6px 2px 2px; background: var(--ch-open);
    transform-origin: bottom; animation: ovGrow .6s var(--ease) both; animation-delay: calc(var(--i) * 25ms);
}
.ov-col:hover i { filter: brightness(1.12); }
.ov-col i b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: .74rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.ov-xl { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; height: 26px; align-items: end; padding: 0 2%; font-size: .74rem; color: var(--text-3); text-align: center; }
.ov-xl span { overflow: hidden; text-overflow: clip; white-space: nowrap; }
.ov-xl span.is-faint { visibility: hidden; }
@keyframes ovGrow { from { transform: scaleY(0); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ov-col i { animation: none; } }

/* Listeler */
.ov-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ov-list li { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.ov-list li:last-child { border-bottom: 0; }
.ov-when { display: flex; flex-direction: column; flex: none; width: 52px; line-height: 1.25; }
.ov-when b { font-size: .95rem; }
.ov-when small, .ov-who small { font-size: .76rem; color: var(--text-3); }
.ov-who { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.ov-who b, .ov-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-who b { font-size: .9rem; font-weight: 600; }
.ov-pill { flex: none; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: var(--r-full); font-size: .76rem; font-weight: 500; color: var(--text-2); }
.ov-pill.is-ok { color: var(--ok-text); border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-soft); }
.ov-pill.is-warn { color: var(--warn-text); border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); }
.ov-pill.is-bad { color: var(--bad-text); border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-soft); }
.ov-opp { cursor: var(--cv-cur-hand, pointer); border-radius: var(--r-sm); transition: background .15s ease; }
.ov-opp:hover { background: var(--hover); }
.ov-opp:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ov-next { flex: none; max-width: 45%; font-size: .78rem; color: var(--text-2); text-align: end; }
.ov-logo { width: 20px; height: 20px; }
.ov-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 18px; }
@container ov (min-width: 1080px) { .ov-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ov-feed li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--text-2); }
.ov-feed li.is-unread { color: var(--text); font-weight: 500; }
.ov-feed-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-feed time { flex: none; font-size: .76rem; color: var(--text-3); }
.ov-feed-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ch-open); }
.ov-feed-dot.sev-warning { background: var(--warn); }
.ov-feed-dot.sev-error, .ov-feed-dot.sev-critical { background: var(--bad); }
.ov-feed-dot.sev-success { background: var(--ok); }

/* ---------------------------------------------------------------- AI Studio (panel-studio.js) */
#studioActions:empty { display: none; }
.st-tabs [role="tab"] .ic { color: var(--c-pink); }
.st-tab-dot { display: none; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.st-tab-dot.on { display: inline-block; }
.st-pane { display: flex; flex-direction: column; gap: 26px; }
.st-pane[hidden] { display: none !important; }
.st-group { min-width: 0; }
.st-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 8px; padding-inline: 2px; }
.st-group-head h2 { margin: 0; font-size: .98rem; font-weight: 600; }
.st-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.st-box > .st-row + .st-row { border-top: 1px solid var(--line); }
.st-row { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.st-row.is-inline { flex-direction: row; align-items: center; gap: 16px; }
.st-row.is-inline > .st-row-text { flex: 1; }
.st-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-row-text b { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; font-weight: 500; color: var(--text); }
.st-row-text p { margin: 0; max-width: 64ch; font-size: .82rem; line-height: 1.5; color: var(--text-2); }
.st-row-ctl { min-width: 0; }
.st-row-ctl > input, .st-row-ctl > select, .st-row-ctl > textarea { width: 100%; }
.st-row.is-inline > .st-row-ctl { flex: none; }
.st-dirty { display: none; padding: 1px 8px; border-radius: var(--r-full); background: var(--warn-soft); color: var(--warn-text); font-size: .7rem; font-weight: 600; }
.st-row.is-dirty .st-dirty { display: inline-block; }
.st-seg { display: flex; gap: 2px; width: 100%; padding: 3px; background: var(--hover); border: 1px solid var(--line); border-radius: var(--r-full); }
.st-seg [role="radio"] {
    flex: 1 1 0; min-width: 0; min-height: 36px; padding: 4px 12px;
    border: 0; border-radius: var(--r-full); background: none;
    color: var(--text-2); font: inherit; font-size: .86rem; font-weight: 500; line-height: 1.25;
    cursor: var(--cv-cur-hand, pointer); transition: background .2s ease, color .2s ease, box-shadow .2s ease;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.st-seg [role="radio"]:hover:not([disabled]) { color: var(--text); }
.st-seg [role="radio"][aria-checked="true"] { background: #2c2c31; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06); }
html[data-theme="light"] .st-seg { background: #ececee; }
html[data-theme="light"] .st-seg [role="radio"][aria-checked="true"] { background: #fff; box-shadow: 0 1px 2px rgba(20, 20, 30, .14), 0 0 0 1px rgba(20, 20, 30, .04); }
.st-seg [role="radio"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.st-seg [role="radio"][disabled] { cursor: not-allowed; }
.st-count { flex: none; font-size: .74rem; color: var(--text-3); }
.st-count.is-near { color: var(--warn-text); }
.st-ta-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: 10px; }
.st-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.st-idea { min-height: 30px; padding: 0 12px; gap: 6px; font-size: .8rem; color: var(--text-2); }
.st-idea .ic { width: 14px; height: 14px; color: var(--accent-2); }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
    display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
    border: 1px solid var(--line-2); border-radius: var(--r-full); background: transparent;
    color: var(--text-2); font: inherit; font-size: .86rem; cursor: var(--cv-cur-hand, pointer); transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.st-chip .ic { width: 15px; height: 15px; opacity: 0; transition: opacity .2s ease; }
.st-chip[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); font-weight: 600; }
.st-chip[aria-pressed="true"] .ic { opacity: 1; color: var(--accent-2); }
html[data-theme="light"] .st-chip[aria-pressed="true"] .ic { color: var(--accent); }
.st-chip:disabled { cursor: not-allowed; opacity: .6; }
.st-locked { flex-direction: row; align-items: center; }
.st-locked .tile { width: 40px; height: 40px; }
.st-lock { display: grid; place-items: center; width: 32px; height: 32px; color: var(--text-3); }
.st-note-inline { display: flex; align-items: center; gap: 6px; margin-top: 4px !important; color: var(--text-2) !important; }
.st-note-inline .ic { width: 14px; height: 14px; color: var(--info-ic); }
.st-foot-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.5; color: var(--text-3); }
.st-pane > .st-foot-note { border-top: 0; padding: 0 2px; }
.st-foot-note .ic { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--ok); }
.st-hint { margin: 8px 2px 0; font-size: .8rem; color: var(--text-3); }
/* Konuşma tanıma (dikte) dil başına: dil adı, Otomatik / Yalnız bu dil / Çok dilli, altında ne olacağı */
.st-stt { display: flex; flex-direction: column; gap: 14px; }
.st-stt-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 4px 14px; }
.st-stt-lang { font-size: .88rem; font-weight: 500; color: var(--text); }
.st-stt-line small { grid-column: 2; font-size: .78rem; line-height: 1.45; color: var(--text-3); }
@media (max-width: 560px) {
    .st-stt-line { grid-template-columns: minmax(0, 1fr); }
    .st-stt-line small { grid-column: 1; }
}
.st-kv-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 16px; font-size: .9rem; }
.st-kv-row + .st-kv-row { border-top: 1px solid var(--line); }
.st-kv-row > span { flex: none; color: var(--text); font-weight: 500; }
.st-kv-row > b { min-width: 0; font-weight: 400; color: var(--text-2); text-align: end; overflow-wrap: anywhere; }
.st-kv-row > b.is-empty { color: var(--text-3); font-style: italic; }
.st-kv-row.is-stack { flex-direction: column; align-items: stretch; gap: 6px; }
.st-kv-row.is-stack > b { text-align: start; line-height: 1.6; color: var(--text); }
.st-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 16px; }
.st-form .form-group { margin-bottom: 14px; }
.st-form .st-wide, .st-form .st-form-actions { grid-column: 1 / -1; }
.st-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.st-form-actions .st-hint { margin: 0 auto 0 0; color: var(--bad-text); }
.st-form .st-form-actions { margin-top: 0; }
.st-hours .st-hour { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 56px; padding: 8px 16px; }
.st-hours .st-hour + .st-hour { border-top: 1px solid var(--line); }
.st-hour > b { font-size: .9rem; font-weight: 500; }
.st-hour-times { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.st-hour-times input[type=time] { width: 124px; min-height: 38px; padding: 6px 10px; }
.st-hour.is-closed > b { color: var(--text-3); }
.st-closed { font-size: .86rem; color: var(--text-3); }
.st-conflict { margin-bottom: 18px; }

/* Kaydet çubuğu: değişiklik varken altta sabit */
.st-savebar {
    position: sticky; bottom: calc(16px + var(--bottom-h)); z-index: 40;
    display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 22px 0 0 auto;
    padding: 8px 8px 8px 16px;
    background: color-mix(in srgb, var(--elev) 92%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line-2); border-radius: var(--r-full); box-shadow: var(--shadow-sm);
    animation: panelIn .3s var(--ease) both;
}
html[data-theme="light"] .st-savebar { background: rgba(255, 255, 255, .92); }
.st-savebar[hidden] { display: none; }
.st-savebar-text { display: inline-flex; align-items: center; gap: 8px; margin-inline-end: 6px; font-size: .86rem; }
.st-savebar-text .ic { width: 16px; height: 16px; color: var(--warn); }

/* Önizleme: kutusuz (çerçeve ve zemin yok); telefonun arkasında yalnız yumuşak bir marka ışığı.
   Telefonun ekranı panelin ters temasında çizilir, kasası her temada gerçek bir iPhone gibi titanyum (aşağıda). */
.st-preview {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; gap: 14px;
    padding: 6px 4px 4px;
    border: 0;
    border-radius: 0;
    background: none;
}
.st-preview::before {
    /* genişlik sütunu aşmaz: önizleme sayfanın sağ kenarındayken yatay kaydırma çubuğu açmasın */
    content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(460px, 100%); height: 74%;
    transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(155, 85, 238, .2), rgba(248, 87, 107, .07) 58%, transparent 100%);
}
html[data-theme="light"] .st-preview::before { background: radial-gradient(closest-side, rgba(155, 85, 238, .14), rgba(248, 87, 107, .05) 58%, transparent 100%); }
.st-pv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-pv-head > div { display: flex; flex-direction: column; line-height: 1.3; }
.st-pv-head b { font-size: .92rem; }
.st-pv-head small { font-size: .76rem; color: var(--text-3); }
.st-pv-head small.is-draft { color: var(--warn-text); font-weight: 600; }
.st-pv-head .icon-btn { width: 32px; height: 32px; }
.st-pv-ideas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.st-pv-ideas .chip { min-height: 30px; padding: 0 12px; font-size: .78rem; border-radius: var(--r-full); }
.st-pv-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: .74rem; line-height: 1.5; color: var(--text-3); }
.st-pv-note .ic { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--ok); }
@media (max-width: 640px) {
    .st-form { grid-template-columns: 1fr; }
    .st-hours .st-hour { grid-template-columns: minmax(0, 1fr) auto; }
    .st-hour-times { grid-column: 1 / -1; grid-row: 2; }
    .st-hour-times input[type=time] { flex: 1; width: auto; }
    .st-tabs { align-self: stretch; }
    .st-seg [role="radio"] { padding: 4px 8px; font-size: .8rem; }
    .st-savebar { margin-inline: auto; }
}
@media (max-width: 760px) {
    #studioActions { display: none; }
    .st-tabs [role="tab"] .ic { display: none; }
    .st-seg { flex-wrap: wrap; border-radius: var(--r-lg); }
    .st-seg [role="radio"] { flex: 1 1 auto; border-radius: var(--r-md); }
}

/* ---------------------------------------------------------------- Giriş: convotify.com kayıt sayfasıyla aynı düzen */
/* Solda başlık ve değer kartı, sağda form kartı (24 px köşe). Telefonda yalnız kısa başlık + form. */
.auth-card { border-radius: var(--r-xl); }
.auth-card .btn-primary { border-radius: var(--r-full); }
.auth-split {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 480px); align-items: center; gap: clamp(32px, 6vw, 88px);
    width: 100%; max-width: 1220px; margin: 0 auto; padding: clamp(16px, 4vw, 48px) clamp(16px, 4vw, 40px) 56px;
}
.auth-hero { min-width: 0; }
.auth-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px;
    border: 1px solid var(--accent-line); border-radius: var(--r-full); background: var(--accent-soft);
    color: var(--accent-2); font-size: .82rem; font-weight: 600;
}
html[data-theme="light"] .auth-eyebrow { color: var(--accent); }
.auth-eyebrow .ic { width: 15px; height: 15px; }
.auth-hero h2 { margin: 0; font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; }
.auth-grad { background: linear-gradient(90deg, #c9b3ff, #b692dd 40%, #e879a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .auth-grad { background-image: linear-gradient(90deg, #3d2a57, #714e94 45%, #9a63c2); }
.auth-lead { max-width: 52ch; margin: 18px 0 26px; font-size: 1.05rem; line-height: 1.6; color: var(--text-2); }
.auth-value { max-width: 560px; padding: 24px 26px; background: color-mix(in srgb, var(--card) 88%, transparent); border: 1px solid var(--line); border-radius: var(--r-xl); }
.auth-value > b { display: block; margin-bottom: 12px; font-size: 1rem; font-weight: 600; }
.auth-value ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.auth-value li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; line-height: 1.5; color: var(--text-2); }
.auth-value li .ic { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--accent-2); stroke-width: 2.2; }
html[data-theme="light"] .auth-value li .ic { color: var(--accent); }
.auth-logos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.auth-logos img { width: 24px; height: 24px; object-fit: contain; }
.auth-card-lg { max-width: 480px; padding: 36px 36px 28px; }
.auth-card-lg h1 { text-align: start; font-size: 1.6rem; }
.auth-card-lg .subtitle { text-align: start; margin-bottom: 24px; }
.auth-card-lg input[type=text], .auth-card-lg input[type=password] { min-height: 50px; background: var(--card-2); }
.auth-card-lg .btn-primary { min-height: 52px; font-size: 1rem; }
.auth-signup { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); font-size: .88rem; color: var(--text-2); }
.auth-signup .btn { min-height: 36px; }
.auth-signup .btn .ic { width: 15px; height: 15px; }
.auth-card-lg .auth-foot { text-align: start; }
@media (max-width: 960px) {
    .auth-split { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 22px; padding-top: 8px; }
    .auth-hero { width: 100%; max-width: 480px; }
    .auth-hero h2 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .auth-lead { margin: 12px 0 0; font-size: .95rem; }
    .auth-value { display: none; }
    .auth-eyebrow { margin-bottom: 12px; }
}
@media (max-width: 480px) {
    .auth-card-lg { padding: 26px 20px 22px; }
    .auth-signup { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------------------------------------------------------------- Takvim (panel-calendar.js) */
.cal-stats { margin-bottom: 18px; }
.cal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cal-bar .icon-btn { margin-inline-start: auto; }
.cal-days.is-busy { opacity: .5; pointer-events: none; transition: opacity .2s ease; }
.cal-day + .cal-day { margin-top: 22px; }
.cal-day-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 10px; font-size: .9rem; font-weight: 400; color: var(--text-2); }
.cal-day-h b { margin-inline-end: 6px; color: var(--text); font-weight: 600; }
.cal-day-h small { font-size: .8rem; color: var(--text-3); }
.cal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cal-item {
    display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 36px; align-items: center; gap: 16px;
    padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: border-color .2s ease;
}
.cal-item:hover { border-color: var(--accent-line); }
.cal-when { display: flex; flex-direction: column; padding-inline-end: 14px; border-inline-end: 1px solid var(--line); line-height: 1.25; }
.cal-when b { font-size: 1.02rem; font-weight: 600; }
.cal-when small { font-size: .76rem; color: var(--text-3); }
.cal-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-who b { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-who small { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-who small .ic { width: 14px; height: 14px; color: var(--c-blue); }
.cal-logo { width: 16px; height: 16px; flex: none; }
.cal-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.cal-tags .ov-pill { display: inline-flex; align-items: center; gap: 6px; }
.cal-tags .ov-pill .ic { width: 14px; height: 14px; }
.cal-open { width: 34px; height: 34px; }
.cal-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.cal-empty .ic { width: 28px; height: 28px; color: var(--c-blue); }
.cal-empty p { max-width: 60ch; margin: 0; color: var(--text-3); text-align: center; }
.cal-more { display: flex; justify-content: center; margin-top: 16px; }
/* Bağlı takvimler (Google / Outlook): kartın sağ üst köşesinde kaynağın simgesi; takvimdeki diğer
   etkinlikler kesik çizgili, sönük kart (salt okunur); üstte kaynak filtresi. */
.cal-bar { flex-wrap: wrap; }
.cal-item { position: relative; }
.cal-src {
    position: absolute; top: 6px; inset-inline-end: 8px; display: inline-flex; align-items: center; gap: 3px;
    pointer-events: none;
}
.cal-src img.cal-src-logo { display: block; width: 16px; height: 16px; }
.cal-item.cal-ext { background: color-mix(in srgb, var(--card) 55%, transparent); border-style: dashed; }
.cal-item.cal-ext .cal-who b { font-weight: 500; }
.cal-item.cal-ext.is-private .cal-who b { color: var(--text-2); }
.cal-filters img.cal-src-logo { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 6px; }
.cal-src-note { margin-bottom: 12px; }
.cal-kvs img.cal-src-logo { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 720px) {
    .cal-item { grid-template-columns: 58px minmax(0, 1fr) 34px; gap: 10px 12px; }
    .cal-tags { grid-column: 2 / 3; justify-content: flex-start; }
    .cal-open { grid-column: 3; grid-row: 1; }
    .cal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* AI Studio'da kaydedilmemiş değişiklik: menü öğesinde küçük turuncu nokta */
.sb-nav .tab.has-draft .sb-ic { position: relative; }
.sb-nav .tab.has-draft .sb-ic::after {
    content: ""; position: absolute; top: -2px; inset-inline-end: -2px; width: 9px; height: 9px;
    border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--sb-bg);
}
/* Genel Bakış: dar kartta halka grafik küçülür, açıklama sığar */
.ov-card.is-status .chart-split { gap: 18px; }
.ov-card.is-status .donut { width: 132px; }
.ov-xl span:empty::before { content: "\00a0"; }

/* ---------------------------------------------------------------- AI Studio: yerleşim ve önizleme */
/* Yerleşim AI Studio'nun kendi genişliğine göre (container query): genişken ayarlar solda, telefon sağda
   yapışık; darken (tablet, telefon) önce sekmeler, sonra ayarlar, en altta telefon. Convotify Voice
   sekmesinde arama ekranı asıl iş olduğu için telefon sekmelerin hemen altına gelir (demo panel gibi). */
#panelStudio { container: studio / inline-size; }
.st { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.st-main { display: contents; }
.st-main > * { order: 1; min-width: 0; }
.st-main > .st-ro, .st-main > .st-conflict-host, .st-main > .st-tabs { order: 0; }
.st-conflict-host:empty { display: none; }
.st-tabs { margin: 0; justify-self: start; max-width: 100%; }
.st-side { order: 2; min-width: 0; }
.st.is-call .st-side { order: 0; }
.st-pane, .st-side { width: 100%; max-width: 760px; }
@container studio (min-width: 900px) {
    .st { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; row-gap: 0; }
    .st-main { display: flex; flex-direction: column; gap: 22px; max-width: 760px; grid-column: 1; }
    .st-main > * { order: initial; }
    .st-side { order: initial; position: sticky; top: 20px; grid-column: 2; }
    .st.is-call .st-side { order: initial; }
    /* Kaydet çubuğu ayar sütununun altında durur, telefonun üstüne binmez */
    .st-savebar { margin-right: 372px; }
}
.st-savebar-short { display: none; }
@container studio (max-width: 620px) {
    .st-savebar [data-savebar-count] { display: none; }
    .st-savebar-short { display: inline; }
}
/* Ayar sütunu daralınca (telefon, tablet, iki sütunlu dar ekran) sekmelerde kısa ad ("Tarz · Zeka ·
   Diller · Sesli · İşletme") ve seçeneklerde satır kırma: hiçbir sekme ya da seçenek kesilmez. */
.st-tab-s { display: none; }
@container studio (max-width: 760px) {
    .st-tab-l { display: none; }
    .st-tab-s { display: inline; }
    .st-seg { flex-wrap: wrap; border-radius: var(--r-lg); }
    .st-seg [role="radio"] { flex: 1 1 auto; border-radius: var(--r-md); }
}
@container studio (min-width: 900px) and (max-width: 1099px) {
    .st-tab-l { display: none; }
    .st-tab-s { display: inline; }
    .st-seg { flex-wrap: wrap; border-radius: var(--r-lg); }
    .st-seg [role="radio"] { flex: 1 1 auto; border-radius: var(--r-md); }
}
@container studio (max-width: 620px) {
    .st-tabs { display: flex; width: 100%; }
    .st-tabs [role="tab"] { flex: 1 1 auto; justify-content: center; min-width: 0; padding: 0 7px; gap: 5px; }
    .st-tabs [role="tab"] .ic { display: none; }
    .st-tab-s { overflow: hidden; text-overflow: ellipsis; }
}
.st-tabs [role="tab"] { position: relative; }
.st-tab-dot { flex: none; }

/* Önizleme kartı: koyu sahne üstünde telefon (demo panel) */
.st-preview { align-items: center; padding: 6px 4px 4px; }
.st-pv-head { width: 100%; }
.st-pv-head .icon-btn[hidden] { display: none; }
.st-pv-under { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.st-pv-under:empty { display: none; }
.st-pv-under-call { display: none; }
.st.is-call .st-pv-under-chat { display: none; }
.st.is-call .st-pv-under-call { display: flex; }
.st-pv-note { align-self: stretch; }
.st-pv-ideas { max-width: 300px; }
.st-pv-under .vx-hint { align-self: stretch; }
.vx-after[hidden] { display: none; }

/* ---------------------------------------------------------------- Gerçekçi telefon */
/* convotify.com Özellikler sayfasındaki telefonun aynısı (convotify-website ai/assets/components.css:
   .phone, .pc-*): metal kasa, yan tuşlar, Dinamik Ada ve kamerası, gerçek durum simgeleri, WhatsApp
   ekranı ve ev çizgisi. Bütün iç ölçüler `--pw` genişliğine bağlı `em`; telefon her boyutta aynı oranda
   küçülür. Mockup her zaman panelin ters temasında: aşağıdaki temel kurallar koyu telefonu (açık panel)
   çizer; koyu panelde gümüş kasa, açık WhatsApp ve açık arama ekranı gelir. */
.phone {
    --pw: 300px;
    position: relative; flex: none; width: var(--pw); aspect-ratio: 70.6 / 146.6; margin: 0 auto; padding: .16em;
    font-size: calc(var(--pw) / 30);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font);
    text-align: start; color: #e9edef; -webkit-font-smoothing: antialiased;
    border-radius: 5.15em;
    /* Siyah titanyum bant: köşelerde parlama, kenarlarda koyu ton (iPhone 15 Pro) */
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 9%, rgba(255, 255, 255, 0) 91%, rgba(255, 255, 255, .34) 100%),
        linear-gradient(90deg, #2a2b2f 0%, #4a4c51 6%, #26272b 16%, #1c1d20 50%, #26272b 84%, #4a4c51 94%, #2a2b2f 100%);
    box-shadow:
        inset 0 0 0 .05em rgba(255, 255, 255, .22), inset 0 0 0 .14em rgba(0, 0, 0, .55),
        0 0 0 .05em rgba(0, 0, 0, .9), 0 3.4em 6.6em -2.2em rgba(24, 12, 52, .8), 0 1.6em 3em -1.6em rgba(0, 0, 0, .75);
}
.st-preview .phone { --pw: min(300px, calc(100cqw - 40px)); }
@container studio (min-width: 900px) {
    /* Yapışık sütunda telefon ekrana sığar: kısa ekranlarda biraz küçülür */
    .st-preview .phone { --pw: clamp(244px, calc((100vh - 268px) * .4816), 300px); --pw: clamp(244px, calc((100dvh - 268px) * .4816), 300px); }
}
.phone::before { content: ""; position: absolute; inset: .42em; border-radius: 4.73em; background: #020203; box-shadow: inset 0 0 0 .05em #1a1b1e, 0 0 0 .04em rgba(255, 255, 255, .06); }
.phone-key {
    position: absolute; width: .26em; border-radius: .13em;
    background: linear-gradient(90deg, #6a6c71, #34353a 55%, #1d1e21); box-shadow: inset 0 0 0 .03em rgba(255, 255, 255, .12);
}
.phone-key--act { left: -.22em; top: 16.2%; height: 2.5em; }
.phone-key--up { left: -.22em; top: 24.4%; height: 4.6em; }
.phone-key--down { left: -.22em; top: 33%; height: 4.6em; }
.phone-key--pwr { right: -.22em; left: auto; top: 26.5%; height: 7.4em; background: linear-gradient(270deg, #6a6c71, #34353a 55%, #1d1e21); }
.phone-screen {
    position: absolute; inset: 1.04em; z-index: 1; display: flex; flex-direction: column; overflow: hidden;
    border-radius: 4.11em; background: #0b141a; isolation: isolate;
}
.phone-status {
    position: relative; z-index: 3; flex: none; display: flex; align-items: center; justify-content: space-between;
    height: 4.15em; padding: .5em 2.05em 0 2.7em; background: #151e24; color: #fff;
}
.phone-time { font-size: 1.38em; font-weight: 600; letter-spacing: -.01em; }
.phone-island { position: absolute; top: .92em; left: 50%; width: 9.3em; height: 2.72em; margin-left: -4.65em; border-radius: 1.36em; background: #000; }
.phone-island::after {
    content: ""; position: absolute; top: 50%; right: .92em; width: .82em; height: .82em; margin-top: -.41em; border-radius: 50%;
    background: radial-gradient(circle at 36% 34%, #4a5b8c 0, #1a2242 38%, #05070d 72%);
}
.phone-sys { display: inline-flex; align-items: center; gap: .4em; }
.phone-sys svg { display: block; width: auto; height: 1.02em; }
.phone-sys .phone-batt { height: 1.12em; }
.phone-home {
    position: absolute; z-index: 4; left: 50%; bottom: .72em; width: 11.2em; height: .42em; margin-left: -5.6em;
    border-radius: .21em; background: rgba(233, 237, 239, .92); pointer-events: none;
}
.st-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.st-screen-call { display: none; }
.st.is-call .st-screen-chat { display: none; }
.st.is-call .st-screen-call { display: flex; }

/* WhatsApp sohbeti */
.pc-head {
    position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: .55em;
    padding: .2em 1.25em .8em .8em; background: #151e24; border-bottom: .06em solid rgba(255, 255, 255, .07);
}
.pc-back svg { display: block; width: 1.55em; height: 1.55em; }
.pc-ava {
    flex: none; display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%;
    background: linear-gradient(150deg, #9380f8, #6444d6); color: #fff; font-size: 1.3em; font-weight: 600; line-height: 1;
}
.pc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .12em; line-height: 1.15; }
.pc-name { overflow: hidden; font-size: 1.36em; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pc-name.is-long { font-size: 1.16em; letter-spacing: -.01em; }
.pc-state { font-size: 1.05em; color: #8696a0; transition: color .2s; }
.pc-state.is-typing { color: #21c063; }
.pc-acts { flex: none; display: flex; align-items: center; gap: 1.25em; }
.pc-acts svg { display: block; width: 2em; height: 2em; }
.pc-acts svg + svg { width: 1.7em; height: 1.7em; }
.pc-chat {
    flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: .34em;
    padding: .9em .95em .85em; overflow: hidden; background: linear-gradient(180deg, #0c161b 0%, #0b1419 100%);
}
.pc-chat--scroll { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.pc-chat--scroll::-webkit-scrollbar { display: none; }
.pc-chat--scroll > :first-child { margin-top: auto; }
.pc-chat:focus-visible { outline: 2px solid #53bdeb; outline-offset: -2px; }
.pc-day { flex: none; align-self: center; margin: 0 0 .7em; padding: .34em .85em; border-radius: .62em; background: #182229; color: #8696a0; font-size: .98em; font-weight: 500; }
.pc-msg {
    position: relative; flex: none; max-width: 80%; padding: .38em .6em .44em; border-radius: .62em;
    font-size: 1.2em; line-height: 1.34; color: #e9edef; overflow-wrap: anywhere; animation: pcIn .28s var(--ease) both;
}
.pc-in { align-self: flex-start; background: #202c33; }
.pc-out { align-self: flex-end; background: #0f4a3c; }
.pc-msg.pc-tail { margin-top: .28em; }
.pc-in.pc-tail { border-top-left-radius: 0; }
.pc-out.pc-tail { border-top-right-radius: 0; }
.pc-tail::before { content: ""; position: absolute; top: 0; width: .5em; height: .62em; background: inherit; }
.pc-in.pc-tail::before { left: -.46em; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.pc-out.pc-tail::before { right: -.46em; clip-path: polygon(0 0, 100% 0, 0 100%); }
.pc-text { white-space: pre-wrap; }
.pc-text::after { content: ""; display: inline-block; width: 2.55em; }
.pc-out .pc-text::after { width: 3.6em; }
.pc-meta {
    position: absolute; right: .55em; bottom: .32em; display: inline-flex; align-items: center; gap: .22em;
    font-size: .7em; line-height: 1; color: rgba(233, 237, 239, .58); white-space: nowrap;
}
.pc-out .pc-meta { color: rgba(233, 237, 239, .66); }
.pc-ticks { display: block; width: 1.45em; height: .9em; color: #53bdeb; }
.pc-typing {
    flex: none; align-self: flex-start; display: flex; gap: .3em; margin-top: .28em; padding: .78em .85em;
    border-radius: 0 .62em .62em .62em; background: #202c33; animation: pcIn .28s var(--ease) both;
}
.pc-typing i { width: .56em; height: .56em; border-radius: 50%; background: #8696a0; animation: pcDot 1.2s infinite ease-in-out; }
.pc-typing i:nth-child(2) { animation-delay: .16s; }
.pc-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes pcDot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-.18em); } }
@keyframes pcIn { from { opacity: 0; transform: translateY(.4em); } to { opacity: 1; transform: none; } }
/* Önizlemeye özgü: sistem uyarısı (WhatsApp'taki not gibi), boş sohbette örnek mesajlar */
.st-pv-alert {
    flex: none; align-self: center; max-width: 88%; margin: .4em 0; padding: .5em .8em; border-radius: .62em;
    background: #182229; color: #ffd279; font-size: 1em; line-height: 1.4; text-align: center;
}
.st-chat-empty { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: .8em; padding: 0 1.6em; text-align: center; font-size: 1.08em; line-height: 1.5; color: #8696a0; }
.st-chat-empty .ic { width: 2.1em; height: 2.1em; color: #c9b3ff; }
.st-chat-empty p { margin: 0; }
.st-chat-empty .st-pv-ideas { display: flex; flex-direction: column; align-items: center; gap: .5em; max-width: none; margin-top: .6em; }
.st-pv-idea {
    padding: .5em 1em; border: .08em solid rgba(83, 189, 235, .35); border-radius: 999px; background: rgba(32, 44, 51, .9);
    color: #53bdeb; font: inherit; font-size: 1.05em; font-weight: 500; line-height: 1.2; cursor: var(--cv-cur-hand, pointer); transition: background .2s, border-color .2s;
}
.st-pv-idea:hover { background: #202c33; border-color: rgba(83, 189, 235, .6); }
.st-pv-idea:focus-visible { outline: 2px solid #53bdeb; outline-offset: 2px; }
.st-pv-used { display: flex; align-items: flex-start; gap: 7px; align-self: stretch; margin: 0; font-size: .76rem; line-height: 1.5; color: var(--text-2); }
.st-pv-used .ic { flex: none; width: 14px; height: 14px; margin-top: 2px; color: var(--accent-2); }
html[data-theme="light"] .st-pv-used .ic { color: var(--accent); }
.pc-bar {
    position: relative; flex: none; display: flex; align-items: center; gap: .85em; margin: 0;
    padding: .7em 1.05em 2.25em; background: #151e24; border-top: .06em solid rgba(255, 255, 255, .06); color: #e9edef;
}
.pc-bar > svg, .pc-cam svg, .pc-mic svg { display: block; flex: none; width: 1.95em; height: 1.95em; }
.pc-cam, .pc-mic { flex: none; }
.pc-field {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: .4em; height: 2.85em; padding: 0 .75em 0 1em;
    border: .06em solid rgba(255, 255, 255, .09); border-radius: 1.43em; background: #1d2830; transition: border-color .2s, box-shadow .2s;
}
.pc-field svg { flex: none; width: 1.62em; height: 1.62em; color: #8696a0; }
.pc-input { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; }
.phone .pc-field input[type=text] {
    flex: 1; min-width: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; outline: 0;
    background: transparent; box-shadow: none; color: #e9edef; font: inherit; font-size: 1.2em;
}
/* Telefonda (iOS) 16 px'ten küçük alan odakta sayfayı yakınlaştırır: alan 16 px yazılır, %75 ölçekle çizilir */
@media (max-width: 760px) {
    .pc-input { overflow: hidden; }
    .phone .pc-field input[type=text] {
        position: absolute; left: 0; top: 50%; width: 133.334%; height: 133.334%;
        font-size: 16px !important; transform: translateY(-50%) scale(.75); transform-origin: 0 50%;
    }
}
.phone .pc-field input[type=text]::placeholder { color: #8696a0; opacity: 1; }
.phone .pc-field input[type=text]:disabled { opacity: 1; color: #8696a0; }
.pc-field:focus-within { border-color: rgba(83, 189, 235, .55); }
.pc-field:has(input:focus-visible) { border-color: #53bdeb; box-shadow: 0 0 0 2px rgba(83, 189, 235, .45); }
.pc-send {
    display: none; flex: none; place-items: center; width: 2.6em; height: 2.6em; padding: 0;
    border: 0; border-radius: 50%; background: #21c063; color: #0b141a; cursor: var(--cv-cur-hand, pointer);
}
.pc-send svg { width: 1.35em; height: 1.35em; margin-left: .12em; }
.pc-send:focus-visible { outline: 2px solid #53bdeb; outline-offset: 2px; }
.pc-send:disabled { opacity: .5; cursor: not-allowed; }
.pc-bar.has-text .pc-cam, .pc-bar.has-text .pc-mic { display: none; }
.pc-bar.has-text .pc-send { display: grid; }

/* Açık panelde koyu telefon sahnesiz, açık zeminde durur: gölge yumuşar */
html[data-theme="light"] .phone {
    box-shadow: 0 0 0 .06em rgba(0, 0, 0, .7), 0 3.4em 6.6em -2.2em rgba(24, 12, 52, .42), 0 1.6em 3em -1.6em rgba(0, 0, 0, .34);
}
/* Koyu panelde ters tema yalnız ekranda: açık WhatsApp. Kasa her temada aynı siyah titanyum; koyu zeminde
   kaybolmasın diye kenarda ince bir ışık. */
html:not([data-theme="light"]) .phone {
    color: #111b21;
    box-shadow:
        inset 0 0 0 .05em rgba(255, 255, 255, .24), inset 0 0 0 .14em rgba(0, 0, 0, .55),
        0 0 0 .06em rgba(255, 255, 255, .1), 0 3.4em 6.6em -2.2em rgba(0, 0, 0, .9), 0 1.6em 3em -1.6em rgba(0, 0, 0, .8);
}
html:not([data-theme="light"]) .phone-screen { background: #efeae2; }
html:not([data-theme="light"]) .phone-status { background: #f6f6f6; color: #000; }
html:not([data-theme="light"]) .phone-home { background: rgba(0, 0, 0, .85); }
html:not([data-theme="light"]) .pc-head { background: #f6f6f6; border-bottom-color: rgba(0, 0, 0, .1); color: #111b21; }
html:not([data-theme="light"]) .pc-ava { background: linear-gradient(150deg, #7457e6, #5133c4); }
html:not([data-theme="light"]) .pc-state { color: #5b6b74; }
html:not([data-theme="light"]) .pc-state.is-typing { color: #00735d; }
html:not([data-theme="light"]) .pc-chat { background: #efeae2; }
html:not([data-theme="light"]) .pc-day { background: #fff; color: #54656f; box-shadow: 0 .06em .1em rgba(11, 20, 26, .1); }
html:not([data-theme="light"]) .pc-msg { color: #111b21; box-shadow: 0 .06em .08em rgba(11, 20, 26, .1); }
html:not([data-theme="light"]) .pc-in { background: #fff; }
html:not([data-theme="light"]) .pc-out { background: #d9fdd3; }
html:not([data-theme="light"]) .pc-meta, html:not([data-theme="light"]) .pc-out .pc-meta { color: #667781; }
html:not([data-theme="light"]) .pc-typing { background: #fff; box-shadow: 0 .06em .08em rgba(11, 20, 26, .1); }
html:not([data-theme="light"]) .pc-typing i { background: #8696a0; }
html:not([data-theme="light"]) .st-pv-idea { background: #fff; border-color: rgba(0, 128, 105, .3); color: #008069; }
html:not([data-theme="light"]) .st-pv-idea:hover { background: #f0faf7; border-color: rgba(0, 128, 105, .55); }
html:not([data-theme="light"]) .st-pv-alert { background: #fff5c4; color: #54656f; box-shadow: 0 .06em .08em rgba(11, 20, 26, .1); }
html:not([data-theme="light"]) .st-chat-empty { color: #54656f; }
html:not([data-theme="light"]) .st-chat-empty .ic { color: #6444d6; }
html:not([data-theme="light"]) .pc-bar { background: #f6f6f6; border-top-color: rgba(0, 0, 0, .08); color: #3b4a54; }
html:not([data-theme="light"]) .pc-field { border-color: rgba(0, 0, 0, .1); background: #fff; }
html:not([data-theme="light"]) .pc-field svg { color: #667781; }
html:not([data-theme="light"]) .phone .pc-field input[type=text] { color: #111b21; }
html:not([data-theme="light"]) .phone .pc-field input[type=text]::placeholder { color: #667781; }
html:not([data-theme="light"]) .pc-send { background: #00a884; color: #fff; }

/* ---------------------------------------------------------------- Convotify Voice: arama ekranı */
/* Demo paneldeki "Convotify Voice" arama ekranı (convotify-website ai/assets/demo/demo.css .pc-call). Temel
   kurallar koyu ekranı (açık panel) çizer; koyu panelde açık ekran gelir (aşağıda, ters tema). Durum
   `.vc[data-state]` ile canlanır: dinlerken yeşil, konuşurken pembe dalga ve halka. */
.st.is-call .phone-screen { background: linear-gradient(180deg, #17121f 0%, #0a0a0c 100%); }
.st.is-call .phone-status { background: transparent; color: #fff; }
.st.is-call .phone-home { background: rgba(233, 237, 239, .92); }
.pc-call {
    --vc: #f472b6;
    position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1.15em;
    padding: 1.2em 1.4em 2.3em; overflow: hidden; color: #fff; text-align: center;
    background: radial-gradient(130% 55% at 50% 0%, color-mix(in srgb, var(--vc) 30%, transparent), transparent 72%);
}
.pc-call[data-state="listening"] { --vc: #4ade80; }
.pc-call-who { display: flex; flex-direction: column; align-items: center; gap: .4em; }
.pc-call-ava {
    position: relative; display: grid; place-items: center; width: 6em; height: 6em; margin: .3em 0 .45em; border-radius: 50%;
    background: linear-gradient(150deg, #f9a8d4, #be185d);
    box-shadow: 0 1em 2.4em -1em rgba(244, 114, 182, .8);
}
.pc-call-ava > span { font-size: 2em; font-weight: 600; letter-spacing: .02em; }
.pc-call-ava::before, .pc-call-ava::after {
    content: ""; position: absolute; inset: -.5em; border: .12em solid color-mix(in srgb, var(--vc) 60%, transparent); border-radius: 50%; opacity: 0;
}
.pc-call-name { max-width: 100%; overflow: hidden; font-size: 1.7em; font-weight: 600; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.pc-call-sub { display: inline-flex; align-items: center; gap: .35em; font-size: 1.1em; color: rgba(255, 255, 255, .72); }
.pc-call-sub img { width: 1.15em; height: 1.15em; border-radius: .25em; }
/* Görüşme süresi sabit genişlikte bir kutuda: rakamlar orantılı, satır her saniye kıpırdamaz */
.pc-call-sub time { min-width: 2.9em; text-align: start; }
.pc-call[data-state="idle"] .pc-call-sub :is(.pc-call-sep, time) { display: none; }
.pc-call-state {
    display: inline-flex; align-items: center; gap: .45em; margin-top: .25em; padding: .3em .85em; border-radius: 999px;
    background: rgba(255, 255, 255, .08); font-size: 1em; font-weight: 500; color: rgba(255, 255, 255, .86);
}
.pc-call-state i { width: .55em; height: .55em; border-radius: 50%; background: #a1a1aa; }
.pc-call[data-state="listening"] .pc-call-state i { background: #4ade80; }
.pc-call[data-state="speaking"] .pc-call-state i { background: #f472b6; }
.pc-call:is([data-state="connecting"], [data-state="initializing"], [data-state="thinking"]) .pc-call-state i { background: #fbbf24; }
.pc-call-wave { display: flex; align-items: center; justify-content: center; gap: .24em; height: 3em; flex: none; }
.pc-call-wave i {
    width: .3em; height: var(--h); border-radius: .2em; background: var(--vc); opacity: .35; transform: scaleY(.22);
    transition: opacity .3s ease, transform .3s ease, background .3s ease;
}
.pc-call-log {
    display: flex; flex: 1; flex-direction: column; gap: .7em; min-height: 0; padding: 1.1em 1.2em; border-radius: 1.6em;
    background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .07em rgba(255, 255, 255, .08); text-align: start;
}
.pc-call-lt { margin: 0; font-size: .95em; font-weight: 600; color: rgba(255, 255, 255, .55); }
.pc-call-lines {
    display: flex; flex: 1; flex-direction: column; gap: .85em; min-height: 0; margin: 0; padding: 0; list-style: none;
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.4em); mask-image: linear-gradient(180deg, transparent 0, #000 1.4em);
}
.pc-call-lines::-webkit-scrollbar { display: none; }
.pc-call-lines > :first-child { margin-top: auto; }
.pc-call-line { animation: pcIn .3s var(--ease) both; }
.pc-call-line b { display: block; margin-bottom: .15em; font-size: .95em; font-weight: 600; color: #f472b6; }
.pc-call-line.is-user b { color: rgba(255, 255, 255, .75); }
.pc-call-line p { margin: 0; font-size: 1.12em; line-height: 1.42; color: #fff; overflow-wrap: anywhere; }
.pc-call-line:not(.is-final) p { opacity: .7; }
.pc-call-empty { margin: auto 0; padding: 0 .6em; font-size: 1.05em; line-height: 1.5; color: rgba(255, 255, 255, .5); text-align: center; }
/* Yazarak yanıt: asistanın istediği alan, seçenekleri ya da serbest yazı. Yerini avatar ve dalgadan alır. */
.pc-call-type {
    display: flex; flex: none; flex-direction: column; gap: .6em; margin: 0; padding: .95em 1.1em 1.05em; border-radius: 1.6em;
    background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .22); text-align: start;
}
.pc-call-type[hidden], .pc-call-type [hidden] { display: none; }
.pc-call-type label { margin: 0; font-size: 1.05em; font-weight: 600; color: inherit; }
.pc-call-type-r { display: flex; gap: .6em; }
.pc-call-type-r input {
    flex: 1; min-width: 0; height: 3em; margin: 0; padding: 0 1em; border: .08em solid rgba(255, 255, 255, .26); border-radius: 1em;
    background: rgba(0, 0, 0, .28); color: inherit; font: inherit; font-size: 1.15em;
}
.pc-call-type-r button {
    display: grid; flex: none; place-items: center; width: 3.45em; height: 3.45em; padding: 0; border: 0; border-radius: 1.1em;
    background: #be185d; color: #fff; cursor: var(--cv-cur-hand, pointer);
}
.pc-call-type-r button svg { width: 1.6em; height: 1.6em; }
.pc-call-type-o { display: flex; flex-wrap: wrap; gap: .55em; }
.pc-call-type-o button {
    min-height: 2.9em; padding: .5em 1.1em; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: inherit;
    font: inherit; font-size: 1.05em; cursor: var(--cv-cur-hand, pointer);
}
.pc-call-type-o button:hover { background: rgba(255, 255, 255, .26); }
.pc-call-type :is(input, button):focus-visible { outline: 2px solid #c9b3ff; outline-offset: 2px; }
.pc-call-type small { font-size: .95em; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.pc-call-type small:empty { display: none; }
.pc-call-type small.is-error { color: #fda4af; font-weight: 600; }
.pc-call.is-typing .pc-call-ava { width: 3.4em; height: 3.4em; margin: 0; }
.pc-call.is-typing .pc-call-ava > span { font-size: 1.25em; }
.pc-call.is-typing .pc-call-wave { display: none; }
.pc-call-btns { display: flex; justify-content: center; gap: .85em; flex: none; }
.pc-call-btn {
    display: grid; flex: none; place-items: center; width: 4.2em; height: 4.2em; padding: 0; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .14); color: #fff; cursor: var(--cv-cur-hand, pointer);
    transition: background .2s ease, color .2s ease, transform .2s var(--ease), opacity .2s ease;
}
.pc-call-btn svg { width: 1.9em; height: 1.9em; }
.pc-call-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.pc-call-btn:active:not(:disabled) { transform: scale(.94); }
.pc-call-btn:disabled { opacity: .38; cursor: not-allowed; }
.pc-call-btn:focus-visible { outline: 2px solid #c9b3ff; outline-offset: 3px; }
.pc-call-btn[aria-pressed="true"]:not(.is-main) { background: #fff; color: #111; }
.pc-call-btn.is-main { background: #22c55e; box-shadow: 0 1em 2em -1em rgba(34, 197, 94, .85); }
.pc-call-btn.is-main:hover:not(:disabled) { background: #16a34a; }
.pc-call-btn.is-main svg { transition: transform .3s var(--ease); }
.pc-call-btn.is-main[aria-pressed="true"] { background: #eb4d3d; box-shadow: 0 1em 2em -1em rgba(235, 77, 61, .85); }
.pc-call-btn.is-main[aria-pressed="true"]:hover:not(:disabled) { background: #dc2626; }
.pc-call-btn.is-main[aria-pressed="true"] svg { transform: rotate(135deg); }
@media (prefers-reduced-motion: no-preference) {
    .pc-call:is([data-state="speaking"], [data-state="listening"]) .pc-call-ava::before,
    .pc-call:is([data-state="speaking"], [data-state="listening"]) .pc-call-ava::after { animation: pcRing 1.8s ease-out infinite; }
    .pc-call:is([data-state="speaking"], [data-state="listening"]) .pc-call-ava::after { animation-delay: .9s; }
    .pc-call:is([data-state="connecting"], [data-state="initializing"], [data-state="thinking"]) .pc-call-ava { animation: pcBreath 1.4s ease-in-out infinite; }
    .pc-call:is([data-state="speaking"], [data-state="listening"]) .pc-call-wave i { opacity: 1; animation: pcWave .9s ease-in-out var(--d) infinite alternate; }
    .pc-call[data-state="listening"] .pc-call-wave i { animation-duration: 1.5s; }
    .pc-call[data-state="thinking"] .pc-call-wave i { opacity: .7; background: #fbbf24; animation: pcThink 1.2s ease-in-out var(--d) infinite; }
    .pc-call.is-muted .pc-call-wave i { animation: none; opacity: .3; background: rgba(255, 255, 255, .6); }
}
@keyframes pcRing { from { opacity: .9; transform: scale(.94); } to { opacity: 0; transform: scale(1.35); } }
@keyframes pcBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(.95); } }
@keyframes pcWave { from { transform: scaleY(.28); } to { transform: scaleY(1); } }
@keyframes pcThink { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(.5); } }

/* Koyu panelde ters tema: açık arama ekranı. Zemin açık, yazılar koyu; durum renkleri açık zeminde okunsun
   diye bir ton koyulaşır. Ana düğme (yeşil / kırmızı) iki temada aynı. */
html:not([data-theme="light"]) .st.is-call .phone-screen { background: linear-gradient(180deg, #fbf4f8 0%, #f2eff5 100%); }
html:not([data-theme="light"]) .st.is-call .phone-status { background: transparent; color: #000; }
html:not([data-theme="light"]) .st.is-call .phone-home { background: rgba(0, 0, 0, .85); }
html:not([data-theme="light"]) .pc-call {
    --vc: #db2777; color: #17121f;
    background: radial-gradient(130% 55% at 50% 0%, color-mix(in srgb, var(--vc) 16%, transparent), transparent 72%);
}
html:not([data-theme="light"]) .pc-call[data-state="listening"] { --vc: #16a34a; }
html:not([data-theme="light"]) .pc-call-ava { color: #fff; box-shadow: 0 1em 2.4em -1em rgba(219, 39, 119, .55); }
html:not([data-theme="light"]) .pc-call-sub { color: rgba(23, 18, 31, .62); }
html:not([data-theme="light"]) .pc-call-state { background: #fff; color: rgba(23, 18, 31, .8); box-shadow: 0 .1em .4em -.1em rgba(23, 18, 31, .12), inset 0 0 0 .07em rgba(23, 18, 31, .06); }
html:not([data-theme="light"]) .pc-call-state i { background: #8b8b96; }
html:not([data-theme="light"]) .pc-call[data-state="listening"] .pc-call-state i { background: #16a34a; }
html:not([data-theme="light"]) .pc-call[data-state="speaking"] .pc-call-state i { background: #db2777; }
html:not([data-theme="light"]) .pc-call:is([data-state="connecting"], [data-state="initializing"], [data-state="thinking"]) .pc-call-state i { background: #d97706; }
html:not([data-theme="light"]) .pc-call-log { background: #fff; box-shadow: 0 .3em 1.2em -.4em rgba(23, 18, 31, .14), inset 0 0 0 .07em rgba(23, 18, 31, .07); }
html:not([data-theme="light"]) .pc-call-lt { color: rgba(23, 18, 31, .5); }
html:not([data-theme="light"]) .pc-call-line b { color: #db2777; }
html:not([data-theme="light"]) .pc-call-line.is-user b { color: rgba(23, 18, 31, .62); }
html:not([data-theme="light"]) .pc-call-line p { color: #17121f; }
html:not([data-theme="light"]) .pc-call-empty { color: rgba(23, 18, 31, .5); }
html:not([data-theme="light"]) .pc-call-type { background: #fff; box-shadow: 0 .3em 1.2em -.4em rgba(23, 18, 31, .14), inset 0 0 0 .1em rgba(23, 18, 31, .14); }
html:not([data-theme="light"]) .pc-call-type-r input { border-color: rgba(23, 18, 31, .22); background: #faf8fb; color: #17121f; }
html:not([data-theme="light"]) .pc-call-type-o button { background: rgba(23, 18, 31, .07); color: #17121f; }
html:not([data-theme="light"]) .pc-call-type-o button:hover { background: rgba(23, 18, 31, .13); }
html:not([data-theme="light"]) .pc-call-type small { color: rgba(23, 18, 31, .68); }
html:not([data-theme="light"]) .pc-call-type small.is-error { color: #be123c; }
html:not([data-theme="light"]) .pc-call-type :is(input, button):focus-visible { outline-color: #6444d6; }
html:not([data-theme="light"]) .pc-call-btn:not(.is-main) { background: rgba(23, 18, 31, .07); color: #17121f; }
html:not([data-theme="light"]) .pc-call-btn:not(.is-main):hover:not(:disabled) { background: rgba(23, 18, 31, .12); }
html:not([data-theme="light"]) .pc-call-btn[aria-pressed="true"]:not(.is-main) { background: #17121f; color: #fff; }
html:not([data-theme="light"]) .pc-call-btn:focus-visible { outline-color: #6444d6; }
@media (prefers-reduced-motion: no-preference) {
    html:not([data-theme="light"]) .pc-call[data-state="thinking"] .pc-call-wave i { background: #d97706; }
    html:not([data-theme="light"]) .pc-call.is-muted .pc-call-wave i { background: rgba(23, 18, 31, .3); }
}

/* Telefonun altındaki bilgi kutusu (durum, izin, hata) */
.vx-hint {
    position: relative; padding: 12px 14px 12px 42px; border: 1px solid var(--info-line); border-radius: var(--r-md);
    background: linear-gradient(var(--info-bg), var(--info-bg)), var(--card); color: var(--text-2); font-size: .84rem; line-height: 1.55;
}
.vx-hint::before {
    content: ""; position: absolute; left: 14px; top: 14px; width: 17px; height: 17px; background: var(--info-ic);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vx-hint[hidden] { display: none; }
.vx-hint.is-error { border-color: color-mix(in srgb, var(--warn) 34%, transparent); background: linear-gradient(var(--warn-soft), var(--warn-soft)), var(--card); }
.vx-hint.is-error::before { background: var(--warn); }

/* Convotify Voice sekmesi (sol): giriş notu, durum satırları, adımlar */
.st-lead-note {
    display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--c-pink) 24%, var(--line)); border-radius: var(--r-md);
    background: linear-gradient(color-mix(in srgb, var(--c-pink) 7%, transparent), color-mix(in srgb, var(--c-pink) 7%, transparent)), var(--card);
    font-size: .86rem; line-height: 1.6; color: var(--text-2);
}
.st-lead-note > .ic { flex: none; width: 17px; height: 17px; margin-top: 3px; color: var(--c-pink); }
.st-lead-note b { color: var(--text); }
.st-status-row .tile { width: 36px; height: 36px; flex: none; }
.st-status-row .tile .ic { width: 17px; height: 17px; }
.st-row-acts { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.st-steps { list-style: none; counter-reset: st; margin: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.st-steps li { counter-increment: st; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; font-size: .88rem; line-height: 1.5; }
.st-steps li::before {
    content: counter(st); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: color-mix(in srgb, var(--c-pink) 16%, transparent); color: var(--c-pink); font-size: .8rem; font-weight: 700;
}
.st-steps b { font-weight: 600; }
.st-steps span { color: var(--text-2); }
.st-kv-row .link-btn { font-weight: 500; }
/* Başka bölüme giden satır (demo panel: "Hizmetler ve fiyatlar" →) */
.st-link-row { width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: var(--cv-cur-hand, pointer); border-radius: var(--r-lg); transition: background .2s ease; }
.st-link-row:hover { background: var(--hover); }
.st-link-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.st-link-row .tile { width: 36px; height: 36px; flex: none; }
.st-link-row .tile .ic { width: 17px; height: 17px; }
.st-link-go { flex: none; width: 18px; height: 18px; color: var(--text-3); }
@container studio (max-width: 620px) {
    .st-status-row { flex-wrap: wrap; }
    .st-status-row .st-row-text { flex: 1 1 calc(100% - 52px); }
    .st-status-row .st-row-acts { width: 100%; justify-content: flex-start; padding-left: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .pc-msg, .pc-typing, .pc-call-line { animation: none; }
}

/* --- AI Studio · Convotify Voice: ses kartları, konuşma hızı (convotify.com demo paneli .dp-vcard / .dp-range) --- */
.st-vcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container studio (max-width: 560px) { .st-vcards { grid-template-columns: minmax(0, 1fr); } }
.st-vcard {
    position: relative; display: flex; align-items: center; gap: 8px; min-width: 0;
    padding: 10px 10px 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
    background: var(--card); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
@media (hover: hover) { .st-vcard:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line-2)); } }
.st-vcard:has([role="radio"][aria-checked="true"]) {
    border-color: color-mix(in srgb, var(--c) 65%, transparent);
    background: color-mix(in srgb, var(--c) 9%, var(--card));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}
.st-vcard:has([role="radio"]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-vcard-pick {
    display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 0;
    border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: var(--cv-cur-hand, pointer);
}
.st-vcard-pick::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.st-vcard-pick:focus-visible { outline: none; }
.st-vcard-pick[disabled] { cursor: var(--cv-cur, default); }
.st-vcard-ava {
    display: flex; flex: none; align-items: center; justify-content: center; gap: 2px; width: 38px; height: 38px;
    border-radius: var(--r-full); background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}
.st-vcard-ava i { width: 3px; height: 34%; border-radius: 2px; background: currentColor; }
.st-vcard-ava i:nth-child(2) { height: 62%; }
.st-vcard-ava i:nth-child(3) { height: 88%; }
.st-vcard-ava i:nth-child(4) { height: 56%; }
.st-vcard-ava i:nth-child(5) { height: 30%; }
.st-vcard-t { min-width: 0; }
.st-vcard-t b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.st-vcard-t small { display: block; font-size: .76rem; line-height: 1.35; color: var(--text-2); }
.st-range { display: flex; align-items: center; gap: 12px; }
.st-range input[type="range"] { flex: 1; min-width: 0; height: 24px; margin: 0; accent-color: #9a63c2; cursor: var(--cv-cur-hand, pointer); }
html[data-theme="light"] .st-range input[type="range"] { accent-color: #714e94; }
.st-range-end { flex: none; font-size: .78rem; color: var(--text-3); }
.st-range-v {
    flex: none; min-width: 3.6em; padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--r-full);
    background: var(--hover); color: var(--text); font-size: .8rem; font-weight: 600; text-align: center;
}
.st-muted { margin: 0; font-size: .82rem; color: var(--text-2); }
.st-vlang { margin-bottom: 10px; }
.voice-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 0; border: 0; }
.voice-langs legend { width: 100%; margin-bottom: 4px; font-weight: 500; }
.voice-langs label, .voice-langs-row label { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; white-space: nowrap; }
.voice-langs-row { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 12em; }

/* ================================================================ Demo paneli birebir */
/* convotify.com/demo-panel (convotify-website ai/assets/demo/demo.css) ile aynı ölçüler. Sol menü, sayfa
   başlığı, düğmeler ve alanlar demo paneldeki değerlerle yazıldı; içerik 1100 px genişlikte ortalanır,
   yalnız Müşteri Sohbetleri 1600 px'e kadar genişler. */

/* Sol menü: üst satır (marka + zil), işletme kutusu, menü, alt kısım */
.sidebar { padding: 18px 14px 14px; }
.sb-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 0; margin: 0 0 14px; padding: 0; }
.sb-brand .brand { min-width: 0; gap: .6em; padding: 7px 8px; border-radius: var(--r-md); font-size: 17px; line-height: 1.5; transition: opacity .2s ease; }
.sb-brand .brand:hover { opacity: .82; text-decoration: none; }
.sb-brand .brand .brand-mark { height: 1.3em; }
.sb-brand .nb-btn { width: 36px; height: 36px; border-color: transparent; background: transparent; color: var(--text-2); }
.sb-brand .nb-btn:hover, .sb-brand .nb-btn[aria-expanded="true"] { border-color: transparent; background: var(--hover); color: var(--text); }
.sb-brand .nb-btn .ic { width: 19px; height: 19px; }
.sb-brand .nb-count { top: 0; inset-inline-end: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--accent); font-size: .66rem; line-height: 18px; }
.sb-context { gap: 11px; margin: 0 0 16px; padding: 10px 11px; border-radius: var(--r-md); }
.sb-context b { font-size: .9rem; }
.sb-context small { font-size: .75rem; }
.sb-context .avatar-tile { width: 38px; height: 38px; font-size: .82rem; }
.sb-nav .tab, .sb-nav .nav-btn { min-height: 44px; padding: 6px 10px 6px 8px; font-size: .92rem; line-height: 1.5; }
.sb-count { min-width: 22px; padding: 1px 6px; border-radius: var(--r-full); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; }
.sb-foot { gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.sb-foot::before { display: none; }
.sb-user { gap: 10px; margin: 0; padding: 4px 6px; }
.sb-user .avatar-tile { width: 30px; height: 30px; font-size: .72rem; }
.sb-actions { gap: 8px; margin: 0; }
.sb-actions .icon-btn { width: 36px; height: 36px; flex: none; }
.sb-actions .btn { flex: 1; min-height: 36px; }
.sb-legal { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 2px 6px 0; font-size: .74rem; line-height: 1.6; }
.sb-legal a { color: var(--text-3) !important; text-decoration: none; }
.sb-legal a:hover { color: var(--text) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .sb-brand .brand { font-size: 15.5px; }
}

/* İçerik: 1100 px ortalı (Müşteri Sohbetleri 1600 px) */
@media (min-width: 1024px) { .page { padding: 20px 32px 40px; } }
body.app-tenant .page { max-width: none; }
body.app-tenant .tab-panel { max-width: 1100px; margin-inline: auto; }
body.app-tenant #tab-conversations { max-width: 1600px; }
@media (min-width: 1024px) and (max-width: 1279.98px) { .page { padding-inline: 24px; } }
/* Tablet ve telefon: demo paneldeki kenar boşlukları (alt menünün yüksekliği .app-main'de) */
@media (max-width: 1023.98px) { body.app-tenant .page { padding: 16px 20px 28px; } }
@media (max-width: 760px) { body.app-tenant .page { padding: 12px 16px 24px; } }

/* Sayfa başlığı */
.page-head, .header-row { align-items: center; margin-bottom: 20px; }
.head-title { align-items: flex-start; }
.page-head h1, .header-row h1 { font-size: 1.55rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.page-head .lead, .header-row .lead { margin-top: 5px; font-size: .92rem; line-height: 1.5; }
@media (max-width: 760px) {
    .page-head, .header-row { margin-bottom: 16px; }
    .page-head h1, .header-row h1 { font-size: 1.3rem; }
    .page-head .lead, .header-row .lead { font-size: .86rem; }
    /* İşletme paneli: açıklama demo paneldeki gibi başlığın altında, simgenin yanında */
    body.app-tenant .page-head { align-items: start; row-gap: 3px; }
    body.app-tenant .page-head > .head-title > .tile { grid-row: 1 / span 2; align-self: start; }
    body.app-tenant .page-head h1 { align-self: center; min-height: 38px; display: flex; align-items: center; }
    body.app-tenant .page-head .lead { grid-column: 2 / -1; margin: 0; }
    body.app-tenant .page-head > .head-actions { align-self: center; }
}
/* Telefonda / tablette üst çubukta bölüm adı ve işletme adı hep görünür (demo panel) */
@media (max-width: 1023.98px) {
    body.app-tenant .topbar-title, html.head-visible body.app-tenant .topbar-title { opacity: 1; transform: none; pointer-events: auto; }
}
.page-head .lead, .header-row .lead { text-wrap: pretty; }

/* İstatistik kartları: renkli kenar yalnız Genel Bakış'ta (demo .dp-kpi); Takvim, Satış ve diğerleri sade (.dp-stat) */
body.app-tenant .stat:not(.ov-kpi) { padding: 16px 18px; border-color: var(--line); border-radius: var(--r-lg); background: var(--card); }
html[data-theme="light"] body.app-tenant .stat:not(.ov-kpi) { border-color: var(--line); background: var(--card); }
body.app-tenant .stat:not(.ov-kpi)::before, body.app-tenant .stat:not(.ov-kpi)::after { display: none; }
body.app-tenant .stat:not(.ov-kpi) .stat-top { gap: 10px; }
body.app-tenant .stat:not(.ov-kpi) .stat-top .tile { width: 28px; height: 28px; }
body.app-tenant .stat:not(.ov-kpi) .stat-top .tile .ic { width: 15px; height: 15px; }
body.app-tenant .stat:not(.ov-kpi) .label { font-size: .84rem; font-weight: 400; }
body.app-tenant .stat:not(.ov-kpi) .stat-top + .value { margin-top: 6px; }
body.app-tenant .stat:not(.ov-kpi) .value { font-size: 1.6rem; letter-spacing: -.02em; }
body.app-tenant .stat:not(.ov-kpi) .value.small, body.app-tenant .stat:not(.ov-kpi) .value[style*="font-size"] { font-size: 1.35rem !important; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
body.app-tenant .stat:not(.ov-kpi) .detail { margin-top: 6px; font-size: .78rem; }
@media (max-width: 760px) {
    body.app-tenant .stats { gap: 10px; }
    body.app-tenant .stat:not(.ov-kpi) { padding: 13px 14px; }
    body.app-tenant .stat:not(.ov-kpi) .value { font-size: 1.35rem; }
    body.app-tenant .stat:not(.ov-kpi) .value.small, body.app-tenant .stat:not(.ov-kpi) .value[style*="font-size"] { font-size: 1.05rem !important; line-height: 1.5; }
    /* Genel Bakış: dönem seçici tam genişlikte, eşit parçalar (demo) */
    .ov-bar .seg { display: flex; flex: 1 1 100%; }
    .ov-bar .seg [role="tab"] { flex: 1 1 0; justify-content: center; min-width: 0; padding-inline: 8px; }
    .ov-kpi { padding: 14px 14px 13px; }
    .ov-kpi .stat-top { gap: 8px; }
    .ov-kpi .stat-top .label { font-size: .8rem; }
    .ov-kpi .value { font-size: 1.55rem; }
}

/* Kapora / durum etiketi (demo .dp-dep): simgeli, yumuşak köşeli */
.ov-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px; border-radius: var(--r-md); font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.ov-pill .ic { flex: none; width: 15px; height: 15px; }
.ov-pill.is-plain { color: var(--text-2); }

/* AI Studio: başlık ve Kaydet ayar sütununda, telefon sağda en üstten (demo panel) */
.st-main > .page-head { order: 0; margin-bottom: 0; }
@container studio (min-width: 900px) {
    .st { grid-template-columns: minmax(0, 1fr) 362px; }
    .st-savebar { margin-right: 394px; }
}

/* ================================================================ Bildirimler (toast) */
/* Demo paneldeki gibi: sağ alt köşede, kenardan kayarak gelir; iOS bildirimleri gibi üst üste yığılır
   (en yenisi önde), üstüne gelince açılır; dokununca ya da yana kaydırınca kapanır. Ölçüler demo.css 35. bölüm. */
.toast-stack {
    --s: -1;
    --x-dir: 1;
    --peek: 15px;
    position: fixed;
    z-index: 3000;
    top: auto;
    bottom: 20px;
    inset-inline-start: auto;
    inset-inline-end: 20px;
    display: block;
    width: min(384px, calc(100vw - 32px));
    height: var(--front-h, 0px);
    pointer-events: none;
}
[dir="rtl"] .toast-stack { --x-dir: -1; }
/* Açık yığın, kartlar ve aralarındaki boşluklarla tek bir üzerine gelme alanı */
.toast-stack.is-open { height: var(--open-h, 0px); pointer-events: auto; }
.toast {
    position: absolute;
    inset-inline: 0;
    top: auto;
    bottom: 0;
    display: block;
    width: auto;
    height: var(--h, auto);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: rgba(32, 32, 38, .9);
    -webkit-backdrop-filter: saturate(170%) blur(20px);
    backdrop-filter: saturate(170%) blur(20px);
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), 0 3px 10px rgba(0, 0, 0, .35);
    color: var(--text);
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.42;
    white-space: normal;
    pointer-events: auto;
    cursor: var(--cv-cur-hand, pointer);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    transform-origin: 50% 100%;
    transform: translateX(var(--dx, 0px)) translateY(calc(var(--s) * var(--i, 0) * var(--peek))) scale(calc(1 - var(--i, 0) * .045));
    transition: transform .55s cubic-bezier(.2, 1, .3, 1), height .55s cubic-bezier(.2, 1, .3, 1), opacity .35s ease;
}
html[data-theme="light"] .toast {
    border-color: rgba(20, 20, 30, .09);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 46px -18px rgba(40, 30, 80, .42), 0 2px 8px rgba(20, 20, 40, .1);
}
.toast.is-drag { transition: opacity .35s ease; }
.toast-stack:not(.is-open) .toast.is-back { height: var(--front-h, auto); }
.toast-stack.is-open .toast { transform: translateX(var(--dx, 0px)) translateY(calc(var(--s) * var(--open, 0px))); }
/* Yeni kart ekran dışından tam opak kayarak gelir: öndeki kartın yazısı altından görünmez */
.toast-stack .toast.is-new { transform: translateX(calc(var(--x-dir) * (100% + 40px))); transition: none; }
/* Kapanan kart, öne gelen kartın üstünden opak kayar; ekran kenarına varınca söner */
.toast.out, .toast-stack.is-open .toast.out {
    opacity: 0;
    transform: translateX(calc(var(--x-dir) * (100% + 40px))) translateY(calc(var(--s) * var(--i, 0) * var(--peek))) scale(calc(1 - var(--i, 0) * .045));
    pointer-events: none;
    transition: transform .55s cubic-bezier(.2, 1, .3, 1), height .55s cubic-bezier(.2, 1, .3, 1), opacity .2s ease .18s;
}
.toast-stack.is-open .toast.out { transform: translateX(calc(var(--x-dir) * (100% + 40px))) translateY(calc(var(--s) * var(--open, 0px))); }
.toast.is-gone { opacity: 0; pointer-events: none; }
.toast-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 12px;
    row-gap: 9px;
    padding: 13px 15px 13px 13px;
    transition: opacity .18s ease;
}
.toast-stack:not(.is-open) .toast.is-back .toast-in { opacity: 0; }
.toast-ic {
    --tc: var(--info-ic);
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--tc) 20%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 30%, transparent);
    color: var(--tc);
}
.toast-success .toast-ic, .toast-ok .toast-ic { --tc: var(--ok); }
.toast-error .toast-ic { --tc: var(--bad); }
.toast-warn .toast-ic { --tc: var(--warn); }
.toast-ic .ic { width: 19px; height: 19px; margin: 0; }
.toast-body { grid-column: 2; grid-row: 1; min-width: 0; padding-top: 1px; color: var(--text-2); overflow-wrap: break-word; text-wrap: pretty; }
.toast-body b { color: var(--text); font-weight: 650; }
.toast-time { grid-column: 3; grid-row: 1; padding-top: 2px; color: var(--text-3); font-size: .75rem; line-height: 1.3; white-space: nowrap; }
/* kapat düğmesi ve süre çizgisi yalnız yeni panelde (panel-v2.css) */
.toast-x, .toast-bar { display: none; }
.toast:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
@media (max-width: 1023.98px) {
    .toast-stack { bottom: calc(var(--bottom-h) + 12px); inset-inline-end: 12px; width: min(420px, calc(100vw - 24px)); }
    /* Menü açıkken bildirim üstte, menünün üstünde durur */
    html.sb-open .toast-stack { --s: 1; top: calc(var(--top-h) + 10px); bottom: auto; }
    html.sb-open .toast { top: 0; bottom: auto; transform-origin: 50% 0; }
}
@media (max-width: 760px) {
    .toast-stack { inset-inline: 12px; width: auto; }
    /* Pencere ya da konuşma açıkken bildirim üstte (yazma alanının ve düğmelerin üstüne binmez) */
    html.has-modal .toast-stack, html.mi-open .toast-stack { --s: 1; top: calc(env(safe-area-inset-top, 0px) + 8px); bottom: auto; }
    html.mi-open .toast-stack { top: calc(env(safe-area-inset-top, 0px) + 66px); }
    html.has-modal .toast, html.mi-open .toast { top: 0; bottom: auto; transform-origin: 50% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .toast-stack, .toast, .toast-in { transition-duration: .01ms !important; }
}

/* Metin içindeki "Convotify®" adı: önünde küçük işaret (sitedeki .cv-name) */
.cv-name { white-space: nowrap; text-transform: none; }
.cv-name::before {
    content: ""; display: inline-block; width: 1.08em; height: 1.08em; margin-inline-end: .2em; vertical-align: -.2em;
    background: url("/assets/img/convotify-dark.webp?v=20261031") center / contain no-repeat;
}
html[data-theme="light"] .cv-name::before { background-image: url("/assets/img/convotify-light.webp?v=20261031"); }
.cv-name-r { position: relative; top: -.62em; margin-inline-start: .06em; font-size: .5em; font-weight: 500; font-style: normal; line-height: 0; letter-spacing: 0; }

/* AI Studio sekmeleri: demo paneldeki gibi simgesiz yazı (Convotify Voice'ta marka işareti) */
.st-tabs [role="tab"] > .ic { display: none; }

/* ================================================================ İmleç (convotify.com ve demo panelle aynı) */
/* Ok ve el imleci görselleri; yalnız işletme paneli ve işletme girişi (body.cv-cursor). Diğer sayfalarda
   var(--cv-cur-hand, pointer) gibi kullanımlar tarayıcının kendi imlecine düşer. İmlecin sağ altındaki
   ad kartı (.cv-guest) cursor.js'te: girişte "Misafir", panelde giriş yapan kişinin adı. */
body.cv-cursor {
    --cv-arrow: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAEF0lEQVR42t2WXWxURRiGnz0/2y1LWWvZ7paGXxGMSY0iQmPAol4YDCTGC6PEe6smBG9M9MKkIcGkiRJvjIpwI4WK1SDZBqkoRW/AlZJGSxqgNW0pZLfdlt0euufsOWfGi06btS5WcfHCSSbnd/LM+33vfDPwH7dA0TUAaOpZqi7uFlhLJBLVQohhKWXOtu33BgYGVgCmmkSg3ECztbU1LqUsOJ8ek27yVymFcB3HOZRKpR4CguUGB4G4ZVldTuKsnHjhLTmx5wM5/V2PFK7nu67bmU6nn1D/6f8G/IecDQ0NJcytj+IRpHA9y8RH33Dj9U80K3Hx2ZrFkbOu6/5gWdZLQMWdgmeBAig0Nzd3i3Aoa2x4AE8a+Jg4kw7jR85z9ZXDZI70bA4WAp/5vt87NTXVfPDgwcWA8U/AgSJwJVA7Nja2L3x1/MWx/Z14Ukdg4mGoq44IVBDZuoa65x+koi6cchznw97e3o8bGxszauLi7yp0gXwymfwy9Ng6xKIwPkE8THwF9Qni+jqp7lEu7DlD37sXYvZgvmXTpk1Xbdvef/ny5VULObv4pQ4sBpbZtn0ie/j82syp/jllPia+MPA1E0/oSEx8dIRmEF4TYdVzK4ltrnELbqEjm8221tbW9gGe8kdJYAAIAdHh4eE9S53QGwNvJ/CZyaUnDASGCq+Bj47UDHyhIzQdXxhU1oVZvTPOiidrsPJTL0cikWPzoVoRUKqP+UQi8XXl2qinRatnwjqrDBMxp2xGqdAMfGEQioVZ+kg1i+IhZAAvn897pZwcKJHTMBDP5XKHbp2+tmW47ZJSOdOFCqNAp2p9NdEN91K7sZpwfUU+l8tdTKVSP3Z1dZ3cvXv3FWAScIqNZMwDSmWe6ZGRkeNrm1Zv+e3olRklmPhoSM1k0aolbHynASpkOpPJ/PTL4MVz+17d93NnZ6cF3AKyQB7w5+ewFNAD8nv37v2+ra0tV9UQX5LpvTlnEIHO8u31TE5PnIxVxd5XgGnAVhBbdaeUabQSzhWA097enp2cnDwd3bZ8DuYLnUCogmVboiSTyc+BG8A14Lq6HwduqkkUSq3J2wFdYLqvr++raGOMQGUIXxgIzaD+6TgF3+nfsWNHDzAGZIogthr7p1D+FRA1wG5qaurxpDcSfTw2oxCDlc/UMjo6+oXKkzUPIm4HWggoVA6m0+n08WXbYvjo1DRUE4oaUy0tLSdU3txybtImED1w4MBTUkrx7WuX5Oj5rEyn00eB+1RV0sp6CgCqgHWWZZ0bPJWRQkjZ0dGxE4irvbHs550QUN/f3/+mlFLmcrluYD0QUVWk7M0A7gHub29v375r166HgTo1kcCdqlgorEFV7kJqId8qqiJlB85CDRXC2UrkL2T/cuTzrhwX/3/td/dc8xvT64RZAAAAAElFTkSuQmCC");;
    --cv-arrow-2x: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAKD0lEQVR42u2abWxb1R3Gf/dcO3Ycx06cOGlD+pYmUOhoUd9WUURpy9iAAd2Y+DCpUAWJDlWaBhJfJviyiQkxqUNMWlfBRENT0GBFpS8Byko7Std2A9qMlJRC27VJ0yZpUtuJk9jX95598L3O9Y1T3Cb0ZeqRrs59se89z3me//P/n2vD9XZtN+UC53Jdk47+qm8iBzjFPK+eO3duYiQSmQa4ANXchLkp1yKbAnCtXLnSq2nar6WUSSmlNAzjo1gs9iDgAzyA2wZWuZbYdAHeI0eO3CRzNMMwWuLx+BNAEeC9FoAKR7wJQD1+/HjK+oD26lvon7aAlCiKMtPn860zDOPIwMDA6qamphIHyKsWqGIO0gMEgYmapjVLKWVy2y7Z98jTsv+pF2Vi5wEptZSd1N6hoaHft7S0TAYKgQJTBcIWz1eFi1rx5zYH6u/q6noiHA4/K2P99K/6LYYBBiqUBPDetwjvPQtQCj3WfRKapr3Z2dm5ZtKkSd8AOmCYbmvfrh4XbWhoaAJSSsCPmD0DAxUDFT0yQN/GnXQ/+RKx1z9EP98P4HG73Surq6sPaZr2166urgUmm1fcee0PVG0MFgPBvr6+P/r9/sXJfV/Q99JbSBQMBBIVQwqkIjCEi8I7ZhL4yULcVaHMzXRd3x+Px18OBoPv2hg1LjejwpHEpTkIHdBPnjzZBFCw4BYo9KJLOzg1fWwo9P2jldNPvc6Z373L4OHT6dlS1YWBQOANwzA+i8fj9a+99lrRlTAkxQHWMpoi02yCuq5/JITw972yjfjfD2bAGVJJg0UgEVm9Z/oESh+8jcDCaaCkHyGlPJNIJNZ+/vnn6xYtWhTLEaffSYWk5HDSAptMS3p6ep4LhUI/1Y620/1swzA4xWQSFQMlZ+8KByl76FZCS2pR3Kr1nFgikVjf1tb2cl1dXYcDqDHeQJ0SteSZAjQg2dLSsh3AfWM1orJsGFQG3HBv2HodwVD3AO2v/puWX2zmzNst6PEkQMDj8fyytra2NZlMvtLe3n6zTbrjLl8lB2CLxSIgAJQkEol3CgoKJsU2/ZPIW/sy8tQZlilZx2ZvKEihYhgCKVRwuyhfNp2qh+ooKCvMTKyu6x9Eo9GXysrK9oy3IYkcqwXr5prFYnd3dxNA0ZJZWUzZGdQZyagdnGEIUgk403SCT5/cyVd/OEj8VB+Aoqrqj0Kh0PupVGp3NBr92YoVKwpsBf6YGM0FUFouCiSB5KZNmzYDUg358dw8eRSQYgRoC5xugbQmw1Do2nuWT5/eS/NvPqO3ucdy3vmBQKCxoaGheWBgYNXGjRv9Y3VeZRTQlkx9pkyD8Xh8nc/nmxfb1Urn2l1ZoAxUM0eqIxzVMJxGJJAoSPMz1n7R1ABTlk+m8vYwisg4b3cikfjz4cOH186bN+/8KBXSJS14rbLNayX9o0ePPlJXV/ecMaTxzePrMTQcMShMpoRNlvYYFOljczKsY8zPYR57K3xMvr+KSXdXonoyAotrmvb6qVOn1tTW1raNkmLykmiuhK8ByRdeeGGHlHJQeN34v1/riDmRPnbEXEamtt5ibPi8YpsUQbwrSWvDKXauOsRXb54m2ZcCKHK73U9Onz79P729vXdfTEGvfMvqwsqJASAYiUSeDwaD9/U3n+a/z384ils6GMzIU2AwkjHpOM46j4Jwu6heHKLuoQqKKguQUvYIIaaZ/pCyMZk3g06zSZk3077++usmAP+sGxDFhSPc0jDBGaSNxXAYENZkMDwJ0gJlyda6Hwqqx0V4doDS2iJchcKKy+jFLLRdF7g2Qqbz588/oGlap8vlqixdciNnNrfaGHAwiWqWJRZzeTBmKBSGvYTnlFA5N0h4VjHCNTx+KeXQ+fPnX3FIlLEAHMFib2/vBxUVFY+WLplOx5aj2bK0xdawU5p95rrFmECK9LVAbTEV80qpnFdCYKovaxCGYfRHo9FP2tvbd8+aNesDoO9iFtP5Mpgp3fbs2bPl4YcfftR7QwDvtDLiJ2JZDFgxhwVuBGMqikel4tYQ5XNLqZwfoiCQPYxUKnWup6fnwJdffrl36dKlB4EEMGCOQ/+2uMvHZC6UE0sGBwcbvF7vzM73jnHiL19k4swyEmk7ljaD8U3yc+OKGsJzSkc8KJFItHd3d+8/dOjQvgceeOAr+6SaAIdMkAPmfsK8rtuK9IticFQWOzo6ttfU1Mwsu3MyJ9a3YuiYMcgwg1kxlpbxlB9XZ4EbHBz85uzZs/t37979SX19fZvtGSl7qWgDaQHNy0Ev5KK5cqIVh8nGxsYdAK4iN8E5EzKxZZdnVkwKgep1U3VnGICzZ8++t2bNmsd9Pt+vampqNtTX1x8FYkDU3CK2LWpe6zfZS5rA80r0Sp4ytsu0GCiJxWJriouL7+r5VyctLx7MirHh5D3M5OR7b+CWx6cipUw89thjP9+wYUOfyUjStmkOBlO2uLNveZdrIg+ATjfVgOSJEyeaAEJzK3D5PdmVyQi3VJl6/wQAenp6PtqwYcN50w2jDqai5vk+IG6LtyHbBORdpuULEIdMNUBbtWrVx7quRxVVIXzHRDNJK5meTD4UlNwUwDfBC8DevXvfNgffZ0ovZu7320AN2kAlHe6ZN7iLBZiVE/fv35+IRCI7ACbcVYU0xHDsmZWIlR8n31MJwNDQUMvy5cuPmED6c4BK2Jhygso7NYyFQbtME83NzVsBArUBvJU+U442wzEE7uICqm5Pv048efLkZhOInSUnqNRYQV0KQDvQjEyXLVvWmkwm2wCq7k7LVCLS8jQZrF4aRlEVDMOIzZgxY7sNVMJmKpckv/EGOKI2BZKdnZ1bAKoWVw4X1pl1n2DavenUcO7cua02YHbG5HgwNV4AR4DcunXrNgBPqICy75WazKVr0fJbgxSWFwCwY8eOvznA6ZfjDbe4hO8YtlhJrl69uisejx9Is1ielSqm3FMOQH9//74VK1a0OZgzrkaAdhYzpVRbW1sTQNXtIYTHhRQCd6CAiQuCABw/fvwdRzLXv0tZjgdA3S7TZ5555kMp5aBwCyYuLEUimPqDchQFUqlU1+zZsz+2yfOysXepErWD1ABt27Ztg5FIZCdA9eIQUlGZ9sN0aujs7Lxi7I0FoOFYCCdbW1u3AIRn+pmyLIS3JL1QaWxs3JwjJVyxH0QvZmLcgB+oAGqBuZqmnbb/vh2JRN4H5gDTgbD5c4D7Eif2sjGYqzZNAoljx479yf6qYfv27WtHWZxeE38kEuYSqhiYYLJ4265du1Z2dHSsW79+/YPALKDGZNl/udnLdz14IYAWSI+5Viwy94XJ1pBZTFt1p3a5GVTHaYKUHLVqwrFCSF0JebrG8F1nurCqHJcJ2HC8W7kiseca4/etAes2gJoNoGErCq5IalDG6R72fyla5+Qo2zUHMFcs5pLy9Xa9XW/X2/9f+x/Gn+3FLcx4nQAAAABJRU5ErkJggg==");;
    --cv-hand: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAFHUlEQVR42t2WXWxURRzFf3dmbrvL0vJZoDVUWqItQcCkMRBIiGIUXkj0gfpi0EfARk2MEqMS8IWEyBMxMSYmFgU1REETkQTFRoMY4EHQLpRCsQRa2i32g+5u78fM+HDvLmtTKBB9cZObe/feyZz/Oed/Zgb+7z/nLr47JeNsyfWfFONmMpkm3/dbwzA84nne9q6urrmAvIti7x3s2rVrq2wYevrMORscPW7NzazVWp8BpgDi3wQUwFTf938MDh212eZX7Ujza3Zky05rrbXpdHoFUHa/E9/ufUJK2Rj+1kGIi8bFH8iiewZIpVIPA+p+ZL0TYBnghvkQjUKjMCjMWIAxZkr8/Z69FHfwUFprrXFUDOgS2mj+mpqaLb7vf5nP599Jp9PzYnB1NwWIySJTBEOhHRdrQXdcX5L/6cIaN3S2LVq0qMfzvE+CIDicz+e3TVbA7aopB+aGYXh66O2Pq8Yu9VFgmlqzjKEfzmFRiKrpLNzzHNk/ruNlskxbXotMub1BEPwshJhhjPmlp6fng7q6ugxgAKsmi4e2Eo2LsZKyxQsoq5uL4SIaiRnw6G09Td93nWgjcb+6yNI9a6tz50eax/rzzF4x76na2tpngJXAGGDFZCuQ4ZaHRrpYISN5cUksqqasZgahURjhks14XG5Nc/bdU3R8eI5TW08ihFiWTqeXxhKjJvBUdHZ2LhwcHJwfeRgx1EhcobBWROBIrFuOFQKDizaSikfmkKipiLrZCLJ9AdmePKlU6iHgLBCUAooNGzaU79u3b7frupuLDG3EyKIwVmIdgTYSIxTGCiyCMI4MygUh0UiskBgj0GMGI8yUQgOpEgnLWltbtzmDuc29e44QjAbMaXka7aiIAZLc1VECcxUtIkZjgyE3u0cjRki0EVhLkaEVEhwHY4wo2FQAlIcOHapKJpOv9+46TLajH4NL9/ZvoTxRZOBnfLI3bqCNwgrFSHeO4e6rkbxCMdg5ymhf8A+GjnIIcoFfUKwAKIQQlYD0h/2iZ8YD7QWY2DMtJMYU2EgMEoPAIjEmGu/1hVih0EQMUzUJ2r9u7xzfjQmgKpfLfRP+3vfolfe+x6IiUFTRM21E8W5REZiIpRRREQVmRkgqFqRYvXPhkFLqMaAXyIli90Owd+/eN8qWVXfXvPREsfXDOBahif5ro+KoFIoYd4/fGySVC6bieV4HEAC6NIcayG3atKlr9+7dm5PLH7j84CurY2ndooe3JlMTgLmRAvE4MaWchmdn2/b29o8ALyaFLImFBeyxY8c813V/fXzD2uUV9VUz+0/0Y6yK/YqjIVTkWczEONHdOlEkcBSr3qrFTw1/3tDQ8CkwVFhpxgNqIGxraxsLw/DEk81rm2Ytra7KnBxAa4EugkVeGiOxTsTQOlFByaokK7fOJ/Ug7Rs3bnzzwoULGeAmEE60eAvABaYCM5uamuYeOHDgxerK6hcuffan6j1+g1A7WETMOOpSg0QmXOavnsGS56ts/1/Xv2hpaXn/4MGDV4EbQC4mM+FuIeK4pIDpwKz9+/cvXr9+/csJN7F4qCNbnu31GBvWWBzcqS6zGlNMr0vg+d61tra2nevWrTsJDACDQDZmZ++0PYnY3yRQAUwDKuvr61O7du2qb2xsbKysrKwRQuB5Xn5gYODK+fPnL+/YseNSV1fXcAw0AuRLwSY7lzolR41kfFJLxnulW7K5mlguLwYYjSX0C1G4l4NwKVs17hoPGMZ5C+JnM9FkfwPZQ5+SLSDl4wAAAABJRU5ErkJggg==");;
    --cv-hand-2x: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAMNUlEQVR42u2ae4wd5XnGf983c257dtfrS/BlY7oQr8iuzTYkRAulVLQQoJfcSklakf5RVf2nStVUDZFMUbiUSpXATStUSBQV0RYpkqOmCEqESImF5CSOlboVi9eJ14Y1xtTeXezjPXsuc2bm+/rHfDPzzZzjZb1rLpUYaTRnd67PPO/7vM/7fQMfLB8sHyzv5SLe4evo/+8AhbXmr6ctgPq9AivXAEya1QGcU6dObWs2m3f4vv/VRqNx+6FDhzYArnWcvIQR846zLs3DF59//vkNQRA8pbsX3/O8e4A+oGhexPsepA2ufPDgwe1KqSMxIjW3oMOjr2l17nyCMgiC54AqUHovQIpVhHQMsOD7/l7XdW9XL/+c4NvfIZw7h8ZBA3LHCKU//QPk8GW02+0HKpXKI0AHCAH1buWkXIWgSMCt1Wpfcl33dl1bxH/k24RzNTQOCoHGwT92isaefwWlKJfL98zMzOwCChaD4v0oMsKEWaGvr+8uAPXT/yH0AjTSgHMJkWgkwakFguOnAApbt279ogHovJshKlcrLkKIAYDwzFnDnETjGpAy+Ts8cy46WYj1FsB3LQ/dVdQ7ByhorV0A7XVQJjVD8w6UOUwBuu1HhVDrirnfu8qguwaREdGDR+EYraLHb2KAsgeD4p0WG3eVIpOwoBEmHHPM4aB1BDIH0DWryrkc/X4QGfJvXic552RUVCFRwklvJOWG2dnZ286fP//nCwsLtxw4cGC9FbJ5t3PJVNZdJTiRMhiDkygNCAelBVrIaGues1qt3lStVm+KL7Rx48ag1WrdX6lU/r5HbdSXysuu1ouidXQ/LURaIoSD0jLd4qBFSkQwv0h75jRhrQnglsvlh3zf/y5QmZqa2l6v1z/ved7XGo3GbZaXXRPD7hrYF/E7CrUEw1i81YZJELRePsHCt16kM183OSoofWQLW758M8Xhod/UWp+1L1wsFrnmmmtotVr3rpVhuQaAGrDCMWIu1FHIKiMwQa3FmUeeozO/ZNVLSfP4Am/83X9mLtiZX6J5dAG/1gLAMLz3bRhetltx15zFBlyUe6TMiajYe8fnCNuhJUBxCXFonazRmpknbPm88c0DtOcaICVKSfpGNzHy5UnKw4O/5fv+S67rXp1n2PO8r5dKpT1AYFjuarTlWvFp0nDUFnNKS9Z9fpKhO6+jcu2VVimRGbVd+vkcsw+/RHuhiZaGYSmpH69xbM9PIxYMOG+uSf3oOTo1Lwb6YBAEe63y0+Vz3UsBMGLMAmfKpRzoAw1yXb/lVR1TAB2UkCxNzxF4hmElDIMCLSVLr9dZmjlH0Aw49s2Xac23wURA/44hPvpnV9M3XP3tVqv11UqlsqdXTb0EDEaMRLlnMyRBiOhOQnQxp5Bc9rkJtnzhYwx84vLo/yY8I7DRdvHIWY488l+05r0EnEayeKzOK3um4ly9f2Zm5upe3Yq8yPrXo1yIXPilILVRUR2HrwVOI3EGy2itcdf1JaCUNExLByUdatPnCFoqYharJElJ/fUmizOLAGzduvULvboVd2WlIGPTMmoV1cG8gMQgU5aVZens49ACLYRhzIQnEq0kH75jlE3XbUUjWfjZfHIeUkThjKR5us3g6KDdrfhGcDSg3RUCcywP6WTNtrCYSbuJ5GEQxq9a+5UA6Zjwja6hk9xzkod3B0toDe5QCS0l2uSmTnIVAk8t2624K2iN5NLS0u+Xy+U7pJQfB/o9z5tyXXdzCtDJdRKp0OicIdekYNLwlRaDMbvx/uiRdPx/C6SWIpETHeVDXkmFu1zHMDU1ddnY2Ng/OY7zKfugcrl8Q1ZkpKWSaZ2LfWgsREoBhiEtDcPClBrpEKr0pWQYNqUjOl9m1dZYQQPwbcuEzVxxbGzsCcdxbgGo7f0x9X3ThI0O5YlfYtMf34S7vhrlTw/mFILm8bcoj2ygeeJ8IgwxA0pJQk+BhrCjUEom4RzloHkULSIVVtb/pWFYZuSgp6NxLwCuUKvVvhiDW3j8Ber7ppOb1w++RuPIHMP3fjoRFDJ1LgL51v4TvLX/DUKLObvOnX7xJKGnEwFRZBkKPQ0CQk915V50vczAoF6J2U4AViqVOwEWv//f1PdNZ3MIiV/3eP2B5yhu35CEYzZMZUbS0xwyCqsErTNtTvzbceu60X6IGDv14v8SdDRzh85G50srB811ESsHmBlUKhQKnwRY/MGUVaRJugGQ+E0f/xfzVicvsp29IlVFaZWABDxp8c6oZMRQ44zHq987aZ0fMWwLjVuNmmrf9xeXA9g1qBTv6yw0lqlz2XEYlR+TsaRfK9GVo+lWJPvzKpmEJfZWJNcvDRWjTqTTWVhJu5Sw6Pv+awCVXx7JORAnMwaTDE9g2yxT95RMGEzsW65eRg9tjsu8lCissepiuk1tX2ko4qjVai306hPlhWrg2bNnfwCw6Q9vAKeYG+/sBdYCI43tsjylyuVocl7MrCn+SslMGCage2zdvgJ9l0UMHjt27Be9pgScCziWUqfTmb311lt/1x2o9JWu3MTiT04k3UJa10wnr8wwhfWQWpoOP2ZOxh2+UV0pEwejteiqbwlzwr5f/Hd0na2TQwxft44wDOdHR0f/AWgDnm3XZE6BtHkL4aOPPto8evToNwD6P34523ffBk4hDUdTfMN8GOa6AdueZRyOOV7HL0Pl7JrNWOJBs+q85dpBAOr1+o8MoK6JHZnrgpU5yAc64+PjL0xNTT0I6P6JbYzceyuiUMzaKumkIGPHYTkZbQmEjpnMh5s5PyMwxnCDY72cFFxpfYltn4wAnjlz5oDp6tVyAMkB9ID2xMTEC4cPH34Y0P07N/ORr9+CrJRyApImfqiyfZ9W3bmW5pzsKv6xLdNdOZcdXN71pc3IgiAIgrm77777h9awhbKFRvaYU48BtoEm0Ny1a9dzMcjqVZsYve/XkX0WSEsFs+po928pcwmTVlgiLcMdq3OubsYlaXCkwuU3rovF5R+fffbZtgEY5BkUF5h7KJgZ2T6gHxgA+g8fPvzp8fHxvwRozp7n8P0/wl8KcvVQWGuaO3H3kIarXfdyx1v1Me1Kov2FqsvNfztCdXOBdrs9XalU/gg4DywCSybyYqBdIRrnYWBmY1tAw5y4tHPnzv945ZVXHgZ038g6dv71jTj95a5OWxtGM+CkTNXUDtfE4Tg5cDJTNzUSWZL82v2XU91cQCnVePrppx80gLzc7PGyU9j2BIvNZDVmc3p6+jNjY2N/AdA+3eTlBw6aMZMsE5ET6eEh424+f/wyv0uDBW78q+0MXVEC4ODBg1+bnJx8yWKvkWNPLzdHvxzIAaB/enr6s2NjY18B8Os+U39ziPPHFnvUs8hb6tj9d3UFMtfpx02yY7aSdSNlfnX3h6msj1zL7Ozst6644op/McBicC3DorJZFCuY0XV65GQV6N+/f/8N119//b1SygrAG98/yfG9s/jN0AJh51yeyXRYQ+VyUCMoDLiM3/khdtw+lDzUkSNHvjE+Pv7vQN1aW4a9rjroXMQwfdeY4xNPPHF6dHT0J1ddddW1rusODo6uY/hTwwghaC108BsqBWkcT9ahpCqJlYOVDxXZ8TubuO4r29g0VgEgDMP6vn377pmcnPyh0YSGWdtW/nXNUYgVDhnmmawYFqtA9a677hp66KGH7ti+ffudjuNU4xO9mk/jzRbN0x7N+Q6N0x7tc4EZh8GUC0FxoEBxwKW8ocCWa/oZurJs3z+cn59//vHHH//n++6777Qleg1Txrz8SNpqZ5Ic88VSFVgPbAN2ABPA9cBv7N69+/fefPPN7wVBUNeXYKnVageeeuqpPwFuBn4F+BgwCgybZ4i/orrgRw3iIkFKy5AXgbJhs89sy4bh4jPPPPPRiYmJT2zcuHGX67pDruv2Syn74nzNUBSGS/HabDZPvvrqqwcee+yxnz355JP12FEZtlpm27YUc9kPi8QqmMx87WSBKlu/S1bT7Fhjlb1GyG2jH+bqcMcC2LaAdUxYqrf7aupiJ190j4nI+IF8c+OiWQu5wWJhGQtxAQGLOwL7enYh71j5tqKcW+1Ev7jAqHfBAlboMQV9oTkObbERWr4yBhnkgKmVCspavmTIf5AgcyFpr283t65z7Zqy8svOM3Wxn51cik81egG1GZO58OwVonmQKgfoooHFy/8Bz/qzg41MUjQAAAAASUVORK5CYII=");
    --cv-cur: var(--cv-arrow) 4 3, auto;
    --cv-cur-hand: var(--cv-hand) 10 4, pointer;
    cursor: var(--cv-cur);
}
@media (min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5) {
    @supports (cursor: -webkit-image-set(url("x.png") 1x) 4 3, auto) {
        body.cv-cursor {
            --cv-cur: -webkit-image-set(var(--cv-arrow) 1x, var(--cv-arrow-2x) 2x) 4 3, auto;
            --cv-cur-hand: -webkit-image-set(var(--cv-hand) 1x, var(--cv-hand-2x) 2x) 10 4, pointer;
        }
    }
    @supports (cursor: image-set(url("x.png") 1x) 4 3, auto) {
        body.cv-cursor {
            --cv-cur: image-set(var(--cv-arrow) 1x, var(--cv-arrow-2x) 2x) 4 3, auto;
            --cv-cur-hand: image-set(var(--cv-hand) 1x, var(--cv-hand-2x) 2x) 10 4, pointer;
        }
    }
}
/* :where() ile özgüllük düşük kalır: bileşenlerin kendi imleç kuralları (ör. pasif düğmede "not-allowed") geçerli */
body.cv-cursor :where(a[href], area[href], summary, select, button, [role="button"], [role="tab"], [role="radio"], [role="switch"], [role="option"], [role="menuitem"],
    input:is([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"])) {
    cursor: var(--cv-cur-hand);
}
body.cv-cursor :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="submit"], [type="button"], [type="reset"], [type="image"], [type="hidden"]),
    textarea, [contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]) {
    cursor: text;
}
body.cv-cursor :where(input, textarea, select, button):disabled, body.cv-cursor :where([aria-disabled="true"]) { cursor: not-allowed; }
.cv-guest {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483647;
    pointer-events: none;
    user-select: none;
    opacity: 0;
    transition: opacity .16s ease;
    will-change: transform;
}
.cv-guest.is-on { opacity: 1; }
.cv-guest > span {
    display: block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 3px 8px 4px;
    border-radius: 5px 11px 11px;
    background: linear-gradient(100deg, #d63a63 0%, #b8459f 55%, #8c47e0 100%);
    box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .18);
    color: #fff;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: .01em;
    white-space: nowrap;
    translate: 12px 19px;
    transform-origin: 0 0;
    transition: translate .14s ease, scale .14s ease, border-radius .14s ease;
}
html[data-theme="light"] .cv-guest > span { box-shadow: 0 6px 14px -6px rgba(24, 12, 52, .4), inset 0 0 0 1px rgba(255, 255, 255, .2); }
.cv-guest.is-hand > span { translate: 8px 25px; }
.cv-guest.is-flip-x > span { border-radius: 11px 5px 11px 11px; translate: calc(-100% - 4px) 19px; transform-origin: 100% 0; }
.cv-guest.is-flip-y > span { border-radius: 11px 11px 11px 5px; translate: 12px calc(-100% - 6px); transform-origin: 0 100%; }
.cv-guest.is-hand.is-flip-x > span { translate: calc(-100% - 10px) 25px; }
.cv-guest.is-flip-x.is-flip-y > span { border-radius: 11px 11px 5px; translate: calc(-100% - 4px) calc(-100% - 6px); transform-origin: 100% 100%; }
.cv-guest.is-down > span { scale: .92; }
@media (prefers-reduced-motion: reduce) { .cv-guest > span { transition: none; } }
@media print { .cv-guest { display: none; } }

/* ================================================================ Panel yenilemesi (2026-11) */

/* ---------------------------------------------------------------- Kayan sekme şeritleri (ui.js stxBind)
   Sığmayan şeritte devamı olan uçta solma ve ok. Uç parçaları şeridin içinde, yapışık ve sıfır
   genişlikte: şeridin ölçüsü değişmez. Solma şeridin kendi zemin renginde (--stx-bg). */
.seg { --stx-bg: var(--card); }
.stx-over { scroll-padding-inline: 44px; }
.stx-edge {
    position: sticky;
    z-index: 2;
    flex: 0 0 0;
    align-self: stretch;
    width: 0;
    min-width: 0;
    pointer-events: none;
}
.stx-s { order: -999; inset-inline-start: 0; margin-inline-end: -2px; }
.stx-e { order: 999; inset-inline-end: 0; margin-inline-start: -2px; }
.stx-edge::before {
    content: "";
    position: absolute;
    inset-block: 0;
    width: 72px;
    opacity: 0;
    transition: opacity .22s ease;
}
.stx-s::before { inset-inline-start: 0; background: linear-gradient(to right, var(--stx-bg) 30%, transparent); }
.stx-e::before { inset-inline-end: 0; background: linear-gradient(to left, var(--stx-bg) 30%, transparent); }
[dir="rtl"] .stx-s::before { background: linear-gradient(to left, var(--stx-bg) 30%, transparent); }
[dir="rtl"] .stx-e::before { background: linear-gradient(to right, var(--stx-bg) 30%, transparent); }
.stx-btn {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--line-2);
    border-radius: var(--r-full);
    background: var(--elev);
    color: var(--text);
    box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .7);
    opacity: 0;
    transform: translateY(-50%) scale(.8);
    transition: opacity .22s ease, transform .22s var(--ease), background .2s ease, border-color .2s ease;
    pointer-events: none;
    cursor: var(--cv-cur-hand, pointer);
}
.stx-s .stx-btn { inset-inline-start: 4px; }
.stx-e .stx-btn { inset-inline-end: 4px; }
.stx-btn .ic { width: 15px; height: 15px; }
.stx-s .stx-btn .ic { transform: scaleX(-1); }
[dir="rtl"] .stx-s .stx-btn .ic { transform: none; }
[dir="rtl"] .stx-e .stx-btn .ic { transform: scaleX(-1); }
.stx-has-s > .stx-s::before, .stx-has-e > .stx-e::before { opacity: 1; }
.stx-has-s > .stx-s .stx-btn, .stx-has-e > .stx-e .stx-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}
.stx-btn:hover { border-color: var(--accent-line); color: var(--accent-2); }
.stx-btn:active { transform: translateY(-50%) scale(.92); }
html[data-theme="light"] .stx-btn { background: #fff; box-shadow: 0 2px 10px rgba(20, 20, 30, .14); }
@media (prefers-reduced-motion: reduce) {
    .stx-edge::before, .stx-btn { transition: none; }
}

/* ---------------------------------------------------------------- Sol menü: gruplar (ui.js navGroups)
   Ana Menü hep açık; diğer üç grup tek açık kalan akordeon. Daha sık satırlar, daha sakin simgeler,
   dengeli sayaçlar. Kapanan grubun içi kırpılır; seçili öğenin soldaki çubuğu kırpılmasın diye içerik
   kutusu menü kenar boşluğu kadar sola uzanır (--sb-pad). */
.sidebar { --sb-pad: 14px; }
.sb-nav { gap: 4px; }
.sb-sec { display: flex; flex-direction: column; min-width: 0; }
.sb-sec + .sb-sec { padding-top: 4px; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.sb-sec-items { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sb-sec-label {
    min-width: 0;
    overflow: hidden;
    color: var(--text-3);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.sb-sec--main > .sb-sec-label { margin: 2px 10px 6px; }
.sb-sec-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 4px 10px 4px 9px;
    border: 0;
    border-radius: var(--r-full);
    background: none;
    color: var(--text-3);
    font: inherit;
    text-align: start;
    cursor: var(--cv-cur-hand, pointer);
    transition: background .2s ease, color .2s ease;
}
.sb-sec-head .sb-sec-label { flex: 1; transition: color .2s ease; }
.sb-sec-head:hover { background: var(--hover); }
.sb-sec-head:hover .sb-sec-label, .sb-sec.is-open .sb-sec-label, .sb-sec.has-active .sb-sec-label { color: var(--text-2); }
.sb-sec-head:focus-visible { outline: none; box-shadow: var(--ring); }
.sb-sec-ic { display: grid; place-items: center; flex: none; width: 18px; height: 18px; color: var(--text-3); }
.sb-sec-ic .ic { width: 15px; height: 15px; }
.sb-sec-chev { flex: none; width: 15px; height: 15px; color: var(--text-3); transition: transform .3s var(--ease); }
.sb-sec.is-open .sb-sec-chev { transform: rotate(180deg); }
/* Kapalı grup: seçili bölüm burada ise nokta, sayaçlar varsa toplamları */
.sb-sec-dot { display: none; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sb-sec.has-active:not(.is-open) .sb-sec-dot { display: block; }
.sb-sec-count {
    display: none;
    flex: none;
    min-width: 20px;
    padding: 0 6px;
    border-radius: var(--r-full);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: .68rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.sb-sec:not(.is-open) .sb-sec-count:not(:empty) { display: block; }
.sb-sec-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.sb-sec.is-open > .sb-sec-body { grid-template-rows: 1fr; }
.sb-sec-body > .sb-sec-items {
    min-height: 0;
    margin: 0 -4px 0 calc(-1 * var(--sb-pad));
    padding: 2px 4px 2px var(--sb-pad);
    overflow: hidden;
    opacity: 0;
    transition: opacity .2s ease;
}
.sb-sec.is-open > .sb-sec-body > .sb-sec-items { opacity: 1; transition: opacity .3s ease .06s; }
.sb-sec.sb-instant .sb-sec-body, .sb-sec.sb-instant .sb-sec-body > .sb-sec-items, .sb-sec.sb-instant .sb-sec-chev { transition: none !important; }
/* Öğeler: daha sık, sakin simge kutuları; seçili öğede dolu kutu ve soldaki çubuk */
.sb-nav .tab, .sb-nav .nav-btn { min-height: 40px; gap: 11px; padding: 5px 10px 5px 7px; font-size: .9rem; }
.sb-ic { width: 28px; height: 28px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.sb-ic .ic { width: 16px; height: 16px; }
.sb-nav .tab.active, .sb-nav .nav-btn.active {
    background: color-mix(in srgb, var(--c) 12%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent);
    font-weight: 600;
}
.sb-nav .tab.active::before, .sb-nav .nav-btn.active::before { inset-inline-start: calc(-1 * var(--sb-pad)); top: 10px; bottom: 10px; }
.sb-nav .active .sb-ic { box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--c) 70%, transparent); }
/* Okunmamış sayacı: sakin, hap biçimli; seçili öğede dolu */
.sb-count {
    min-width: 22px;
    padding: 0 7px;
    border-radius: var(--r-full);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: .7rem;
    font-weight: 700;
    line-height: 20px;
}
html[data-theme="light"] .sb-count { background: var(--accent-soft); color: var(--accent); }
.sb-nav :is(.tab, .nav-btn).active .sb-count { background: var(--accent); color: #fff; }
@media (max-width: 1023.98px) {
    .sidebar { --sb-pad: 16px; }
    .sb-nav .tab, .sb-nav .nav-btn { min-height: 46px; }
    /* Alt çubukta olan bölümler menüde gizli: hiç öğesi kalmayan grup başlığı da gizlenir */
    .sb-sec:not(:has(:is(.tab, .nav-btn):not(.in-bb))) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .sb-sec-body, .sb-sec-body > .sb-sec-items, .sb-sec-chev { transition: none; }
}
/* Dar menüde (1024-1279 px) grup başlıkları da kısa adla */
.sb-sec-head .tab-short { display: none; }
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .sb-sec-head .tab-long { display: none; }
    .sb-sec-head .tab-short { display: inline; }
}

/* ---------------------------------------------------------------- Geri Dönüşler: kartlar (panel-callbacks.js)
   Durum rengi kartın üst kenarında ve ışığında (--c), kaynak simgesi, kanal logosu, numara renkli bir hapta. */
.cb-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cb-summary[hidden] { display: none; }
.cb-sum { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 10px; border-radius: var(--r-full);
    background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--text-2); font-size: .82rem; }
.cb-sum .ic { width: 15px; height: 15px; color: var(--c); }
.cb-sum b { color: var(--text); font-weight: 700; }
.cb-list { gap: 14px; }
.cb-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 16px 16px 14px;
    border: 1px solid var(--line); border-radius: var(--r-lg); color: inherit; font: inherit; text-align: start; overflow: hidden;
    background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 12%, transparent), transparent 60%), var(--card);
    cursor: var(--cv-cur-hand, pointer);
    transition: border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
html[data-theme="light"] .cb-card { background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 8%, transparent), transparent 60%), #fff; }
.cb-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--c);
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 85%); mask-image: linear-gradient(90deg, #000, transparent 85%);
}
.cb-card:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--line-2)); transform: translateY(-2px); box-shadow: 0 18px 34px -24px rgba(0, 0, 0, .75); }
html[data-theme="light"] .cb-card:hover { box-shadow: 0 16px 30px -22px rgba(30, 20, 50, .35); }
.cb-card:focus-visible { outline: none; box-shadow: var(--ring); }
.cb-card.is-overdue { border-color: color-mix(in srgb, var(--c-red) 38%, var(--line)); }
.cb-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cb-ava { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 13px;
    background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); font-size: .85rem; font-weight: 700; }
.cb-who { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.cb-who b { overflow: hidden; color: var(--text); font-size: .98rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.cb-who small { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); font-size: .78rem; }
.cb-who small .ic { width: 13px; height: 13px; }
.cb-state { display: inline-flex; align-items: center; gap: 6px; flex: none; align-self: flex-start; padding: 4px 10px; border-radius: var(--r-full);
    background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.cb-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.cb-channel { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md);
    background: color-mix(in srgb, var(--bg) 40%, transparent); }
html[data-theme="light"] .cb-channel { background: var(--card-2); }
.cb-logo { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.cb-logo .logo { width: 20px; height: 20px; }
.cb-logo.is-none { background: var(--warn-soft); box-shadow: none; color: var(--warn); }
.cb-logo.is-none .ic { width: 17px; height: 17px; }
.cb-ch { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.cb-ch small { color: var(--text-3); font-size: .7rem; }
.cb-ch b { overflow: hidden; color: var(--text); font-size: .88rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cb-num { flex: none; max-width: 52%; overflow: hidden; padding: 4px 10px; border-radius: var(--r-full); text-overflow: ellipsis; white-space: nowrap;
    background: color-mix(in srgb, var(--c-sky) 16%, transparent); color: var(--c-sky); font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.cb-num.is-none { background: var(--hover); color: var(--text-3); font-weight: 600; }
.cb-foot { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; color: var(--text-3); font-size: .78rem; }
.cb-foot .ic { width: 14px; height: 14px; }
.cb-due, .cb-assignee { display: inline-flex; align-items: center; gap: 5px; }
.cb-assignee { margin-inline-start: auto; color: var(--text-2); }
.cb-assignee.is-none { color: var(--text-3); font-style: italic; }
.cb-late { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-full);
    background: color-mix(in srgb, var(--c-red) 14%, transparent); color: var(--c-red); font-weight: 700; }
.cb-late .ic { width: 13px; height: 13px; }

/* Platform hesabı kurulumu (/admin, admin_setup.html): geçici şifre + iki adımlı doğrulama */
.setup-card { max-width: 480px; }
.setup-step { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; font-size: 1.05rem; letter-spacing: -.01em; }
.setup-num { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--text); font-size: .82rem; font-weight: 700; }
#pwForm .hint, #totpStep > .hint { margin: 0 0 16px; }
.totp-box { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 18px; }
.totp-qr { flex: none; width: 168px; height: 168px; padding: 6px; border-radius: var(--r); background: #fff; }
.totp-qr img { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.totp-qr:empty { display: none; }
.totp-key { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.totp-key code { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--elev);
    font-size: .9rem; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.setup-done { text-align: center; color: var(--text-2); }

/* Platform kullanıcıları ve Hesabım (/admin, admin-users.js) */
.au-perms { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.au-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.au-presets .hint { margin: 0 4px 0 0; }
.chip-btn { padding: 4px 11px; border: 1px solid var(--line); border-radius: var(--r-full, 999px); background: var(--elev);
    color: var(--text-2); font: inherit; font-size: .82rem; cursor: pointer; }
.chip-btn:hover { color: var(--text); border-color: var(--line-2, var(--line)); }
.au-perms[data-admin] .au-presets { display: none; }
.au-admin-note { display: none; margin: 0; }
.au-perms[data-admin] .au-admin-note { display: block; }
.au-perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 14px; }
.au-perm { display: flex; align-items: flex-start; gap: 8px; padding: 6px 2px; cursor: pointer; }
.au-perm input { margin-top: 3px; flex: none; }
.au-perm span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.au-perm b { font-size: .88rem; font-weight: 600; }
.au-perm small { color: var(--text-3); font-size: .78rem; line-height: 1.35; }
.au-perm.is-locked { opacity: .55; cursor: default; }
.au-active { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
.au-perm-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.au-actions { white-space: nowrap; }
.au-actions .btn + .btn { margin-inline-start: 4px; }
.au-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 16px; }
.au-secret code { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--elev);
    font-size: 1.1rem; letter-spacing: .08em; user-select: all; }
.au-account { display: grid; gap: 14px; max-width: 760px; }
.au-card { padding: 18px 20px; }
.au-card .card-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.au-card .card-header h3 { margin: 0; font-size: 1.02rem; }
@media (max-width: 640px) {
    .au-actions { white-space: normal; }
    .au-actions .btn { margin: 2px 0; }
}

/* Ekip > Roller: işletmenin kendi yetki setleri (panel-team.js) */
.tm-roles { display: flex; flex-direction: column; gap: 12px; }
.tm-roles-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tm-roles-head h3 { margin: 0 0 4px; font-size: 1.02rem; }
.tm-roles-head .hint { margin: 0; max-width: 62ch; }
.tm-role-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--elev); }
.tm-perm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tm-perm-tools .hint { margin: 0 4px 0 0; }
.tm-perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 16px; }
.tm-perm-group { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; border: 0; min-width: 0; }
.tm-perm-group legend { margin-bottom: 4px; padding: 0; color: var(--text); font-size: .86rem; font-weight: 650; }
.tm-perm-group .check { font-size: .88rem; }

/* ---------------------------------------------------------------- Sol menü v3
   Daha görünür: zemin hafif renkli bir geçişle ve gölgeyle sayfadan ayrılır; öğelerin renkli kutucukları geçişli,
   seçili öğe kendi rengiyle parlar. İskelet: üst düzey öğeler ve gruplar aynı satır biçiminde (grup adı normal
   yazımla, sağda ok), grubun alt öğeleri kutucuksuz, grubun simgesinden inen kılavuz çizgisinde; seçili alt öğe
   çizgide renkli bir işaret ve sağda › ile. Sayaçlar öğenin renginde hap. Davranış aynı (ui.js navGroups). */
.sidebar {
    --sb-line: rgba(255, 255, 255, .1);
    --sb-sub-h: 38px;
    --sb-a: 24%;  /* seçili öğe zemininin rengi: başta */
    --sb-b: 7%;   /* sonda */
}
html[data-theme="light"] .sidebar { --sb-line: rgba(26, 26, 26, .09); --sb-a: 15%; --sb-b: 4%; }
@media (min-width: 1024px) {
    .sidebar {
        background:
            radial-gradient(130% 30% at 0% 0%, rgba(182, 146, 221, .13), transparent 62%),
            radial-gradient(100% 26% at 100% 100%, rgba(56, 189, 248, .06), transparent 70%),
            linear-gradient(180deg, #141419 0%, #0d0d11 46%, #09090c 100%);
        border-inline-end: 1px solid var(--sb-line);
        box-shadow: 20px 0 54px -32px rgba(0, 0, 0, .95), inset -1px 0 0 rgba(255, 255, 255, .03);
    }
    html[data-theme="light"] .sidebar {
        background:
            radial-gradient(130% 30% at 0% 0%, rgba(113, 78, 148, .1), transparent 62%),
            radial-gradient(100% 26% at 100% 100%, rgba(3, 105, 161, .05), transparent 70%),
            linear-gradient(180deg, #ffffff 0%, #fcfbff 55%, #f7f5fc 100%);
        box-shadow: 16px 0 44px -30px rgba(40, 24, 70, .32);
    }
}
/* İşletme kutusu */
.sb-context {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 13%, #131318), #0f0f13 72%);
    border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--sb-line));
    box-shadow: 0 12px 28px -20px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .05);
}
html[data-theme="light"] .sb-context {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, #fff), #fff 72%);
    border-color: color-mix(in srgb, var(--accent) 18%, var(--sb-line));
    box-shadow: 0 12px 26px -20px rgba(40, 24, 70, .4), inset 0 1px 0 #fff;
}
/* "Ana Menü" yalnız ekran okuyucuda; gruplar arasında çizgi yok, satırlar kendini ayırır */
.sb-sec--main > .sb-sec-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sb-nav { gap: 2px; }
.sb-sec + .sb-sec { padding-top: 0; border-top: 0; }
.sb-sec--main { margin-bottom: 6px; }
.sb-sec-items { gap: 2px; }
.sb-sec[data-sb-sec="customers"] { --c: var(--c-sky); }
.sb-sec[data-sb-sec="business"] { --c: var(--c-amber); }
.sb-sec[data-sb-sec="system"] { --c: var(--c-indigo); }
.sb-sec[data-sb-sec="channels"] { --c: var(--c-pink); }
.sb-sec[data-sb-sec="billing"] { --c: var(--c-green); }
/* Satır: üst düzey öğe ve grup başlığı aynı */
.sb-nav .tab, .sb-nav .nav-btn, .sb-sec-head {
    min-height: 42px;
    gap: 11px;
    padding: 6px 10px 6px 7px;
    border-radius: var(--r-md);
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, box-shadow .25s ease;
}
.sb-nav .tab:hover, .sb-nav .nav-btn:hover, .sb-sec-head:hover { background: var(--hover); color: var(--text); }
/* Renkli kutucuk: öğenin renginde geçiş ve ince kenar */
.sb-ic, .sb-sec-ic {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 9%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
    color: var(--c);
    transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s var(--ease);
}
.sb-ic .ic, .sb-sec-ic .ic { width: 16px; height: 16px; }
.sb-nav :is(.tab, .nav-btn):hover .sb-ic, .sb-sec-head:hover .sb-sec-ic { transform: scale(1.06); }
/* Seçili üst düzey öğe: kendi renginde geçişli zemin, ışık, dolu kutucuk */
.sb-nav .tab.active, .sb-nav .nav-btn.active {
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) var(--sb-a), transparent), color-mix(in srgb, var(--c) var(--sb-b), transparent) 88%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), 0 12px 26px -16px color-mix(in srgb, var(--c) 75%, transparent);
    color: var(--text);
    font-weight: 600;
}
.sb-nav .tab.active::before, .sb-nav .nav-btn.active::before { display: none; }
.sb-nav .active .sb-ic {
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 88%, #fff), color-mix(in srgb, var(--c) 82%, #000));
    box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--c) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: var(--on-c);
}
/* Grup başlığı: normal yazımla ad, sağda ok; açıkken ya da seçili bölüm içindeyken belirgin */
.sb-sec-label { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; }
.sb-sec-head .sb-sec-label { flex: 1; }
.sb-sec-head:hover .sb-sec-label, .sb-sec.is-open .sb-sec-label, .sb-sec.has-active .sb-sec-label { color: var(--text); }
.sb-sec.is-open > .sb-sec-head .sb-sec-ic {
    background: linear-gradient(145deg, color-mix(in srgb, var(--c) 40%, transparent), color-mix(in srgb, var(--c) 14%, transparent));
}
.sb-sec.has-active:not(.is-open) > .sb-sec-head { background: color-mix(in srgb, var(--c) 9%, transparent); }
/* ok sağa yaslı: uzun grup adına (Yapay Zeka ve Kanallar) yer kalsın, yazı yine öğelerle aynı hizada başlar */
.sb-sec-head { padding-inline-end: 7px; }
.sb-sec-chev { width: 16px; height: 16px; margin-inline-start: -4px; color: var(--text-3); }
.sb-sec.is-open .sb-sec-chev { color: var(--text-2); }
.sb-sec-dot { background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 24%, transparent); }
/* Alt öğeler: grubun simgesinden inen kılavuz çizgisinde, kutucuksuz; yazı grup adıyla aynı hizada */
.sb-sec-body > .sb-sec-items { position: relative; padding-block: 2px 4px; }
.sb-sec-body > .sb-sec-items::before {
    content: "";
    position: absolute;
    inset-inline-start: calc(var(--sb-pad) + 21.25px);
    top: 2px;
    bottom: calc(var(--sb-sub-h) / 2 + 4px);
    width: 1.5px;
    border-radius: 2px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, var(--sb-line)), var(--sb-line));
}
.sb-sec-body .tab, .sb-sec-body .nav-btn {
    width: auto;
    min-height: var(--sb-sub-h);
    margin-inline-start: 32px;
    padding: 6px 10px 6px 16px;
    font-size: .875rem;
}
.sb-sec-body .sb-ic { display: none; }
.sb-sec-body .tab.active, .sb-sec-body .nav-btn.active {
    padding-inline-end: 30px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--c) calc(var(--sb-a) - 4%), transparent), color-mix(in srgb, var(--c) var(--sb-b), transparent) 90%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 26%, transparent);
}
/* seçili alt öğenin çizgideki işareti */
.sb-sec-body .tab.active::before, .sb-sec-body .nav-btn.active::before {
    display: block;
    content: "";
    position: absolute;
    inset-inline-start: -11.5px;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 3px;
    background: var(--c);
    box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent);
    animation: barIn .35s var(--ease) both;
}
/* ve sağda › */
.sb-sec-body .tab.active::after, .sb-sec-body .nav-btn.active::after {
    content: "";
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1.7px 1.7px 0;
    opacity: .7;
    transform: translateY(-50%) rotate(-45deg);
}
[dir="rtl"] .sb-sec-body .tab.active::after, [dir="rtl"] .sb-sec-body .nav-btn.active::after { transform: translateY(-50%) rotate(135deg); }
.sb-sec-body :is(.tab, .nav-btn).active:has(.sb-count:not(:empty)) { padding-inline-end: 10px; }
.sb-sec-body :is(.tab, .nav-btn).active:has(.sb-count:not(:empty))::after { display: none; }
/* Sayaçlar: öğenin (kapalı grupta grubun) renginde hap; seçili öğede dolu */
.sb-count, .sb-sec-count {
    min-width: 22px;
    padding: 0 7px;
    border-radius: var(--r-full);
    background: color-mix(in srgb, var(--c) 20%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent);
    color: var(--c);
    font-size: .72rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
html[data-theme="light"] .sb-count, html[data-theme="light"] .sb-sec-count { background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.sb-nav :is(.tab, .nav-btn).active .sb-count { background: var(--c); box-shadow: none; color: var(--on-c); }
@media (max-width: 1023.98px) {
    .sidebar { --sb-sub-h: 44px; }
    .sb-nav .tab, .sb-nav .nav-btn, .sb-sec-head { min-height: 46px; }
    .sb-sec-body .tab, .sb-sec-body .nav-btn { min-height: var(--sb-sub-h); }
}
@media (prefers-reduced-motion: reduce) {
    .sb-sec-body .tab.active::before, .sb-sec-body .nav-btn.active::before { animation: none; }
}

/* ---------------------------------------------------------------- Gürültü engelleme ve ses hassasiyeti
   voice-audio.js: Sistem yönetimi → Sesler ve işletme düzenleme → Sesli Asistan (yalnız panel.css yükleyen sayfa). */
.va-eff { margin: 4px 0 18px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-2); overflow: hidden; }
.va-eff-h { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: .8rem; font-weight: 500; }
.va-eff-h .ic { width: 15px; height: 15px; color: var(--c-teal); }
.va-eff-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.va-eff-i { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 11px 14px 12px; }
.va-eff-i + .va-eff-i { border-inline-start: 1px solid var(--line); }
.va-eff-i span { color: var(--text-3); font-size: .74rem; }
.va-eff-i b { color: var(--text); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; overflow-wrap: anywhere; }
.va-eff-i small { color: var(--text-3); font-size: .72rem; }
.va-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.va-foot-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; min-width: 0; color: var(--text-3); font-size: .8rem; line-height: 1.5; }
.va-foot-b { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-inline-start: auto; }
@media (max-width: 760px) {
    .va-eff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .va-eff-i:nth-child(3) { border-inline-start: 0; }
    .va-eff-i:nth-child(n+3) { border-top: 1px solid var(--line); }
    .va-foot-b { width: 100%; }
    .va-foot-b .btn { flex: 1; }
}

/* ================================================================ Sohbetler v2 (inbox.js)
   Liste: arama + kanal, durum hapları, büyük kanal logoları. Sohbet: sade başlık (ad + durum hapı),
   gün ayraçları, saat ve ✓✓ iletim durumu balonun içinde, ardışık mesajlar grup, "yazıyor" göstergesi,
   emoji seçicili yazma alanı. Sağda "Müşteri detayları": kişi kartı, sayılar, etiketler, Convotify AI
   özeti ve altında açılır analizler. Geniş kutuda sabit sütun, daha darda üstte açılan panel. */
.mi-filters { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; padding: 14px 14px 12px; }
.mi-filters [hidden] { display: none !important; }
.mi-filters input[type=search] { grid-column: auto; min-height: 40px; border-radius: var(--r-full); }
.mi-filters select[data-f="channel"] { width: auto; max-width: 150px; min-height: 40px; border-radius: var(--r-full); }
.mi-filters select[data-f="tenant"] { grid-column: 1 / -1; grid-row: 1; }
.mi-pills {
    grid-column: 1 / -1; display: flex; gap: 6px; margin-inline: -14px; padding-inline: 14px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 18px), transparent);
}
.mi-pills::-webkit-scrollbar { display: none; }
.mi-pill {
    flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 13px;
    border: 1px solid var(--line-2); border-radius: var(--r-full); background: transparent;
    color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 500; white-space: nowrap;
    cursor: var(--cv-cur-hand, pointer); transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.mi-pill:last-child { margin-inline-end: 14px; }
@media (hover: hover) { .mi-pill:hover { color: var(--text); background: var(--hover); } }
.mi-pill[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); font-weight: 600; }
.mi-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mi-item { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; padding: 13px 16px 13px 14px; }
.mi-ch { width: 40px; height: 40px; }
.mi-ch img { width: 38px; height: 38px; }
.mi-item.active { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.mi-item.active::before { width: 3px; border-radius: 0 3px 3px 0; }
.mi-unread { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-full); line-height: 20px; }

/* Başlık: yer kalmazsa düğmeler alt satıra iner; dar başlıkta "Okunmadı yap / Kapat" yalnız simge */
.mi-head { container: mihead / inline-size; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 18px; }
.mi-head-main { flex: 1 1 240px; }
.mi-actions { flex-wrap: wrap; justify-content: flex-end; margin-inline-start: auto; }
@container mihead (max-width: 760px) {
    .mi-actions .mi-btn-compact .mi-btn-label { display: none; }
    .mi-actions .mi-btn-compact { width: 34px; padding: 0; justify-content: center; }
}
.mi-head-logo { width: 42px; height: 42px; }
.mi-head-logo img { width: 40px; height: 40px; }
.mi-head-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mi-head-title h3 { min-width: 0; }
.mi-state {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px;
    border-radius: var(--r-full); background: color-mix(in srgb, var(--neutral) 16%, transparent);
    color: var(--text-2); font-size: .72rem; font-weight: 600; white-space: nowrap;
}
.mi-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mi-state.s-ai { background: color-mix(in srgb, var(--ch-ai) 16%, transparent); color: var(--ch-ai); }
.mi-state.s-team { background: color-mix(in srgb, var(--ch-team) 16%, transparent); color: var(--ch-team); }
.mi-state.s-open { background: color-mix(in srgb, var(--ch-open) 16%, transparent); color: var(--ch-open); }
.mi-head .mi-sub { margin-top: 2px; }
.mi-actions .mi-panel-btn { width: 34px; height: 34px; }
.mi-actions .mi-panel-btn .ic { width: 17px; height: 17px; }
.mi-actions .mi-panel-btn[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-2); }
html[data-theme="light"] .mi-actions .mi-panel-btn[aria-pressed="true"] { color: var(--accent); }

/* Mesajlar */
.mi-msgs { padding: 14px 22px 18px; }
.mi-dayg { position: relative; }
.mi-day { position: sticky; top: 0; z-index: 2; display: flex; justify-content: center; margin: 12px 0 14px; pointer-events: none; }
.mi-day span {
    padding: 4px 12px; border-radius: var(--r-full); border: 1px solid var(--line);
    background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--text-2);
    font-size: .72rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .6);
}
.mi-msg { max-width: min(74%, 640px); margin-bottom: 10px; }
.mi-msg.mi-cont { margin-top: -6px; }
.mi-who { display: inline-flex; align-items: center; gap: 5px; margin: 0 4px 4px; color: var(--text-3); font-size: .72rem; font-weight: 500; }
.mi-who .ic { width: 12px; height: 12px; }
.mi-msg-ai .mi-who .ic { color: var(--accent-2); }
html[data-theme="light"] .mi-msg-ai .mi-who .ic { color: var(--accent); }
.mi-bubble { padding: 8px 12px 8px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.48; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.mi-msg-in .mi-bubble { border-end-start-radius: 6px; }
.mi-msg-out .mi-bubble { border-end-end-radius: 6px; }
.mi-msg-in.mi-cont .mi-bubble { border-start-start-radius: 6px; }
.mi-msg-out.mi-cont .mi-bubble { border-start-end-radius: 6px; }
.mi-stamp {
    float: right; display: inline-flex; align-items: center; gap: 3px; margin: 7px -3px -4px 12px;
    font-size: .68rem; line-height: 1; white-space: nowrap; color: var(--text-3);
}
[dir="rtl"] .mi-stamp { float: left; margin: 7px 12px -4px -3px; }
.mi-msg-team .mi-stamp { color: rgba(255, 255, 255, .78); }
.mi-tick { display: inline-flex; }
.mi-tick .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.mi-tick.t-read .ic { color: var(--c-sky); }
.mi-msg-team .mi-tick.t-read .ic { color: #bae6fd; }
.mi-tick.t-failed .ic, .mi-tick.t-undelivered .ic, .mi-tick.t-rejected .ic, .mi-tick.t-expired .ic { color: var(--bad); }
.mi-meta { margin: 4px 6px 0; }
.mi-meta-bad { color: var(--bad-text); font-weight: 500; }
.mi-typing { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; border-radius: 16px; border-end-end-radius: 6px; background: var(--bubble-ai); border: 1px solid var(--accent-line); }
.mi-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); opacity: .4; animation: miDot 1.2s ease-in-out infinite; }
.mi-typing i:nth-child(2) { animation-delay: .15s; }
.mi-typing i:nth-child(3) { animation-delay: .3s; }
html[data-theme="light"] .mi-typing i { background: var(--accent); }
@keyframes miDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Yazma alanı: dar sütunda devralma yazısı kısalır, kısayol ipucu gizlenir */
.mi-reply { container: mireply / inline-size; position: relative; padding: 12px 18px 12px; }
@container mireply (max-width: 640px) {
    .mi-reply .mi-long { display: none; }
    .mi-reply .mi-short { display: inline; }
}
@container mireply (max-width: 460px) { .mi-kbd { display: none; } }
.mi-compose {
    position: relative; display: flex; align-items: flex-end; gap: 6px; padding: 5px;
    border: 1px solid var(--line-2); border-radius: 18px; background: var(--bg-2);
    transition: border-color .2s ease, box-shadow .2s ease;
}
html[data-theme="light"] .mi-compose { background: #fff; }
.mi-compose:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.mi-reply .mi-compose textarea {
    flex: 1; min-width: 0; min-height: 42px; height: 42px; max-height: 180px; padding: 10px 4px;
    border: 0; border-radius: 0; background: transparent; box-shadow: none; resize: none; line-height: 1.45;
}
.mi-reply .mi-compose textarea:focus { box-shadow: none; background: transparent; }
.mi-ico {
    flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border: 0; border-radius: 13px; background: transparent; color: var(--text-2); cursor: var(--cv-cur-hand, pointer);
    transition: background .2s ease, color .2s ease;
}
.mi-ico .ic { width: 20px; height: 20px; }
@media (hover: hover) { .mi-ico:hover { background: var(--hover); color: var(--text); } }
.mi-ico[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent-2); }
.mi-ico:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.mi-compose .mi-send { flex: none; width: 42px; height: 42px; min-height: 42px; padding: 0; justify-content: center; border-radius: 13px; }
.mi-compose .mi-send .mi-btn-label { display: none; }
.mi-compose .mi-send .ic { width: 18px; height: 18px; margin: 0; }
.mi-emoji {
    position: absolute; inset-inline-start: 0; bottom: calc(100% + 8px); z-index: 25;
    display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 8px;
    border: 1px solid var(--line-2); border-radius: 16px; background: var(--card);
    box-shadow: 0 22px 50px -24px rgba(0, 0, 0, .7); animation: fadeIn .18s ease both;
}
html[data-theme="light"] .mi-emoji { background: #fff; box-shadow: 0 22px 50px -26px rgba(40, 20, 60, .35); }
.mi-emoji[hidden] { display: none; }
.mi-emoji button {
    display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px;
    background: none; font-size: 1.15rem; line-height: 1; cursor: var(--cv-cur-hand, pointer);
}
@media (hover: hover) { .mi-emoji button:hover { background: var(--hover); } }
.mi-emoji button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mi-reply-row { margin-top: 8px; padding: 0 4px; }
.mi-kbd { flex: none; font-size: .74rem; color: var(--text-3); white-space: nowrap; }
.mi-kbd kbd { display: inline-block; padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; font: inherit; font-size: .7rem; color: var(--text-2); }

/* Müşteri detayları */
.mi-intel { background: var(--card); font-size: .84rem; }
.mi-cd-head {
    position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 66px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: var(--card);
}
.mi-cd-head b { font-size: .95rem; font-weight: 600; color: var(--text); }
.mi-cd-head .icon-btn { width: 34px; height: 34px; border-color: transparent; color: var(--text-2); }
.mi-cd-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px 24px; }
.mi-cd-profile { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.mi-cd-avawrap { position: relative; margin-bottom: 9px; }
.mi-cd-ava {
    display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(145deg, color-mix(in srgb, var(--c, var(--c-violet)) 55%, transparent), color-mix(in srgb, var(--c, var(--c-violet)) 22%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, var(--c-violet)) 40%, transparent), 0 12px 30px -16px color-mix(in srgb, var(--c, var(--c-violet)) 70%, transparent);
    color: #fff; font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em;
}
.mi-cd-ava.c-blue { --c: var(--c-sky); }
.mi-cd-ava.is-logo { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.mi-cd-ava.is-logo img { width: 44px; height: 44px; object-fit: contain; }
.mi-cd-badge { position: absolute; inset-inline-end: -3px; bottom: -3px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 3px var(--card); }
.mi-cd-badge img { width: 24px; height: 24px; object-fit: contain; }
.mi-cd-name { max-width: 100%; overflow: hidden; color: var(--text); font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.mi-cd-line { color: var(--text-2); font-size: .82rem; }
.mi-cd-state { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--text-2); font-size: .78rem; font-weight: 600; }
.mi-cd-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--neutral); }
.mi-cd-state.s-ai { color: var(--ch-ai); }
.mi-cd-state.s-ai i { background: var(--ch-ai); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ch-ai) 22%, transparent); }
.mi-cd-state.s-team { color: var(--ch-team); }
.mi-cd-state.s-team i { background: var(--ch-team); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ch-team) 22%, transparent); }
.mi-cd-state.s-open { color: var(--ch-open); }
.mi-cd-state.s-open i { background: var(--ch-open); }
.mi-cd-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mi-cd-actions .mi-btn { justify-content: center; min-height: 38px; gap: 7px; font-size: .82rem; text-decoration: none; }
.mi-cd-actions .mi-btn .ic { width: 15px; height: 15px; }
/* "Takvime ekle" (panel-booking.js) */
.mi-cd-book { display: flex; flex-direction: column; gap: 6px; }
.mi-cd-book .mi-btn { justify-content: center; min-height: 38px; gap: 7px; font-size: .84rem; }
.mi-cd-book .mi-btn .ic { width: 15px; height: 15px; }
.mi-cd-book small { color: var(--text-3); font-size: .76rem; line-height: 1.45; }
.mi-cd-stats { margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.mi-cd-stats > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 8px 12px; }
.mi-cd-stats > div + div { border-top: 1px solid var(--line); }
.mi-cd-stats dt { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text-2); font-size: .82rem; }
.mi-cd-stats dd { margin: 0; color: var(--text); font-size: .84rem; font-weight: 600; text-align: end; white-space: nowrap; }
.mi-cd-si { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.mi-cd-si .ic { width: 15px; height: 15px; }
.mi-cd-sec { display: flex; flex-direction: column; gap: 9px; }
.mi-cd-h { display: flex; align-items: center; gap: 7px; color: var(--text); font-size: .84rem; font-weight: 600; }
.mi-cd-h .ic { width: 15px; height: 15px; color: var(--text-3); }
.mi-cd-h-an { margin-top: 2px; margin-bottom: -6px; }
.mi-cd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mi-cd-tag {
    --c: var(--neutral);
    display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: var(--r-full);
    border: 1px solid color-mix(in srgb, var(--c) 36%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent);
    color: color-mix(in srgb, var(--c) 72%, var(--text)); font-size: .74rem; font-weight: 600; white-space: nowrap;
}
.mi-cd-tag.s-ai { --c: var(--ch-ai); }
.mi-cd-tag.s-team, .mi-cd-tag.hand { --c: var(--ch-team); }
.mi-cd-tag.s-open { --c: var(--ch-open); }
.mi-cd-tag.t-hot { --c: var(--bad); }
.mi-cd-tag.t-warm { --c: var(--warn); }
.mi-cd-tag.t-cold { --c: var(--c-sky); }
.mi-cd-tag.req { --c: var(--accent); }
.mi-cd-sec .mi-intel-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.mi-cd-body .mi-request { margin: 0; }
.mi-cd-ai {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--c-violet) 34%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, #9b55ee 20%, transparent), color-mix(in srgb, #f8576b 10%, transparent)), var(--card-2);
}
.mi-cd-ai-ic { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #9b55ee, #c353b4); color: #fff; box-shadow: 0 10px 22px -12px rgba(155, 85, 238, .9); }
.mi-cd-ai-ic .ic { width: 17px; height: 17px; }
.mi-cd-ai-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mi-cd-ai-t b { color: var(--text); font-size: .88rem; font-weight: 600; }
.mi-cd-ai-t p { margin: 0; color: var(--text-2); font-size: .82rem; line-height: 1.5; overflow-wrap: anywhere; }
.mi-cd-ai-t small { margin-top: 3px; color: var(--text-3); font-size: .72rem; }
.mi-acc { border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.mi-acc > summary {
    display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 12px;
    color: var(--text); font-size: .84rem; font-weight: 600; cursor: var(--cv-cur-hand, pointer); list-style: none;
}
.mi-acc > summary::-webkit-details-marker { display: none; }
.mi-acc > summary::after {
    content: ""; flex: none; margin-inline-start: auto; width: 7px; height: 7px;
    border-right: 1.6px solid var(--text-3); border-bottom: 1.6px solid var(--text-3);
    transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease);
}
.mi-acc[open] > summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.mi-acc > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 12px; }
.mi-acc-ic { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-2); }
html[data-theme="light"] .mi-acc-ic { color: var(--accent); }
.mi-acc-ic .ic { width: 14px; height: 14px; }
.mi-acc-t { min-width: 0; }
.mi-acc .mi-intel-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 2px 12px 13px; }
.mi-acc .mi-note { margin: 0; }

/* Geniş kutu: detaylar sağda tam boy sütun (başlık dahil); kapatılınca sohbet tam genişlik */
.mi-host .mi-col[data-r="detail"]:not(.mi-panel-open) { display: flex; flex-direction: column; }
.mi-host .mi-col[data-r="detail"]:not(.mi-panel-open) > .mi-intel { display: none; }
@container inbox (min-width: 1300px) {
    .mi-host .mi-col[data-r="detail"].mi-panel-open {
        display: grid;
        grid-template-columns: minmax(0, 1fr) clamp(300px, 29%, 360px);
        grid-template-rows: auto minmax(0, 1fr) auto;
        grid-template-areas: "head intel" "msgs intel" "reply intel";
    }
    .mi-host .mi-col[data-r="detail"].mi-panel-open > .mi-intel { display: block; padding: 0; }
}
/* Daha dar kutu: detaylar sağdan açılan panel (varsayılan kapalı) */
@container inbox (max-width: 1299.98px) {
    /* eski 1100 px ızgarası (müşteri zekası sütunu) burada devreye girmez: sohbet tam genişlik */
    .mi-host .mi-col[data-r="detail"].mi-panel-open { display: flex; flex-direction: column; }
    .mi-host .mi-col[data-r="detail"] { position: relative; }
    .mi-host .mi-col[data-r="detail"] > .mi-intel {
        display: block; position: absolute; inset: 0 0 0 auto; z-index: 20; width: min(360px, 92%);
        border-inline-start: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain;
        box-shadow: -30px 0 60px -34px rgba(0, 0, 0, .75);
        transform: translateX(104%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s;
    }
    [dir="rtl"] .mi-host .mi-col[data-r="detail"] > .mi-intel { transform: translateX(-104%); }
    .mi-host .mi-col[data-r="detail"].mi-panel-open > .mi-intel { transform: none; visibility: visible; transition: transform .3s var(--ease); }
}

/* Telefon: tam ekran sohbetin yazma alanı (emoji + yazı + gönder tek satır), detaylar ⓘ sayfasında */
@media (max-width: 760px) {
    .mi-filters { grid-template-columns: minmax(0, 1fr) auto; padding: 0 16px 12px; }
    .mi-pills { margin-inline: -16px; padding-inline: 16px; }
    .mi-pill:last-child { margin-inline-end: 16px; }
    .mi-filters select[data-f="channel"] { max-width: 42vw; }
    .mi-frow { display: contents; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
    .mi-item { grid-template-columns: 40px minmax(0, 1fr); }
    .mi-thread .mi-panel-btn, .mi-thread .mi-state { display: none; }
    .mi-thread .mi-reply { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
    .mi-thread .mi-head-logo img { width: 30px; height: 30px; }
    .mi-thread .mi-reply textarea { grid-column: auto; grid-row: auto; min-height: 42px; height: 42px; max-height: 140px; padding: 10px 4px; }
    .mi-thread .mi-reply-row { display: flex; margin: 0; padding: 0 4px; }
    .mi-thread .mi-reply .mi-takeover { grid-column: auto; grid-row: auto; }
    .mi-thread .mi-reply [data-r="send"] { grid-column: auto; grid-row: auto; width: 42px; height: 42px; min-height: 42px; }
    .mi-thread .mi-compose { border-radius: 22px; }
    .mi-thread .mi-emoji { grid-template-columns: repeat(8, minmax(0, 1fr)); inset-inline: 0; }
    .mi-thread .mi-emoji button { width: auto; }
    .mi-thread .mi-msgs { padding: 10px 12px 8px; }
    .mi-thread .mi-msg { max-width: 86%; }
    .mi-info-body .mi-cd-body, .mi-info-body { gap: 16px; }
    .mi-info-body { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mi-typing i { animation: none; opacity: .6; }
}

/* V2 5c: the employee's own availability for handovers (topbar). */
.avail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line, rgba(127, 127, 127, .3));
    border-radius: 16px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-3, #9e9e9e);
}

.avail-btn.is-on .avail-dot {
    background: var(--ok, #2ecc71);
}

.avail-btn:disabled {
    opacity: .6;
    cursor: default;
}

/* ---------------------------------------------------------------- Onay ve soru penceresi (ui.js: MhsUI.confirm / MhsUI.prompt)
   Tarayıcının confirm()/prompt() kutusunun yerine: kısa başlık, açıklama, iki düğme. Başka bir pencerenin
   üstünde de açılabilir (ör. çalışan penceresinden "pasifleştir"), bu yüzden bir kat yukarıda durur. */
.modal-bg.mhs-ask { z-index: 1600; }
.modal-bg > .modal.mhs-ask-box { max-width: 440px; padding: 22px; }
.mhs-ask-form { display: flex; flex-direction: column; gap: 18px; margin: 0; }
.mhs-ask-head { display: flex; align-items: flex-start; gap: 14px; }
.mhs-ask-head .tile { width: 40px; height: 40px; border-radius: 12px; }
.mhs-ask-head .tile .ic { width: 19px; height: 19px; }
.mhs-ask-t { flex: 1; min-width: 0; }
.modal-bg > .modal.mhs-ask-box h2 { margin: 1px 0 0; color: var(--text); font-size: 1.04rem; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.mhs-ask-t p { margin: 6px 0 0; color: var(--text-2); font-size: .875rem; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.mhs-ask-field { display: flex; flex-direction: column; gap: 7px; margin: 0; }
.mhs-ask-field > span { color: var(--text); font-size: .84rem; font-weight: 500; }
.mhs-ask-field input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.mhs-ask-err { color: var(--bad-text); font-size: .78rem; line-height: 1.4; }
.mhs-ask-foot { display: flex; justify-content: flex-end; gap: 8px; }
.mhs-ask-foot .btn { min-width: 96px; justify-content: center; }
.mhs-ask .btn.mhs-ask-danger { border-color: #e5484d; background: #e5484d; color: #fff; }
.mhs-ask .btn.mhs-ask-danger:hover:not(:disabled) { border-color: #d63c41; background: #d63c41; color: #fff; }
@media (max-width: 760px) {
    /* telefonda alttan açılan sayfa: düğmeler yan yana, alt kenara yapışık */
    .modal-bg > .modal.mhs-ask-box { padding: 20px 16px 0; }
    .mhs-ask-foot { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
    .mhs-ask-foot .btn { min-width: 0; min-height: 44px; }
}
