/* Robbot AI — koyu, sade arayüz */
:root {
  --bg: #161416; --side: #111011; --surface: #1d1a1d; --surface-2: #242024; --surface-3: #2c272c;
  --border: #2e292e; --border-2: #3a343a; --text: #ece6ec; --text-2: #c2b8c3; --muted: #8d828e; --faint: #5d545e;
  --brand: #b0679a; --brand-2: #8a5279; --brand-3: #663f5c; --brand-bg: rgba(176,103,154,.12);
  --ok: #3ccf8e; --ok-bg: rgba(60,207,142,.12); --warn: #f0b44c; --warn-bg: rgba(240,180,76,.12); --bad: #f06a7d; --bad-bg: rgba(240,106,125,.12);
  --r: 14px; --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.55 "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(176,103,154,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #332d33; border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i.sm { width: 15px; height: 15px; } .i.lg { width: 24px; height: 24px; }
.muted { color: var(--muted); } .grow { flex: 1; min-width: 0; } .row { display: flex; align-items: center; gap: 10px; } .right { margin-left: auto; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .nowrap { white-space: nowrap; } .mono { font-family: var(--mono); }
code { font-family: var(--mono); font-size: .9em; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; color: #f2c6e3; }

/* düğmeler ve alanlar */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); padding: 7px 13px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: .12s; }
.btn:hover { background: var(--surface-3); border-color: #4a424a; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.primary:hover { background: #c278ab; }
.btn.ghost { background: transparent; border-color: transparent; } .btn.ghost:hover { background: var(--surface-2); }
.btn.danger { color: var(--bad); } .btn.sm { padding: 5px 10px; font-size: 12.5px; } .btn.xs { padding: 3px 8px; font-size: 12px; border-radius: 8px; }
.btn.icon { padding: 7px; } .btn:disabled { opacity: .5; cursor: not-allowed; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; padding: 9px 12px; outline: none; transition: .12s; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-bg); }
label.f { display: block; margin-bottom: 14px; } label.f > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
label.f small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 5px; }
.check { display: flex; gap: 9px; align-items: center; cursor: pointer; font-size: 13.5px; } .check input { accent-color: var(--brand); width: 16px; height: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.chip.ok { background: var(--ok-bg); color: var(--ok); } .chip.warn { background: var(--warn-bg); color: var(--warn); } .chip.bad { background: var(--bad-bg); color: var(--bad); } .chip.brand { background: var(--brand-bg); color: var(--brand); }
.bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.warn i { background: var(--warn); } .bar.bad i { background: var(--bad); }

/* giriş */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, rgba(176,103,154,.18), transparent 60%), var(--bg); }
.auth-card { width: min(400px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-card .logo { height: 46px; display: block; margin: 0 auto 8px; }
.auth-card .tag { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.seg { display: flex; background: var(--side); border: 1px solid var(--border); border-radius: 11px; padding: 3px; margin-bottom: 20px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.seg button.on { background: var(--surface-3); color: var(--text); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: -4px 0 10px; }
.okmsg { background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; }
.mailic { width: 64px; height: 64px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--brand-bg); color: #f2c6e3; }
.mailic .i { width: 30px; height: 30px; }

/* iskelet */
.shell { display: grid; grid-template-columns: 264px 1fr; height: 100vh; height: var(--app-h, 100dvh); }
.side-bg { display: none; }
.side { background: var(--side); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.side-top { padding: 14px 12px 8px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; } .brand img { height: 30px; } .brand b { font-size: 14px; letter-spacing: .16em; color: var(--text-2); font-weight: 700; margin-top: 4px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--text-2); cursor: pointer; font-size: 13.5px; font-weight: 550; border: 0; background: none; width: 100%; text-align: left; }
.nav-i:hover { background: var(--surface-2); color: var(--text); } .nav-i.on { background: var(--surface-3); color: var(--text); }
.nav-i .k { margin-left: auto; font-size: 11px; color: var(--faint); }
.side-search { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 2px 0 6px; border-radius: 9px; color: var(--muted); }
.side-search input { border: 0; background: transparent; padding: 0; box-shadow: none !important; font-size: 13px; }
.side-list { flex: 1; overflow-y: auto; padding: 0 12px 10px; min-height: 0; }
.grp { font-size: 11.5px; color: var(--faint); font-weight: 650; padding: 12px 10px 4px; }
.ci { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 9px; color: var(--text-2); cursor: pointer; font-size: 13px; }
.ci:hover { background: var(--surface-2); color: var(--text); } .ci.on { background: var(--surface-3); color: var(--text); }
.ci .x { opacity: 0; margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; display: grid; }
.ci:hover .x { opacity: 1; } .ci .x:hover { color: var(--bad); background: var(--surface-3); }
.side-sec { padding: 6px 12px; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 12px 12px; border-top: 1px solid var(--border); position: relative; }
.av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff; font-weight: 700; font-size: 12.5px; flex: none; }
.me .nm { font-size: 13px; font-weight: 600; } .me .q { font-size: 11px; color: var(--muted); }
.menu { position: absolute; bottom: 58px; left: 12px; right: 12px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 5px; box-shadow: 0 18px 50px rgba(0,0,0,.5); z-index: 30; }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

/* sohbet */
.chat { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 28px 24px 10px; }
.msgs-in { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.m-u { align-self: flex-end; max-width: 85%; background: var(--surface-2); border: 1px solid var(--border); padding: 10px 14px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; word-wrap: break-word; }
.m-a { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.m-a .ai { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), var(--brand-3)); display: grid; place-items: center; color: #fff; }
.m-a .body { min-width: 0; line-height: 1.7; }
.m-a .meta { display: flex; gap: 10px; align-items: center; margin-top: 6px; color: var(--faint); font-size: 11.5px; opacity: 0; transition: .15s; }
.m-a:hover .meta { opacity: 1; } .meta button { border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; padding: 2px 4px; border-radius: 6px; font-size: 11.5px; }
.meta button:hover { color: var(--text); background: var(--surface-2); }
.md p { margin: 0 0 10px; } .md p:last-child { margin-bottom: 0; } .md ul, .md ol { margin: 4px 0 12px; padding-left: 22px; } .md li { margin: 3px 0; }
.md h2, .md h3, .md h4 { margin: 18px 0 8px; line-height: 1.3; } .md h2 { font-size: 18px; } .md h3 { font-size: 16px; } .md h4 { font-size: 14.5px; }
.md blockquote { margin: 8px 0; padding: 4px 14px; border-left: 3px solid var(--brand-3); color: var(--text-2); }
.md table { border-collapse: collapse; margin: 8px 0 14px; font-size: 13px; } .md th, .md td { border: 1px solid var(--border-2); padding: 6px 10px; text-align: left; } .md th { background: var(--surface-2); }
.cb { margin: 10px 0 14px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #0f0d0f; }
.cb-h { display: flex; align-items: center; padding: 6px 8px 6px 14px; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.cb-h button { margin-left: auto; }
.cb pre { margin: 0; padding: 12px 14px; overflow-x: auto; font: 12.5px/1.6 var(--mono); color: #eadfea; }
.cb pre code { background: none; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }
.brand img, .auth-card .logo, .mobile-top img { filter: brightness(0) invert(.93); }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 50% { opacity: .25; } }
.m-err { display: flex; gap: 8px; align-items: center; color: var(--bad); background: var(--bad-bg); padding: 9px 12px; border-radius: 10px; font-size: 13px; }

/* yazma kutusu */
.composer-wrap { padding: 8px 24px 20px; }
.composer { max-width: 780px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; padding: 12px 12px 10px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25); transition: .15s; }
.composer:focus-within { border-color: #4d444d; }
.composer textarea { width: 100%; border: 0; background: transparent; resize: none; padding: 2px 0 6px; outline: none; box-shadow: none !important; font-size: 14.5px; line-height: 1.55; max-height: 240px; }
.composer .bar2 { display: flex; align-items: center; gap: 8px; }
.composer .hint { font-size: 11.5px; color: var(--faint); }
.model-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--text-2); padding: 5px 8px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; }
.model-btn:hover { background: var(--surface-2); color: var(--text); }
.send { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--text); color: var(--bg); cursor: pointer; transition: .12s; }
.send:disabled { background: var(--surface-3); color: var(--faint); cursor: default; } .send.stop { background: var(--brand); color: #fff; }
.pop { position: absolute; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 5px; box-shadow: 0 18px 50px rgba(0,0,0,.5); z-index: 40; min-width: 210px; }
.pop .nav-i { font-size: 13px; }
.hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
.hero h1 { text-align: center; font-size: 26px; font-weight: 650; margin: 0 0 22px; letter-spacing: -.01em; }
.hero h1 span { background: linear-gradient(90deg, #f2c6e3, var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .composer-wrap { padding: 0; width: 100%; }
.sugs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
.sugs button { border: 1px solid var(--border-2); background: transparent; color: var(--text-2); padding: 6px 12px; border-radius: 99px; cursor: pointer; font-size: 12.5px; }
.sugs button:hover { background: var(--surface-2); color: var(--text); }
.quota-note { text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 10px; }

/* bilgi bankası ve web */
.tg { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-2); background: transparent; color: var(--muted); padding: 4px 10px; border-radius: 99px; cursor: pointer; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tg:hover { color: var(--text); } .tg.on { color: #f2c6e3; border-color: var(--brand-3); background: var(--brand-bg); }
.m-st { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12.5px; padding: 6px 0; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.src { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); padding: 3px 10px 3px 4px; border-radius: 99px; font-size: 12px; cursor: pointer; text-decoration: none; }
.src:hover { border-color: var(--brand-3); color: var(--text); } .src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src b { background: var(--surface-3); color: var(--text); border-radius: 99px; min-width: 18px; height: 18px; display: grid; place-items: center; font-size: 10.5px; }
.src.web b { background: rgba(91,141,239,.2); color: #9bbcff; }
sup.cite { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; margin: 0 1px; border-radius: 99px; background: var(--brand-bg); color: #f2c6e3; font-size: 10px; font-weight: 700; cursor: pointer; vertical-align: super; line-height: 1; }
.meta.keep { opacity: 1; } .meta button.on { color: var(--ok); } .meta button.on.bad { color: var(--bad); }
.kbl { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.hit { padding: 10px 0; border-top: 1px solid var(--border); }
.sugc { margin-bottom: 12px; }
.fbk { padding: 12px 18px; border-bottom: 1px solid var(--border); } .fbk:last-child { border-bottom: 0; }
a.note { color: var(--text-2); }
@media (max-width: 900px) { .kbl { grid-template-columns: 1fr; } .composer .hint { display: none; } }

/* uygulama kurulumu */
.appsec { border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; min-width: 0; overflow-wrap: anywhere; }
.appsec .btn { white-space: normal; text-align: center; line-height: 1.35; }
.appsec summary { cursor: pointer; list-style: none; } .appsec summary::-webkit-details-marker { display: none; }
.appsec.on { border-color: var(--brand-3); background: var(--brand-bg); }
.appsec .row b { font-size: 14px; }
.steps { margin: 10px 0 0; padding-left: 20px; font-size: 13px; color: var(--text-2); } .steps li { margin: 4px 0; } .steps .i { vertical-align: -3px; }
.side { padding-top: env(safe-area-inset-top); }
.mobile-top { padding-top: calc(10px + env(safe-area-inset-top)); }
.composer-wrap { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }

/* sayfalar */
.page { flex: 1; overflow-y: auto; padding: 28px 32px 40px; }
.page-in { max-width: 1680px; margin: 0 auto; }
@media (min-width: 1500px) { .page .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .page .chart svg { height: 220px; } }
.ph { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; } .ph h1 { margin: 0; font-size: 22px; font-weight: 650; } .ph .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 9px 13px; color: var(--muted); font-weight: 600; font-size: 13.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs a:hover { color: var(--text); } .tabs a.on { color: var(--text); border-color: var(--brand); }
.tabs .n { background: var(--brand); color: #fff; border-radius: 99px; font-size: 10.5px; padding: 0 6px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); } .card-h h3 { margin: 0; font-size: 14px; font-weight: 650; }
.card-b { padding: 16px 18px; }
.grid { display: grid; gap: 14px; } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 16px 18px; } .kpi .l { color: var(--muted); font-size: 12px; font-weight: 600; display: flex; gap: 7px; align-items: center; } .kpi .v { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.01em; } .kpi .s { color: var(--muted); font-size: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; } .t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.t td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; } .t tr:last-child td { border-bottom: 0; } .t tr.click { cursor: pointer; } .t tr.click:hover td { background: var(--surface-2); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.chart svg { width: 100%; height: 170px; display: block; } .chart text { fill: var(--faint); font-size: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--brand-bg); color: var(--text-2); font-size: 13px; }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.codebox { position: relative; } .codebox pre { margin: 0; background: #0f0d0f; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: 12.5px/1.6 var(--mono); overflow-x: auto; color: #eadfea; white-space: pre-wrap; word-break: break-all; }
.codebox .btn { position: absolute; top: 8px; right: 8px; }
.models { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* modal ve bildirim */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 50; padding: 20px; }
.modal { background: var(--surface); border: 1px solid var(--border-2); border-radius: 18px; width: min(560px, calc(100vw - 40px)); min-width: 0; max-height: 90vh; overflow: auto; box-shadow: 0 30px 90px rgba(0,0,0,.6); animation: pop .16s; }
.modal.wide { width: min(860px, calc(100vw - 40px)); }
@media (max-width: 600px) { .modal-bg { padding: 10px; } .modal, .modal.wide { width: calc(100vw - 20px); } .mb { padding: 14px; } .mh { padding: 14px; } }
.mh { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); } .mh h3 { margin: 0; font-size: 15.5px; } .mb { padding: 18px 20px 20px; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: .3; } }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; }
.toast { display: flex; gap: 8px; align-items: center; background: var(--surface-3); border: 1px solid var(--border-2); padding: 10px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 13px; animation: pop .16s; }
.toast.err { color: var(--bad); }
.spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.2); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.mobile-top { display: none; }
@media (max-width: 900px) {
  html, body { font-size: 16px; overflow: hidden; overscroll-behavior: none; }
  button, a, .ci, .nav-i { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .shell { grid-template-columns: 1fr; }

  /* çekmece menü */
  .side { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 330px); z-index: 46; transform: translateX(-102%); transition: transform .22s ease; padding-bottom: env(safe-area-inset-bottom); }
  .side.open { transform: none; box-shadow: 0 0 80px rgba(0,0,0,.7); }
  .side-bg { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .side.open + .side-bg { opacity: 1; pointer-events: auto; }
  .side-top { padding: 14px 14px 8px; } .brand img { height: 30px; }
  .nav-i { padding: 12px 12px; font-size: 16px; border-radius: 12px; gap: 12px; } .nav-i .i { width: 21px; height: 21px; } .nav-i .k { display: none; }
  .side-search { padding: 10px 12px; } .side-search input { font-size: 16px; }
  .side-list { padding: 0 12px 12px; } .grp { font-size: 13px; padding: 14px 12px 6px; }
  .ci { padding: 11px 12px; font-size: 15.5px; border-radius: 11px; } .ci .x { opacity: 1; padding: 6px; }
  .me { padding: 12px 14px; } .av { width: 38px; height: 38px; font-size: 14px; } .me .nm { font-size: 15px; } .me .q { font-size: 12.5px; }

  /* üst çubuk */
  .mobile-top { display: flex; align-items: center; gap: 6px; padding: calc(4px + env(safe-area-inset-top)) 6px 4px; border-bottom: 1px solid var(--border); background: var(--bg); flex: none; min-height: 52px; }
  .mobile-top img { height: 26px; } .mobile-top b { font-size: 13px !important; letter-spacing: .16em !important; color: var(--text-2) !important; }
  .mobile-top .btn.icon { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 12px; } .mobile-top .btn.icon .i { width: 26px; height: 26px; stroke-width: 2; }

  /* sohbet */
  .msgs { padding: 18px 14px 10px; } .msgs-in { gap: 22px; }
  .m-u { max-width: 90%; font-size: 16.5px; line-height: 1.5; padding: 11px 15px; border-radius: 20px 20px 6px 20px; }
  .m-a { grid-template-columns: 1fr; } .m-a .ai { display: none; } .m-a .body { font-size: 16.5px; line-height: 1.7; }
  .md h2 { font-size: 20px; } .md h3 { font-size: 18px; } .md h4 { font-size: 16.5px; }
  .cb pre { font-size: 13.5px; } .md table { font-size: 14px; }
  .m-a .meta { opacity: 1; flex-wrap: wrap; gap: 4px; margin-top: 10px; } .meta button { padding: 8px 10px; font-size: 13px; border-radius: 10px; } .meta button .i { width: 18px; height: 18px; }
  .src { padding: 6px 12px 6px 6px; font-size: 13.5px; max-width: 100%; } .src b { min-width: 22px; height: 22px; font-size: 12px; }
  sup.cite { min-width: 20px; height: 20px; font-size: 11.5px; }
  .m-st { font-size: 14.5px; }

  /* yazma kutusu */
  .composer-wrap { padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); flex: none; }
  .composer { border-radius: 22px; padding: 8px 8px 8px 14px; }
  .composer textarea { font-size: 16.5px; line-height: 1.45; padding: 6px 0; max-height: 34vh; }
  .composer .bar2 { gap: 6px; }
  .tg { width: 42px; height: 42px; padding: 0; justify-content: center; } .tg .i { width: 20px; height: 20px; } .tg .lbl { display: none; }
  .model-btn { max-width: 130px; padding: 8px 6px; font-size: 13.5px; } .model-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .model-btn > .i:first-child { display: none; }
  .send { flex: none; width: 44px; height: 44px; } .send .i { width: 22px; height: 22px; }
  .quota-note { font-size: 11.5px; margin-top: 6px; } .quota-note .uyari { display: none; }
  .hero { justify-content: flex-start; padding: 12px 0 0; }
  .hero h1 { margin: auto 18px 18px; font-size: 25px; line-height: 1.25; }
  .hero .sugs { order: 1; margin: 0 10px 12px; gap: 8px; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hero .sugs button { font-size: 14.5px; padding: 10px 14px; white-space: nowrap; flex: none; border-radius: 14px; }
  .hero .composer-wrap { order: 2; padding: 0 8px calc(8px + env(safe-area-inset-bottom)); }

  /* sayfalar */
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2, .g3 { grid-template-columns: 1fr; }
  .page { padding: 18px 14px calc(28px + env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
  .ph h1 { font-size: 22px; } .ph .sub { font-size: 14px; }
  .btn { padding: 10px 14px; font-size: 14.5px; } .btn.sm { padding: 8px 12px; font-size: 14px; } .btn.xs { padding: 6px 10px; font-size: 13px; }
  input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { font-size: 16px; padding: 11px 13px; }
  .t { font-size: 14px; } .t td, .t th { padding: 12px 12px; }
  .tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; border-bottom: 0; }
  .tabs a { padding: 11px 12px; font-size: 14.5px; border: 1px solid var(--border); border-radius: 12px; margin: 0; background: var(--surface); }
  .tabs a.on { border-color: var(--brand-3); background: var(--brand-bg); color: var(--text); }
  .tabs .n { margin-left: auto; }
  .auth { height: var(--app-h, 100dvh); min-height: 0; overflow-y: auto; padding: 16px; align-items: center; justify-items: center; }
  .auth-card { width: calc(100vw - 32px); max-width: 420px; padding: 26px 20px; }
  .kpi .v { font-size: 24px; }
  .toast { font-size: 14.5px; padding: 12px 16px; }
  #toasts { bottom: calc(96px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); }
}
