/* Düşünme Ortamı — teknik şema estetiği (mono, hairline, köşe işaretleri) */
:root {
  --bg: #f2f2ef; --ink: #14161a; --ink-soft: #6a7078; --hair: #c9cdd2; --hair-soft: #e2e5e8;
  --paper: #ffffff; --accent: #14161a;
  --red: #c9503c; --yellow: #b8902a; --green: #4f8a5e;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "IBM Plex Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--canvas, var(--bg)); color: var(--ink);
  font-family: var(--mono); font-size: 13px; letter-spacing: .01em; transition: background .8s linear; }
button { font: inherit; font-family: var(--mono); cursor: pointer; }
[hidden] { display: none !important; }

/* ---- 1. Ana ekran ---- */
#start { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 12; transition: opacity .9s var(--ease); }
#start.leaving { opacity: 0; pointer-events: none; }
#start .intro { margin: 0 0 42px; max-width: min(660px, 86vw); text-align: center; color: #ffffff;
  font-size: 13.5px; line-height: 2; letter-spacing: .06em; opacity: 0; animation: introIn 1.4s var(--ease) .25s forwards; }
@keyframes introIn { to { opacity: .92; } }
#start textarea { width: min(660px, 86vw); border: none; background: transparent; resize: none; text-align: center;
  font-family: var(--mono); font-weight: 400; font-size: 22px; line-height: 1.5; letter-spacing: .04em; color: #e9e7e1; caret-color: #e9e7e1; outline: none; }
#start textarea::placeholder { color: #5d5d5a; }
#start .hint { margin-top: 22px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #55555a; opacity: 0; transition: opacity .6s; }
#start.has-text .hint { opacity: 1; }
.site-note { position: fixed; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 10px; line-height: 1.9;
  letter-spacing: .06em; color: #4e5257; padding: 0 22px; }
@media (max-width: 760px) { .site-note { font-size: 9.5px; bottom: 12px; } }

/* ---- Köşe tescil işaretleri ---- */
body::before, body::after { content: ""; position: fixed; width: 16px; height: 16px; z-index: 11; pointer-events: none; opacity: .5;
  border-color: var(--hair); }
body::before { left: 14px; top: 58px; border-left: 1px solid; border-top: 1px solid; }
body::after { right: 14px; bottom: 14px; border-right: 1px solid; border-bottom: 1px solid; }
body.dark-canvas::before, body.dark-canvas::after { border-color: #3a3d42; }

/* ---- 4. Üst çubuk ---- */
#topbar { position: fixed; top: 0; left: 0; right: 0; height: 40px; display: flex; align-items: center; gap: 0; padding: 0 14px;
  background: var(--canvas, var(--bg)); border-bottom: 1px solid var(--hair); z-index: 30; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .8s linear, border-color .8s linear, color .8s linear; }
#topbar .brand { color: var(--ink-soft); padding-right: 16px; border-right: 1px solid var(--hair); white-space: nowrap; }
@media (max-width: 1100px) { #topbar .brand { display: none; } #topbar .counters { margin-left: 0; } }
#topbar .counters { display: flex; gap: 0; margin-left: 16px; max-width: 26vw; }
#topbar .cnt { background: none; border: none; border-right: 1px solid var(--hair); color: var(--ink-soft);
  padding: 4px 14px; display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
#topbar .cnt:first-child { border-left: 1px solid var(--hair); }
#topbar .cnt.on, #topbar .cnt:hover { color: var(--ink); background: rgba(127,127,127,.09); }
#topbar .cnt b { font-weight: 400; color: var(--ink); }
#topbar .center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; height: 26px; border: 1px solid var(--hair); background: var(--canvas, var(--bg)); max-width: 46vw; }
#topbar .center button { border: none; border-right: 1px solid var(--hair); border-radius: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; padding: 0 11px; }
#topbar .center button:last-child { border-right: none; }
#topbar .root-q { max-width: 24vw; overflow: hidden; text-overflow: ellipsis; display: block !important; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; color: var(--ink); }
#topbar .center button:disabled { opacity: .35; cursor: default; }
#topbar .right { margin-left: auto; display: flex; gap: 6px; }
#topbar button:not(.cnt), .quiet { background: none; border: 1px solid var(--hair); color: var(--ink-soft); border-radius: 0;
  padding: 5px 10px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
#topbar button:not(.cnt):hover { color: var(--ink); border-color: var(--ink-soft); }
.quiet { border-color: transparent; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 0; }
.dot.closed { background: var(--red); } .dot.open { background: var(--yellow); } .dot.done { background: var(--green); }
body.dark-canvas #topbar { background: var(--canvas); border-bottom-color: #33363b; color: #b6bac0; }
body.dark-canvas #topbar .brand, body.dark-canvas #topbar .cnt { color: #7e838a; border-color: #33363b; }
body.dark-canvas #topbar .cnt b, body.dark-canvas #topbar .cnt.on, body.dark-canvas #topbar .cnt:hover { color: #e6e8ea; }
body.dark-canvas #topbar button:not(.cnt) { border-color: #3a3d42; color: #9aa0a7; }
body.dark-canvas #topbar .center { border-color: #3a3d42; }
body.dark-canvas #topbar .center button { border-right-color: #3a3d42; }
body.dark-canvas #topbar .root-q { color: #e6e8ea; }

/* ---- 2. Alan ---- */
#space { position: fixed; inset: 0; cursor: crosshair; }
#space.dragging { cursor: grabbing; }
#world { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 0 0; transition: transform 1.1s var(--ease); }
#space.dragging #world { transition: none; }   /* sürüklerken gecikme olmasın */
#space.dragging .node { transition: none; }
#links, #nodes { position: absolute; left: 0; top: 0; overflow: visible; }
#links { pointer-events: none; z-index: 0; }
#nodes { z-index: 1; }
.link { fill: none; stroke: var(--line, var(--hair)); stroke-width: 1; transition: stroke .8s, opacity .8s; }
.link.far { stroke: var(--line-soft, var(--hair-soft)); }
.link.faint { stroke: var(--line-soft, var(--hair-soft)); opacity: .5; }
/* Aktif yol: kesikli çizgi merkeze doğru akar */
.link.path { stroke: var(--line-path, var(--ink)); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: 1; animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -9; } }
#space.dragging .link.path { animation: none; }
.wave { position: absolute; border-radius: 50%; border: 1px solid var(--line, var(--hair)); pointer-events: none;
  transform: translate(-50%, -50%) scale(0); opacity: .55; animation: ripple 1.8s var(--ease) forwards; }
/* Bekleme halkası: daha yavaş, biraz daha belirgin */
.wave.loop { border-color: var(--line-path, var(--line, var(--hair))); opacity: .6; animation: rippleLoop 2.1s cubic-bezier(.25,.6,.35,1) infinite; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes rippleLoop {
  0%   { transform: translate(-50%, -50%) scale(.06); opacity: 0; }
  12%  { opacity: .65; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* ---- 3/5. Kart ---- */
.node { position: absolute; --s: 1; --pop: 1; transform: translate(-50%, -50%) scale(calc(var(--s) * var(--pop))); background: var(--paper); border: 1px solid var(--hair); border-radius: 0;
  padding: 9px 26px 9px 11px; width: 236px; font-size: 12px; line-height: 1.45; color: var(--ink);
  cursor: pointer; user-select: none; opacity: 0;
  transition: transform 1s var(--ease), opacity .9s var(--ease), background .6s, border-color .6s, box-shadow .6s, left 1s var(--ease), top 1s var(--ease); }
.node, .node * { -webkit-font-smoothing: antialiased; }
.node.in { opacity: 1; }
.node.thought { background: var(--ink); color: #f2f2ef; border-color: var(--ink); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px; padding: 11px 16px; width: max-content; max-width: 260px; }
.node .state { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; }
.node .kicker { display: block; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; padding-right: 10px; }
.node .kicker .lens { color: var(--ink-soft); opacity: .75; }
.node .txt { display: block; }
/* Odak: köşe braketleri */
.node.f0 { --s: 1.18; border-color: var(--ink); z-index: 5; }
.node.f0::before, .node.f0::after { content: ""; position: absolute; width: 9px; height: 9px; border-color: var(--ink); }
.node.f0::before { left: -4px; top: -4px; border-left: 1px solid; border-top: 1px solid; }
.node.f0::after { right: -4px; bottom: -4px; border-right: 1px solid; border-bottom: 1px solid; }
.node.f1 { --s: 1; z-index: 3; }
.node.f2 { --s: .82; opacity: .85; z-index: 2; }
.node.f3 { --s: .68; opacity: .5; z-index: 1; }
.node.dim { opacity: .14; }
.node.f2 .txt, .node.f3 .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.f2:hover .txt, .node.f3:hover .txt { white-space: normal; }
.node.f2 .kicker, .node.f3 .kicker { display: none; }
.node.f2:hover .kicker, .node.f3:hover .kicker { display: block; }
.node.linked { outline: 1px solid var(--ink); outline-offset: 2px; }
.node.bursting { transition: none; }
.node.bursting .acts { display: none; }
/* Kart altındaki işlem satırı: yüksekliği yumuşak açılır (ani büyüme olmasın) */
.node .acts { display: flex; gap: 0; max-height: 0; opacity: 0; overflow: hidden;
  margin-top: 0; padding-top: 0; border-top: 0 solid var(--hair-soft);
  transition: max-height .5s var(--ease), opacity .32s var(--ease) .06s, margin-top .5s var(--ease), padding-top .5s var(--ease); }
.node:hover .acts, .node.f0 .acts { max-height: 46px; opacity: 1; margin-top: 9px; padding-top: 7px; border-top-width: 1px; }
.node.f3 .acts, .node.bursting .acts { max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; border-top-width: 0; }
.node .acts button { background: none; border: none; border-right: 1px solid var(--hair-soft); color: var(--ink-soft);
  font-size: 8px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 6px; white-space: nowrap; }
.node .acts button.fav { margin-left: auto; padding-right: 0; }
.node .acts button:first-child { padding-left: 0; }
.node .acts button:last-child { border-right: none; padding-right: 0; }
.node .acts button:hover { color: var(--ink); }
.node .acts button.fav.on { color: var(--ink); }
.node.loading::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 6px; height: 6px; margin-left: -3px; background: var(--ink); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
body.dark-canvas .node { border-color: #b9bcc0; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
body.dark-canvas .node.thought { background: #f2f2ef; color: #14161a; border-color: #f2f2ef; }
body.dark-canvas .node.f0 { border-color: #fff; }
body.dark-canvas .node.f0::before, body.dark-canvas .node.f0::after { border-color: #fff; }
body.dark-canvas .node.linked { outline-color: #fff; }

/* ---- 8. Sağ panel: koyu yüzey, haritadan çift çizgi + iç gölge ile ayrılır ---- */
#panel { position: fixed; top: 40px; right: 0; bottom: 0; width: min(400px, 92vw); background: #0a0b0c; color: #e6e8ea;
  border-left: 1px solid #5c6167; box-shadow: -1px 0 0 #2a2d31, -18px 0 34px rgba(0,0,0,.55);
  display: flex; flex-direction: column; z-index: 25; transform: translateX(0); transition: transform .8s var(--ease); font-size: 12.5px; }
#panel::before { content: ""; position: absolute; left: -5px; top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, #5c6167 0 5px, transparent 5px 10px); }
#panel.closed { transform: translateX(105%); }
.panel-head { position: relative; padding: 16px 18px 12px; border-bottom: 1px solid #2f3338; }
.crumbs { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #8b9199; margin-bottom: 9px; line-height: 1.7; padding-right: 26px; }
.crumbs button { background: none; border: none; color: #8b9199; padding: 0; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; }
.crumbs button:hover { color: #fff; }
.crumbs .sep { margin: 0 5px; opacity: .5; }
.panel-q { font-size: 14px; line-height: 1.45; margin-bottom: 12px; color: #f2f3f4; }
#panelClose { position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border: 1px solid #3a3e44; background: none; color: #8b9199; font-size: 12px; line-height: 1; }
#panelClose:hover { color: #fff; border-color: #8b9199; }
.panel-ops { display: flex; flex-wrap: wrap; gap: 5px; }
.panel-ops button { background: none; border: 1px solid #3a3e44; border-radius: 0; padding: 5px 9px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #dfe2e5; }
.panel-ops button:hover { border-color: #e6e8ea; color: #fff; }
.panel-ops button:disabled { opacity: .4; cursor: default; }
#opDone.on { background: #e6e8ea; color: #0a0b0c; border-color: #e6e8ea; }
#thread { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; gap: 16px; }
.msg { line-height: 1.6; }
.msg .label { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #8b9199; margin-bottom: 7px; padding-bottom: 4px; border-bottom: 1px solid #2a2d31; }
.msg.user { align-self: flex-end; border: 1px solid #3a3e44; background: #14161a; padding: 7px 11px; max-width: 88%; }
.msg.ai p, .msg.block p { margin: 0 0 6px; white-space: pre-wrap; }
/* Daktilo: yazarken yanıp sönen blok imleç */
.msg.ai p.typing::after { content: "▌"; margin-left: 1px; color: #8b9199; animation: caret .9s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
/* Kaynaklar sırayla belirir */
.msg.sources.stagger .src { opacity: 0; animation: srcIn .5s var(--ease) forwards; }
.msg.sources.stagger .src:nth-child(2) { animation-delay: .05s; }
.msg.sources.stagger .src:nth-child(3) { animation-delay: .18s; }
.msg.sources.stagger .src:nth-child(4) { animation-delay: .31s; }
.msg.sources.stagger .src:nth-child(5) { animation-delay: .44s; }
.msg.sources.stagger .src:nth-child(6) { animation-delay: .57s; }
.msg.sources.stagger .src:nth-child(7) { animation-delay: .70s; }
@keyframes srcIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msg .note { color: #8b9199; font-size: 11.5px; }
/* Bekleme: akan üç nokta */
.msg.pending .dots { display: flex; gap: 6px; padding: 2px 0 4px; }
.msg.pending .dots i { width: 5px; height: 5px; background: #8b9199; display: block; animation: dotPulse 1.25s var(--ease) infinite; }
.msg.pending .dots i:nth-child(2) { animation-delay: .18s; }
.msg.pending .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dotPulse { 0%, 100% { opacity: .18; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.src { padding: 9px 0; border-top: 1px solid #23262a; }
.src:first-of-type { border-top: none; }
.src .kind { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #8b9199; margin-bottom: 2px; }
.src a { color: #eef0f2; text-decoration: none; border-bottom: 1px solid #4a4f55; }
.src a:hover { border-color: #eef0f2; }
.src .title { color: #eef0f2; line-height: 1.45; }
.src .sum { color: #9aa0a7; font-size: 11.5px; margin-top: 3px; line-height: 1.5; }
#chatForm { display: flex; gap: 6px; padding: 10px 18px; border-top: 1px solid #2f3338; animation: chatIn .45s var(--ease); }
#chatForm[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#chatForm textarea { flex: 1; resize: none; border: 1px solid #3a3e44; border-radius: 0; padding: 8px 10px; font-family: var(--mono); font-size: 12px; outline: none; max-height: 120px; background: #101215; color: #e6e8ea; }
#chatForm textarea::placeholder { color: #6a7078; }
#chatForm textarea:focus { border-color: #8b9199; }
#chatForm button { width: 34px; border: 1px solid #e6e8ea; background: #e6e8ea; color: #0a0b0c; border-radius: 0; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 7px 18px 10px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: #6f757c; }
.panel-foot .quiet { font-size: 9px; letter-spacing: .12em; padding: 2px 0; }
.panel-foot .quiet { color: #8b9199; }
.panel-foot .quiet:hover { color: #fff; }

/* ---- Favoriler: kitap ayracı şeridi ---- */
#favs { position: fixed; bottom: 64px; right: min(400px, 92vw); width: 170px; max-height: calc(100vh - 130px); z-index: 24;
  display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: 6px 0 2px 2px; scrollbar-width: thin; }
body:not(.panel-open) #favs { right: 0; }
#favs::-webkit-scrollbar { width: 4px; }
#favs::-webkit-scrollbar-thumb { background: #3a3e44; }
#favsList { margin-top: auto; display: flex; flex-direction: column; gap: 5px; }
#favsMore { position: sticky; top: 0; align-self: flex-end; margin-right: 6px; background: #101215; border: 1px solid #3a3e44; color: #9aa0a7;
  border-radius: 0; padding: 2px 8px; font-size: 9px; letter-spacing: .1em; z-index: 2; opacity: 0; transition: opacity .3s; pointer-events: none; }
#favsMore.on { opacity: 1; pointer-events: auto; }
.sticky { position: relative; background: #101215; border: 1px solid #3a3e44; border-right: none; border-radius: 0;
  padding: 7px 16px 7px 10px; font-size: 11px; line-height: 1.4; color: #dfe2e5; cursor: pointer;
  transform: translateX(10px); transition: transform .35s var(--ease), border-color .3s; }
.sticky:hover { transform: translateX(0); }
.sticky.sel { transform: translateX(0); border-color: #e6e8ea; }
.sticky.current { border-left: 3px solid #e6e8ea; }
.sticky .rm { position: absolute; top: 1px; right: 3px; border: none; background: none; color: #7c828a; font-size: 11px; line-height: 1; padding: 2px 4px; opacity: 0; transition: opacity .3s; }
.sticky:hover .rm, .sticky.sel .rm { opacity: 1; }
.sticky .rm:hover { color: #fff; }
.sticky .meta { display: block; font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #7c828a; margin-bottom: 3px; }
.sticky .txt2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sticky.sel .txt2 { -webkit-line-clamp: 4; }
.sticky .ops { display: flex; gap: 0; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; padding-top: 0; border-top: 0 solid #2a2d31;
  transition: max-height .4s var(--ease), opacity .28s var(--ease) .05s, margin-top .4s var(--ease), padding-top .4s var(--ease); }
.sticky.sel .ops { max-height: 30px; opacity: 1; margin-top: 7px; padding-top: 5px; border-top-width: 1px; }
.sticky .ops button { background: none; border: none; border-right: 1px solid #2a2d31; color: #8b9199; font-size: 11px; line-height: 1; padding: 1px 8px; }
.sticky .ops button:first-child { padding-left: 0; }
.sticky .ops button:last-child { border-right: none; }
.sticky .ops button:hover { color: #fff; }
#favs.dense .sticky { padding: 5px 16px 5px 10px; }
#favs.dense .sticky .txt2 { -webkit-line-clamp: 1; }
#favs.dense .sticky .meta { display: none; }
#favs.dense .sticky.sel .txt2 { -webkit-line-clamp: 4; }
#favs.dense .sticky.sel .meta { display: block; }

/* ---- Mini harita ---- */
#minimap { position: fixed; left: 14px; top: 54px; width: 160px; height: 120px; background: var(--paper); border: 1px solid var(--hair); border-radius: 0; z-index: 26; cursor: crosshair;
  transition: background .8s linear, border-color .8s linear; }
body.dark-canvas #minimap { background: #191b1e; border-color: #3a3d42; }

/* ---- Yazdırma: yalnızca konuşma ---- */
@media print {
  body { overflow: visible; background: #fff; }
  body::before, body::after, #start, #topbar, #space, #minimap, #favs, #chatForm, .panel-ops, .panel-foot { display: none !important; }
  #panel { position: static; width: auto; border: none; transform: none; background: #fff; color: #000; box-shadow: none; }
  #panel::before { display: none; }
  #thread a, .panel-q, .msg .label, .src .kind, .src .sum, .msg .note { color: #000 !important; }
  #thread { overflow: visible; }
}

/* ================= MOBİL ================= */
@media (max-width: 760px) {
  html, body { font-size: 12.5px; }
  #space { touch-action: none; }            /* sayfa kaymasın, harita kaysın */

  /* Üst çubuk: tek satıra sığsın */
  #topbar { height: 38px; padding: 0 8px; gap: 8px; }
  #topbar .brand { display: none; }
  #topbar .counters { margin-left: 0; max-width: none; }
  #topbar .cnt { padding: 4px 8px; font-size: 9.5px; letter-spacing: .04em; }
  #topbar .cnt span.lbl { display: none; }   /* yalnız nokta + sayı */
  #topbar .center { position: static; transform: none; height: 24px; margin-left: auto; max-width: 52vw; }
  #topbar .center button { padding: 0 8px; font-size: 9px; }
  #topbar .root-q { max-width: 30vw; font-size: 9px; }
  #topbar .right { margin-left: 4px; }
  #topbar .right button { padding: 4px 7px; font-size: 9px; }

  /* Mini harita: küçük ekranda yer kaplamasın */
  #minimap { width: 92px; height: 68px; left: 8px; top: 44px; opacity: .85; }

  /* Kartlar: ekrana göre dar, dokunmatikte işlemler hep açık */
  .node { width: 208px; font-size: 12px; padding: 8px 22px 8px 10px; }
  .node.f0 { --s: 1.1; }
  .node .acts { max-height: 44px; opacity: 1; margin-top: 7px; padding-top: 6px; border-top-width: 1px; }
  .node.f2 .acts, .node.f3 .acts { max-height: 0; opacity: 0; margin-top: 0; padding-top: 0; border-top-width: 0; }
  .node .acts button { font-size: 9px; padding: 3px 6px; }
  /* Favori: mobilde yalnız simge (etiket kırpılmasın) */
  .node .acts button.fav { font-size: 0; padding-right: 2px; }
  .node .acts button.fav::after { content: "□"; font-size: 11px; }
  .node .acts button.fav.on::after { content: "■"; }
  /* "Yeni alan" mobilde tek simge */
  #topbar .right button { font-size: 0; padding: 5px 8px; }
  #topbar .right button::after { content: "⟲"; font-size: 13px; }

  /* Panel: tam ekran üstüne gelir */
  #panel { top: 38px; width: 100vw; border-left: none; box-shadow: none; }
  #panel::before { display: none; }
  .panel-head { padding: 12px 14px 10px; }
  #thread { padding: 12px 14px; }
  #chatForm { padding: 10px 14px; }
  .panel-foot { padding: 6px 14px 10px; }

  /* Favori şeridi mobilde kapalı (panel tam ekran) */
  #favs { display: none; }

  /* Başlangıç ekranı */
  #start .intro { font-size: 12px; line-height: 1.85; margin-bottom: 28px; padding: 0 22px; }
  #start textarea { font-size: 19px; }

  body::before, body::after { display: none; }
}

/* Dokunmatik zoom düğmeleri (yalnız mobil) */
#zoomBtns { position: fixed; right: 10px; bottom: 12px; z-index: 27; display: none; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { #zoomBtns { display: flex; } body.panel-open #zoomBtns { display: none; } }
#zoomBtns button { width: 34px; height: 34px; border: 1px solid #3a3e44; background: rgba(20,20,22,.9); color: #d8dade; font-size: 15px; line-height: 1; border-radius: 0; }
#zoomBtns button:active { background: #23262a; }
