@font-face { font-family: Oswald; src: url(/brand/Oswald.ttf) format('truetype'); font-weight: 200 700; font-display: swap; }

/* Yayla Nuts kurumsal paleti (Fiyat Defteri ile aynı) */
:root, [data-theme="gece"] {
  --bg: #0E1421; --side: #0B111C; --panel: #111827; --card: #151D2E; --bubble: #1C263A; --bubble-me: #26324A;
  --line: #293449; --hover: rgba(130,144,166,.12); --text: #E6ECF5; --text-2: #A8B4C7; --muted: #8290A6;
  --accent: #DD1E36; --accent-ink: #FF6B7D; --nuts: #E6ECF5; --send-bg: #E6ECF5; --send-fg: #0E1421;
  --toggle-off: #34405A; --shadow: 0 10px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}
[data-theme="koyu"] {
  --bg: #141414; --side: #0f0f0f; --panel: #171717; --card: #1e1e1e; --bubble: #262626; --bubble-me: #303030;
  --line: #2b2b2b; --hover: rgba(255,255,255,.07); --text: #ececec; --text-2: #b4b4b4; --muted: #8b8b8b;
  --accent: #DD1E36; --accent-ink: #FF6B7D; --nuts: #ececec; --send-bg: #ececec; --send-fg: #141414;
  --toggle-off: #3a3a3a; --shadow: 0 10px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}
[data-theme="gunduz"] {
  --bg: #FBF9F8; --side: #F7F4F3; --panel: #FFFFFF; --card: #FFFFFF; --bubble: #F0ECEA; --bubble-me: #E7E2E0;
  --line: #E7E2E0; --hover: rgba(32,26,26,.06); --text: #201A1A; --text-2: #4A4A4A; --muted: #8A8A8A;
  --accent: #DD1E36; --accent-ink: #A3122A; --nuts: #0E1421; --send-bg: #0E1421; --send-fg: #FFFFFF;
  --toggle-off: #D9D3D0; --shadow: 0 10px 40px rgba(32,26,26,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html[data-fs="kucuk"] { zoom: .92; } html[data-fs="buyuk"] { zoom: 1.1; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted); } ::-webkit-scrollbar-track { background: transparent; }
kbd { font: 11px/1 -apple-system, sans-serif; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; margin-left: 6px; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* Logo: Yayla | NUTS + Powered by */
.lockup { display: flex; align-items: center; gap: 10px; }
.lockup img { height: 22px; width: auto; display: block; }
.lockup i { width: 1px; height: 22px; background: var(--line); }
.lockup b { font: 500 21px/1 Oswald, sans-serif; letter-spacing: .06em; color: var(--nuts); }
.lockup-sub { margin-top: 7px; font-size: 9px; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.lockup.big img { height: 32px; } .lockup.big b { font-size: 30px; } .lockup.big i { height: 32px; }

/* Giriş */
.login { display: grid; place-items: center; height: 100%; }
.login form { display: grid; justify-items: center; gap: 14px; width: 320px; }
.login .lockup-sub { margin: -4px 0 18px; }
.login input { width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; outline: none; }
.login input:focus { border-color: var(--accent); }
.login button { width: 100%; padding: 12px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 600; }
.login-hint { margin: -6px 0 4px; color: var(--text-2); font-size: 14.5px; }
.login .link { width: auto; background: none; color: var(--muted); font-size: 13px; font-weight: 400; padding: 4px; }
.login .link:hover { color: var(--text); }
.login button:disabled { opacity: .6; }
.err { color: var(--accent-ink); margin: 0; min-height: 1.2em; font-size: 14px; }

/* Düzen */
.app { --sidew: 300px; display: grid; grid-template-columns: var(--sidew) 1fr; grid-template-rows: minmax(0, 1fr); height: 100%; height: 100dvh; overflow: hidden; }
.app > .side, .app > .chat, .app > .panel { min-height: 0; height: 100%; }
.app.panel-open { grid-template-columns: var(--sidew) 1fr 380px; }
.app.resizing { user-select: none; cursor: col-resize; } .app.resizing * { cursor: col-resize !important; }
.side-resizer { position: absolute; top: 0; bottom: 0; right: -4px; width: 8px; cursor: col-resize; z-index: 6; }
.side-resizer::after { content: ""; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: transparent; transition: .15s; }
.side-resizer:hover::after, .app.resizing .side-resizer::after { background: var(--accent); }
.app.rail { grid-template-columns: 96px 1fr !important; }
.app.rail.panel-open { grid-template-columns: 96px 1fr 380px !important; }

.ibtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--text-2); border: 1px solid var(--line); transition: .15s; }
.ibtn:hover { color: var(--text); background: var(--hover); }

/* ---------- Sol kenar ---------- */
.side { background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; position: relative; container-type: inline-size; container-name: kenar; }
.side-top { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 16px 8px 20px; gap: 10px; }
.side-top .brand { min-width: 0; flex: 1; }
.side-top .brand .lockup-sub { letter-spacing: .14em; font-size: 7.5px; }
.side-top .lockup img { height: 20px; } .side-top .lockup b { font-size: 19px; } .side-top .lockup i { height: 20px; }
.side-actions .ibtn { width: 36px; height: 36px; }
.side-actions { display: flex; gap: 8px; }
.mini-logo { display: none; height: 16px; }
.search { margin: 6px 18px 4px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; outline: none; }
.side-list { flex: 1; overflow-y: auto; padding: 8px 12px 12px; }
.av { border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; flex: none; position: relative; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center 22%; display: block; }
.av { aspect-ratio: 1; }
.av .ini { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; }
.star { position: absolute; right: -2px; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: #F59F00; border: 3px solid var(--side); display: grid; place-items: center; }
.star svg { width: 11px; height: 11px; fill: #fff; stroke: none; }
.main-card { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 6px auto 12px; padding: 12px 14px 10px; border-radius: 16px; width: max-content; min-width: 128px; transition: .15s; }
.main-card .av { width: 76px; height: 76px; font-size: 24px; }
.main-card .nm { font-size: 14px; }
.main-card.active, .main-card:hover { background: var(--card); }
.grp-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 10px; border-radius: 12px; text-align: left; transition: .12s; }
.row:hover { background: var(--hover); } .row.active { background: var(--card); }
.row .av { width: 42px; height: 42px; font-size: 14px; }
.row .tx { flex: 1; min-width: 0; }
.row .nm { display: block; font-size: 15px; line-height: 1.3; }
.row .pv { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .pv.typing { color: var(--accent-ink); }
.udot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.side-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 16px 20px; position: relative; border-top: 1px solid var(--line); background: var(--side); }
.me { min-width: 0; } .me-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { display: flex; align-items: center; gap: 12px; }
.me-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--text-2); border: 1px solid var(--line); font-size: 15px; }
.foot-actions { display: flex; gap: 8px; }
.only-rail { display: none; }
.menu { position: absolute; bottom: 68px; left: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); z-index: 20; display: grid; width: max-content; min-width: 230px; }
.menu button { white-space: nowrap; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu button { text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.menu button:hover { background: var(--hover); }
.side-list .sep { display: none; }

/* Daraltılmış ray */
.app.rail .brand .lockup, .app.rail .brand .lockup-sub, .app.rail .side-actions, .app.rail .me-name, .app.rail .search { display: none; }
.app.rail .mini-logo { display: block; margin: 6px auto 0; }
.app.rail .side-top { justify-content: center; padding: 16px 0 6px; }
.app.rail .side-list { padding: 6px 0; display: flex; flex-direction: column; align-items: center; }
.app.rail .main-card { min-width: 0; padding: 10px; margin: 6px auto 10px; }
.app.rail .main-card .av { width: 46px; height: 46px; font-size: 16px; }
.app.rail .main-card .nm, .app.rail .row .tx, .app.rail .grp-label { display: none; }
.app.rail .main-card .star { width: 20px; height: 20px; border-width: 2px; right: -4px; bottom: -2px; }
.app.rail .row { width: auto; padding: 8px; justify-content: center; position: relative; }
.app.rail .row .udot { position: absolute; right: 8px; bottom: 9px; width: 11px; height: 11px; border: 2px solid var(--side); }
.app.rail .side-list .sep { display: block; width: 56px; height: 1px; background: var(--line); margin: 4px 0 10px; }
.app.rail .side-foot { flex-direction: column-reverse; gap: 14px; padding: 12px 0 18px; }
.app.rail .foot-actions { flex-direction: column; }
.app.rail .only-rail { display: grid; }
.app.rail .foot-actions .ibtn { background: none; border: 0; }
.app.rail .menu { left: 84px; right: auto; bottom: 20px; }

/* ---------- Sohbet ---------- */
.chat { position: relative; display: flex; flex-direction: column; min-width: 0; height: 100%; }
.chat-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 16px 20px; pointer-events: none; }
.chat-top > * { pointer-events: auto; }
.pill { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); font-size: 16px; box-shadow: var(--shadow); }
.pill .av { width: 34px; height: 34px; font-size: 12px; }
.top-right { position: absolute; right: 20px; top: 16px; display: flex; gap: 8px; }
.ghost { padding: 9px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.ghost:hover { background: var(--hover); }
#shareIcon { display: none; }
.app.panel-open #shareBtn { display: none; } .app.panel-open #shareIcon { display: grid; }
#backBtn { position: absolute; left: 16px; top: 16px; }

.messages { flex: 1; overflow-y: auto; padding: 86px 28px 16px; }
.msgs-inner { max-width: 1000px; display: flex; flex-direction: column; gap: 18px; }
.app.panel-open .msgs-inner { max-width: 780px; }
.when { align-self: center; color: var(--muted); font-size: 13.5px; margin: 6px 0; }
.mwrap { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.mwrap.user { justify-content: flex-end; }
.mwrap.user .acts { order: -1; }
.msg { max-width: min(960px, 100%); padding: 16px 20px; border-radius: 22px; background: var(--bubble); font-size: 16.5px; line-height: 1.6; word-wrap: break-word; min-width: 0; }
.mwrap.user .msg { background: var(--bubble-me); max-width: 680px; }
.mcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: min(960px, 100%); }
.mwrap.user .mcol { align-items: flex-end; }
.files { display: flex; flex-wrap: wrap; gap: 8px; }
.fimg img { display: block; max-width: 280px; max-height: 220px; border-radius: 16px; border: 1px solid var(--line); object-fit: cover; }
.fcard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--bubble); min-width: 280px; max-width: 420px; }
.ficon { width: 44px; height: 52px; border-radius: 8px; background: var(--hover); display: grid; place-items: center; color: var(--muted); flex: none; }
.fmeta { flex: 1; min-width: 0; } .fmeta b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .fmeta small { color: var(--muted); }
.fdl { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); } .fdl:hover { background: var(--hover); color: var(--text); }
.attach-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; max-width: 260px; }
.chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; } .chip .ficon { width: 30px; height: 34px; } .chip .ficon svg { width: 16px; height: 16px; }
.chip .cn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chip button { color: var(--muted); width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.chip button svg { width: 14px; height: 14px; } .chip.loading { opacity: .55; }
.chat.drop::after { content: "Dosyayı bırakın"; position: absolute; inset: 12px; border: 2px dashed var(--accent); border-radius: 24px; display: grid; place-items: center; font-size: 18px; background: color-mix(in srgb, var(--bg) 80%, transparent); z-index: 30; }
.quick .qsep { height: 1px; background: var(--line); margin: 4px 6px; } .quick .qa { font-weight: 500; }
.msg.error { box-shadow: inset 0 0 0 1px var(--accent); }
.msg p { margin: 0 0 12px; } .msg p:last-child { margin: 0; }
.msg ul { margin: 0 0 12px; padding-left: 22px; } .msg ul:last-child { margin-bottom: 0; }
.msg li { margin: 3px 0; } .msg li.num { list-style: none; margin-left: -18px; } .msg li.sub { margin-left: 18px; list-style: circle; }
.msg h4 { margin: 14px 0 6px; font-size: 16.5px; } .msg h4:first-child { margin-top: 0; }
.msg .label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.msg .meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.step { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--hover); color: var(--text-2); }
.event { align-self: center; color: var(--muted); font-size: 13.5px; }
.acts { display: flex; gap: 4px; opacity: 0; transition: .12s; flex: none; }
.mwrap:hover .acts { opacity: 1; }
.acts button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.acts button:hover { background: var(--hover); color: var(--text); }
.acts svg { width: 18px; height: 18px; }
.typing { color: var(--muted); font-size: 14px; padding: 2px 6px; display: flex; gap: 6px; align-items: center; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.empty { margin: 16vh auto 0; text-align: center; color: var(--muted); max-width: 440px; display: grid; justify-items: center; gap: 10px; }
.empty .av { width: 84px; height: 84px; font-size: 28px; }
.empty b { color: var(--text); font-size: 18px; font-weight: 500; }

/* Alt bölüm */
.bottom { padding: 0 28px 20px; display: grid; gap: 12px; }
.bottom > * { max-width: 1000px; width: 100%; }
.app.panel-open .bottom > * { max-width: 780px; }
#notice:empty, #approvals:empty { display: none; }
#approvals { display: grid; gap: 10px; }
.notice { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 16px; position: relative; }
.notice .h { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.notice .h svg { color: var(--muted); }
.notice .s { color: var(--muted); margin: 4px 0 0 32px; font-size: 15px; }
.notice .x { position: absolute; right: 16px; top: 16px; color: var(--muted); }
.notice .acts2 { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.btn { padding: 9px 18px; border-radius: 999px; background: var(--hover); font-size: 15px; }
.btn.primary { background: var(--send-bg); color: var(--send-fg); }
.approval { background: var(--card); border: 1px dashed var(--line); border-radius: 18px; padding: 14px 18px; }
.approval .h { font-size: 13px; color: var(--muted); }
.approval pre { white-space: pre-wrap; font: inherit; font-size: 15px; margin: 8px 0 12px; max-height: 180px; overflow: auto; }
.approval .row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.composer { position: relative; display: flex; align-items: flex-end; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 8px 8px 8px 10px; }
.composer textarea { flex: 1; border: 0; outline: 0; resize: none; background: none; color: var(--text); font: inherit; font-size: 16.5px; padding: 7px 0; max-height: 220px; }
.composer textarea::placeholder { color: var(--muted); }
.cbtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); background: var(--hover); flex: none; }
.cbtn:hover { color: var(--text); }
.cbtn.mic { background: none; } .cbtn.mic.on { color: var(--accent); background: var(--hover); }
.send { width: 40px; height: 40px; border-radius: 50%; background: var(--send-bg); color: var(--send-fg); display: grid; place-items: center; flex: none; }
.send svg { stroke-width: 2.4; }
.send:disabled { opacity: .35; }
.quick { position: absolute; bottom: 58px; left: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); display: grid; min-width: 300px; z-index: 10; }
.quick button { text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; }
.quick button:hover { background: var(--hover); }

/* ---------- Sağ panel ---------- */
.panel { background: var(--panel); border-left: 1px solid var(--line); overflow-y: auto; padding: 22px 22px 30px; position: relative; display: none; }
.app.panel-open .panel { display: block; }
.close { position: absolute; right: 18px; top: 16px; }
.p-head { text-align: center; padding-top: 44px; }
.p-head .av { width: 92px; height: 92px; font-size: 30px; margin: 0 auto 14px; }
.p-head .nm { font-size: 22px; }
.p-head .rl { color: var(--muted); font-size: 13.5px; margin: 6px 12px 0; }
.tabs { display: flex; justify-content: center; gap: 4px; margin: 18px 0 8px; }
.tab { padding: 6px 14px; border-radius: 12px; color: var(--muted); font-size: 16px; }
.tab.active { background: var(--card); color: var(--text); }
.panel h3 { font-weight: 400; color: var(--muted); font-size: 16px; margin: 26px 4px 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 6px 0; }
.sch { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.sch .clock { color: var(--muted); flex: none; }
.sch .t { flex: 1; min-width: 0; }
.sch .t b { font-weight: 400; display: block; font-size: 15.5px; }
.sch .t small { color: var(--muted); font-size: 14px; }
.sch .run { color: var(--muted); width: 28px; height: 28px; border-radius: 50%; place-items: center; flex: none; display: none; }
.sch:hover .run { display: grid; }
.sch .run:hover { background: var(--hover); color: var(--text); }
.sch .run svg { width: 14px; height: 14px; fill: currentColor; }
.sw { appearance: none; -webkit-appearance: none; width: 52px; height: 30px; border-radius: 999px; background: var(--toggle-off); position: relative; cursor: pointer; flex: none; transition: .18s; margin: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sw:checked { background: var(--accent); }
.sw:checked::after { left: 25px; }
.muted-row { color: var(--muted); font-size: 14px; padding: 10px 18px; }
.row-card { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.row-card .t { font-size: 15.5px; } .row-card .s { color: var(--muted); font-size: 14px; }
.pc-card { cursor: pointer; } .pc-card.busy .s { color: var(--accent-ink); }
.pc-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12px; }
.pc-thumb { overflow: hidden; } .pc-thumb { width: 110px; height: 68px; border-radius: 12px; background: linear-gradient(135deg, #3a3f4b, #23272f); display: grid; place-items: center; position: relative; color: #9aa3b2; }
.pc-thumb span { width: 36px; height: 36px; border-radius: 50%; background: #555c69; display: grid; place-items: center; font-size: 12px; letter-spacing: 2px; }
.pc-thumb i { position: absolute; right: 12px; top: 4px; font-size: 10px; font-style: normal; }
.kv { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; font-size: 15.5px; }
.kv select, .acard select { appearance: none; -webkit-appearance: none; padding-right: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238290A6' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center; }
.kv select { background: none; border: 0; color: var(--text-2); font: inherit; font-size: 15px; text-align: right; cursor: pointer; outline: none; }
.lib { display: grid; gap: 8px; }
.lib > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; white-space: pre-wrap; }
.lib small { color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: var(--toggle-off); overflow: hidden; margin: 8px 0; }
.bar i { display: block; height: 100%; background: var(--accent); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--send-bg); color: var(--send-fg); padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 50; box-shadow: var(--shadow); }
.only-mobile { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .app, .app.rail, .app.panel-open, .app.rail.panel-open { grid-template-columns: 1fr !important; }
  .side-resizer { display: none; }
  .side { position: fixed; inset: 0; z-index: 15; border: 0; }
  .app.in-chat .side { display: none; }
  .app.rail .brand .lockup, .app.rail .side-actions, .app.rail .me-name, .app.rail .row .tx, .app.rail .main-card .nm, .app.rail .grp-label { display: revert; }
  .panel { position: fixed; inset: 0; z-index: 20; }
  .only-mobile { display: grid; }
  .messages { padding: 80px 14px 12px; }
  .bottom { padding: 0 12px 14px; }
  .top-right { right: 12px; }
  #shareBtn { display: none !important; } #shareIcon { display: grid; }
  .msg { font-size: 16px; padding: 14px 16px; }
  .side-top { padding: 14px 14px 4px 18px; }
  .row { padding: 6px 8px; } .row .av { width: 40px; height: 40px; }
  .main-card .av { width: 64px; height: 64px; font-size: 21px; } .main-card { min-width: 112px; }
  .side-list { padding: 4px 10px 10px; }
}

/* Büyük görüntü */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.8); display: grid; place-items: center; gap: 10px; padding: 30px; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox .cap { color: #ddd; font-size: 13px; }

/* ---------- Ayarlar ---------- */
.settings { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 24px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.set-win { position: relative; width: min(980px, 100%); height: min(720px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; display: grid; grid-template-columns: 230px 1fr; overflow: hidden; box-shadow: var(--shadow); }
.set-nav { background: var(--side); border-right: 1px solid var(--line); padding: 22px 12px; }
.set-title { font-size: 20px; padding: 0 12px 14px; }
.set-nav nav { display: grid; gap: 2px; }
.set-nav button { text-align: left; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-size: 15px; }
.set-nav button:hover { background: var(--hover); } .set-nav button.on { background: var(--card); color: var(--text); }
.set-body { overflow-y: auto; padding: 26px 32px 40px; }
.set-body h2 { font-weight: 500; font-size: 22px; margin: 0 0 18px; }
.set-close { position: absolute; right: 16px; top: 16px; }
.sdesc { color: var(--muted); font-size: 14px; margin: -8px 0 18px; }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.srow b { font-weight: 400; display: block; } .srow small { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.muted { color: var(--muted); font-size: 14px; }
.sblock { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; } .sblock > b { font-weight: 400; } .sblock small { color: var(--muted); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; flex: none; }
.seg button { padding: 6px 12px; border-radius: 9px; font-size: 14px; color: var(--text-2); } .seg button.on { background: var(--bubble); color: var(--text); }
.temalar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tema { display: grid; gap: 8px; justify-items: center; padding: 10px; border-radius: 14px; border: 2px solid transparent; font-size: 13.5px; color: var(--text-2); }
.tema.on { border-color: var(--accent); color: var(--text); }
.tprev { width: 100%; height: 66px; border-radius: 10px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.tprev i { position: absolute; left: 12px; right: 30%; height: 12px; border-radius: 6px; background: var(--a); top: 14px; }
.tprev i + i { top: 34px; left: 40%; right: 12px; background: var(--b); }
.acard { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.aleft { display: grid; justify-items: center; align-content: start; gap: 8px; }
.avedit { position: relative; cursor: pointer; } .avedit .av { width: 88px; height: 88px; font-size: 28px; }
.avcam { position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; display: grid; place-items: center; opacity: 0; transition: .15s; }
.avedit:hover .avcam { opacity: 1; }
.lnk { color: var(--muted); font-size: 12.5px; } .lnk:hover { color: var(--text); }
.aright { display: grid; gap: 10px; min-width: 0; }
.aright label, .rbody label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.aright label small { font-size: 12px; }
.aright input, .aright select, .aright textarea, .rbody input, #budgetIn { font: inherit; font-size: 14.5px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; outline: none; width: 100%; }
.aright textarea { resize: vertical; min-height: 64px; }
.aright input:focus, .aright textarea:focus, .aright select:focus { border-color: var(--accent); }
.frow { display: grid; grid-template-columns: 1fr 170px; gap: 10px; }
.arow { display: flex; justify-content: space-between; align-items: center; } .arow .grp { font-size: 12px; color: var(--muted); }
.rcard { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; background: var(--card); }
.rhead { display: flex; align-items: center; gap: 12px; } .rhead .av { width: 38px; height: 38px; font-size: 13px; }
.rhead > div { flex: 1; min-width: 0; } .rhead b { font-weight: 400; display: block; } .rhead small { color: var(--muted); font-size: 13px; }
.rbody { display: flex; align-items: end; gap: 12px; margin-top: 10px; padding-left: 50px; } .rbody label { width: 120px; }
.urow { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.inl { display: flex; gap: 8px; align-items: center; } #budgetIn { width: 90px; }
.btn.danger { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.about { padding: 10px 0 20px; }
@media (max-width: 860px) {
  .settings { padding: 0; } .set-win { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; border-radius: 0; }
  .set-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 10px 8px; } .set-nav nav { display: flex; overflow-x: auto; }
  .set-nav button { white-space: nowrap; } .set-title { padding: 0 8px 8px; }
  .set-body { padding: 18px 16px 40px; } .temalar { grid-template-columns: repeat(2, 1fr); } .acard { grid-template-columns: 1fr; } .frow { grid-template-columns: 1fr; }
  .srow { flex-wrap: wrap; }
}

/* ---------- Bot'un bilgisayarı: devralma ---------- */
.pcm { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 20px; }
.pcm-win { width: min(1320px, 100%); max-height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.pcm-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pcm-bar .ibtn { width: 34px; height: 34px; flex: none; }
.pcm-url { flex: 1; } .pcm-url input { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; outline: none; }
.pcm-url input:focus { border-color: var(--accent); }
.pcm-screen { position: relative; background: #000; aspect-ratio: 1280 / 800; margin: 0 auto; width: 100%; max-height: calc(100vh - 160px); outline: none; display: grid; place-items: center; }
.pcm-screen img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
.pcm.taken .pcm-screen { cursor: pointer; box-shadow: inset 0 0 0 3px var(--accent); }
.pcm.taken .pcm-screen:focus { box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 0 transparent; }
.pcm-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0,0,0,.72); color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 999px; pointer-events: none; }
.pcm.taken .pcm-hint { display: none; }
.pcm-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pcm-keys { display: none; gap: 6px; } .pcm.taken .pcm-keys { display: flex; flex-wrap: wrap; }
.pcm-keys button { font-size: 12px; padding: 4px 9px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-2); } .pcm-keys button:hover { background: var(--hover); }
#pcTake.danger { background: var(--accent); color: #fff; }
.pc-take-row { display: flex; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 860px) { .pcm { padding: 0; } .pcm-win { border-radius: 0; height: 100%; } .pcm-screen { max-height: none; } }
.pcm-kb { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; resize: none; pointer-events: none; }
.pcm.taken .pcm-screen:focus-within { box-shadow: inset 0 0 0 3px var(--accent); }

/* Dar kenar çubuğu: logo ile düğmeler çakışmasın — düğmeler logonun altına iner */
@container kenar (max-width: 300px) {
  .side-top { flex-direction: column; align-items: stretch; gap: 8px; }
  .side-actions { justify-content: flex-end; margin-top: -4px; }
  .side-top .brand .lockup-sub { letter-spacing: .1em; }
}
@container kenar (max-width: 250px) { .side-top .brand .lockup-sub { display: none; } }

/* =====================================================================
   iPhone Duo (iç ekran açık): liste solda, sohbet sağda — Fiyat Defteri ile aynı mantık.
   Kapalıyken (dış ekran) normal telefon düzeni kullanılır. Menteşe bilgisi varsa bölme ona oturur.
   ===================================================================== */
.app.duo, .app.duo.rail, .app.duo.panel-open, .app.duo.rail.panel-open { grid-template-columns: var(--duo-left, 42%) minmax(0, 1fr) !important; }
.app.duo { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.app.duo .side, .app.duo.in-chat .side { position: relative; inset: auto; display: flex !important; z-index: auto; border-right: 1px solid var(--line); }
.app.duo .side-resizer, .app.duo #backBtn { display: none !important; }
.app.duo .side-top { padding-top: max(16px, env(safe-area-inset-top)); }
.app.duo .side-foot { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
/* Dar ray modu Duo'da kullanılmaz: liste her zaman isim ve önizlemeli */
.app.duo.rail .brand .lockup, .app.duo.rail .side-actions, .app.duo.rail .me-name, .app.duo.rail .row .tx,
.app.duo.rail .main-card .nm, .app.duo.rail .grp-label, .app.duo.rail .search { display: revert; }
.app.duo.rail .row { width: 100%; justify-content: flex-start; }
.app.duo.rail .side-list { display: block; padding: 4px 10px 10px; }
/* Dokunmatik: daha büyük dokunma alanları */
.app.duo .row { padding: 9px 10px; min-height: 58px; } .app.duo .row .av { width: 44px; height: 44px; }
.app.duo .ibtn { width: 40px; height: 40px; }
.app.duo .acts { opacity: 1; } .app.duo .acts button { width: 36px; height: 36px; }
.app.duo .chat-top { padding-top: max(14px, env(safe-area-inset-top)); }
.app.duo .messages { padding: 78px 20px 14px; }
.app.duo .bottom { padding: 0 16px max(14px, env(safe-area-inset-bottom)); }
.app.duo .top-right { right: 14px; }
/* Agent paneli: sohbetin üstüne çekmece */
.app.duo .panel { display: block; position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: min(380px, calc(100vw - var(--duo-left-px, 40vw))); z-index: 25;
  transform: translateX(105%); transition: transform .25s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow); padding-top: max(22px, env(safe-area-inset-top)); }
.app.duo.panel-open .panel { transform: none; }
.app.duo #shareBtn { display: none !important; } .app.duo #shareIcon { display: grid; }
