/* ---------- Terminal ---------- */
.term-shell { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.term-tabs { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bar-bg); overflow-x: auto; min-height: 50px; scrollbar-width: none; flex: none; }
.term-tabs::-webkit-scrollbar { display: none; }
/* sekme şeridi kendi içinde yatay kayar; sağdaki araç çubuğu (.tg-right) ve Yeni/Terminaller düğmeleri sabit kalır */
.term-tabs { overflow: hidden; }
.tt-scroll { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.tt-scroll::-webkit-scrollbar { display: none; }
.tt-scroll.mob { display: contents; }
.term-tabs > * { flex-shrink: 0; }
.term-tabs > .tt-scroll { flex-shrink: 1; min-width: 120px; }
.term-tabs { container-type: inline-size; }
/* bar dar kalınca araç düğmelerinin yazıları gizlenir (yalnız simge): sekme şeridine yer açılır */
@container (max-width: 1250px) { .tg-right .btn > span.hide-m { display: none; } }
@media (max-width: 820px) { .term-tabs { padding-top: max(8px, env(safe-area-inset-top)); gap: 2px; } }
.tab-dev { display: inline-flex; align-items: center; gap: 2px; font-size: var(--fs-12); color: var(--accent); background: rgba(var(--accent-rgb),.12); border-radius: 99px; padding: 0 6px; }
.term-tabs .btn.on { background: rgba(var(--accent-rgb),.15); color: var(--text-strong); }
.dot.pending { background: var(--warn); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.term-bcast { flex: none; padding: 6px 14px; font-size: var(--fs-12); background: rgba(251,191,36,.12); color: #fcd34d; border-bottom: 1px solid rgba(251,191,36,.3); }
.term-body { flex: 1; display: flex; min-height: 0; position: relative; }
.term-stage { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--term-bg, #070b18); position: relative; }
.panes { flex: 1; min-height: 0; display: flex; }
.term-stage.split .panes { gap: 2px; background: var(--line); }
.term-pane { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; background: var(--term-bg, #070b18); }
.term-pane.focused { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.45); }
/* Klavye odak halkası: terminal girdi alanı odaktayken pano 2 px vurgu çerçevesi alır (içeri doğru; xterm çizimine dokunmaz) */
.term-pane:has(.xterm-helper-textarea:focus-visible) { box-shadow: inset 0 0 0 2px var(--accent); }
.tour .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* content-box: xterm FitAddon satır/sütunu üst kutunun HESAPLANAN yüksekliğinden bulur; border-box'ta iç boşluk (12 px / 14 px) içeride
   sayılıp bir satır ve 1-2 sütun fazla hesaplanıyor, son satır pencerenin altında yarım kesiliyordu (11 Kas ekran görüntüsü). */
.term-el { flex: 1; min-height: 0; padding: 8px 4px 4px 10px; overflow: hidden; box-sizing: content-box; }
.term-el .xterm { height: 100%; }
.term-el .xterm-viewport { scrollbar-width: thin; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.term-el .xterm .xterm-screen { touch-action: pan-y; }
.term-banner { position: absolute; left: 12px; right: 12px; top: 10px; z-index: 4; display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-height: 44px; border-radius: var(--r-md); font-size: var(--fs-13); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); animation: pop var(--dur-2) var(--ease); flex-wrap: wrap; }
.term-banner span:not(.spin) { flex: 1; min-width: 160px; }
.term-banner.warn { background: rgba(60,45,10,.95); border: 1px solid rgba(251,191,36,.45); color: #fde68a; }
.term-banner.end { top: auto; bottom: 12px; background: rgba(17,24,48,.97); border: 1px solid var(--line-2); color: var(--text); }
.term-search { position: absolute; top: 8px; right: 16px; z-index: 5; display: flex; gap: 4px; align-items: center; padding: 5px; border-radius: 11px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.term-search .input { width: 200px; }
.term-size-hint { position: absolute; right: 14px; bottom: 10px; z-index: 3; border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--muted); font-size: var(--fs-12); padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.term-size-hint:hover { color: var(--text); }
.term-jump { position: absolute; right: 14px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px 0 10px; border-radius: 99px; border: 1px solid rgba(var(--accent-rgb),.5); background: var(--panel-solid); color: var(--text-strong); font: 600 var(--fs-12) var(--sans); box-shadow: 0 8px 22px -8px rgba(0,0,0,.7); cursor: pointer; animation: pop .15s; touch-action: manipulation; font-variant-numeric: tabular-nums; }
.term-thumb { position: absolute; right: 2px; z-index: 3; width: 26px; display: flex; justify-content: center; touch-action: none; }
.term-thumb::before { content: ''; width: 6px; height: 100%; border-radius: 6px; background: rgba(var(--accent-rgb),.55); transition: width .12s, background .12s; }
.term-thumb.drag::before { width: 10px; background: var(--accent); }
.term-select { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: var(--term-bg, #070b18); }
.ts-bar { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--panel-solid); border-bottom: 1px solid var(--line-2); }
.ts-bar span { flex: 1; font-size: var(--fs-13); color: var(--muted); }
.ts-text { flex: 1; margin: 0; padding: 8px 10px; overflow: auto; font-family: JetBrains Mono, Cascadia Code, ui-monospace, Menlo, Consolas, monospace; line-height: 1.15; white-space: pre; color: var(--text); user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; overscroll-behavior: contain; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px; border-radius: 13px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .15s; }
.menu > button, .menu > a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; background: none; color: var(--text); font: var(--fs-13) var(--sans); border-radius: 8px; cursor: pointer; text-align: left; }
.menu > button:hover, .menu > a:hover { background: rgba(120,140,220,.12); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: var(--fs-13); color: var(--muted); }
.menu-row b { min-width: 22px; text-align: center; color: var(--text); }
.menu-row select { flex: 1; }
.cmd-side { width: 0; overflow: hidden; border-left: 1px solid var(--line); background: var(--panel-solid); transition: width .22s ease; display: flex; flex-direction: column; flex: none; }
.cmd-side.open { width: 310px; }
.cmd-list { flex: 1; overflow-y: auto; padding-bottom: 20px; overscroll-behavior: contain; }
.cmd-gh { display: flex; align-items: center; gap: 7px; padding: 8px 12px; cursor: pointer; font-weight: 600; font-size: var(--fs-12); color: var(--muted); user-select: none; }
.cmd-gh:hover { color: var(--text); }
.cmd-gh .sw { width: 8px; height: 8px; border-radius: 3px; }
.cmd-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px 7px 28px; cursor: pointer; font-size: var(--fs-13); border-radius: 8px; margin: 0 6px; }
.cmd-item:hover { background: rgba(var(--accent-rgb),.1); }
.cmd-item > div { flex: 1; min-width: 0; }
.key-bar { display: flex; gap: 5px; padding: 5px 6px; overflow-x: auto; background: var(--panel-solid); border-top: 1px solid var(--line); scrollbar-width: none; flex: none; overscroll-behavior-x: contain; }
.key-bar::-webkit-scrollbar { display: none; }
/* kaydırılabilir olduğu belli olsun: taşan kenarda tuşlar solar */
.key-bar.more-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 34px), rgba(0,0,0,.15)); mask-image: linear-gradient(to right, #000 calc(100% - 34px), rgba(0,0,0,.15)); }
.key-bar.more-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 34px), rgba(0,0,0,.15)); mask-image: linear-gradient(to left, #000 calc(100% - 34px), rgba(0,0,0,.15)); }
.key-bar.more-l.more-r { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.15), #000 34px, #000 calc(100% - 34px), rgba(0,0,0,.15)); mask-image: linear-gradient(to right, rgba(0,0,0,.15), #000 34px, #000 calc(100% - 34px), rgba(0,0,0,.15)); }
/* Terminal simge yedeği: JetBrains Mono'da ⏵ ⏺ ✻ ⎿ yok (Android 10'da sistem yedeği de yok → kutucuk). Yalnız simge aralıkları, gerektikçe indirilir */
@font-face { font-family: 'MoiSymbols'; src: url(/app/fonts/MoiSymbols2.woff2) format('woff2'); /* Noto Sans Symbols 2 (OFL), kullanılan aralıklara alt küme: 656 KB TTF → 163 KB */ font-display: swap;
  unicode-range: U+2190-21FF, U+2300-23FF, U+25A0-25FF, U+2600-27BF, U+2900-297F, U+2B00-2BFF, U+1F300-1FAFF; }
.key-bar button { flex: none; min-width: 40px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid transparent; background: var(--tint-2); color: var(--text); font: 600 var(--fs-13) var(--mono); touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .12s, transform .08s; }
.key-bar button.arrow { min-width: 44px; font-size: var(--fs-14); }
.key-bar button.kb-act { background: rgba(var(--accent-rgb),.13); color: var(--accent); display: grid; place-items: center; }
.key-bar button:active { transform: scale(.94); }
.key-bar button:active, .key-bar button.on { background: rgba(var(--accent-rgb),.3); border-color: rgba(var(--accent-rgb),.6); color: var(--text-strong); }
.composer textarea { min-height: 180px; font-size: var(--fs-14); }
/* Telefon yazma yuvası: öneri satırı + yazma çubuğu + tuşlar tek parça */
.tdock { flex: none; display: flex; flex-direction: column; }
.tdock.touch { position: relative; z-index: 2; gap: 6px; padding: 7px 8px 6px; margin-top: -1px; background: linear-gradient(180deg, var(--dock-hi), var(--panel-solid) 60%); border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px -18px rgba(0,0,0,.8); }
.tdock.touch .key-bar { padding: 0; margin: 0 -8px; padding: 0 8px; background: none; border: 0; }
.tdock.touch .key-bar button { height: 34px; }
/* Öneri satırı yalnız telefon klavyesi açıkken görünür (o sırada terminal boyutu dondurulmuştur, boyut değişmez) */
.tsug { display: none; align-items: center; gap: 4px; height: 32px; margin: -2px -4px 0; }
html.kb-open .tsug { display: flex; }
.tsug-ic { flex: none; width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--dim); touch-action: manipulation; }
.tsug-ic.on { color: var(--accent); }
.tsug-ic:active { background: var(--tint-2); }
.tsug-list { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 6px; 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); padding-right: 18px; }
.tsug-list::-webkit-scrollbar { display: none; }
.sg { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; max-width: 72vw; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); font: 600 var(--fs-12) var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; touch-action: manipulation; animation: sg-in .16s ease-out both; }
.sg svg { flex: none; opacity: .55; }
.sg:active { background: rgba(var(--accent-rgb),.22); }
.sg.sub, .sg.cmd { color: var(--accent); border-color: rgba(var(--accent-rgb),.3); }
.sg.fix { color: var(--warn); border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
.sg.fix span { font-family: var(--sans); opacity: .8; }
.sg.retry { color: var(--text-strong); border: 0; background: var(--grad); color: #0b1020; font-weight: 600; }
.sg.retry svg { opacity: .9; }
.sg.undo { color: var(--muted); border-style: dashed; }
.sg s { opacity: .7; }
.sg.key { min-width: 38px; justify-content: center; font-weight: 600; background: var(--tint-2); border-color: transparent; }
.sg-hint { color: var(--dim); font-size: var(--fs-12); padding-left: 4px; white-space: nowrap; }
@keyframes sg-in { from { opacity: 0; transform: translateY(3px); } }
.tin-bar { flex: none; display: flex; align-items: flex-end; gap: 6px; }
.tin-field { flex: 1; min-width: 0; display: flex; align-items: flex-start; min-height: 42px; border-radius: 15px; border: 1px solid var(--line-2); background: var(--term-bg, #070b18); transition: border-color .15s, box-shadow .15s; }
.tin-field:focus-within { border-color: rgba(var(--accent-rgb),.65); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.14); }
.tin-ctx { flex: none; width: 24px; padding-left: 8px; line-height: 40px; font: 700 var(--fs-14)/40px var(--mono); color: var(--accent); user-select: none; }
.tin-field.app .tin-ctx { color: var(--accent-2); }
.tin-box { flex: 1; min-width: 0; height: 40px; min-height: 40px; max-height: 110px; resize: none; padding: 10px 10px 10px 4px; border: 0; background: none; color: var(--text-strong); font-size: var(--fs-16); line-height: 1.25; outline: none; overflow-y: auto; white-space: pre; overflow-x: hidden; }
.tin-bar.line .tin-box { white-space: pre-wrap; }
.tin-box::placeholder { color: var(--dim); font-family: var(--sans); font-size: var(--fs-14); }
.tin-mode { flex: none; height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 15px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); font: 600 var(--fs-12) var(--sans); touch-action: manipulation; }
.tin-send { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--grad); color: #0b1020; touch-action: manipulation; box-shadow: 0 6px 16px -6px rgba(var(--accent-rgb),.7); transition: background .15s, color .15s, box-shadow .15s, transform .08s; }
.tin-send:active { transform: scale(.92); }
.tin-send.idle { background: var(--tint-2); color: var(--muted); box-shadow: none; }
.hist-list { max-height: 52vh; overflow-y: auto; margin: 0 -6px; overscroll-behavior: contain; }
.hist-row { display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 10px; }
.hist-row:hover { background: var(--tint); }
.hist-c { flex: 1; min-width: 0; text-align: left; padding: 9px 4px; border: 0; background: none; color: var(--text); font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.tset .opt-row { gap: 14px; }
@media (pointer: coarse) {
  /* Terminal yüzeyinde telefonun kendi seçim/kopyala balonu ve büyüteci çıkmasın (metin seçimi: basılı tut) */
  .term-el, .term-el * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  .term-el .xterm-helper-textarea { pointer-events: none; }
  /* Dokunma hedefi satır öğesi olmasın (26 Kas): DOM çizicide program ekranı yeniden çizince (Claude her tekerlekte çizer)
     dokunmanın başladığı satır öğesi silinir, kalan touchmove olayları terminale ulaşmaz → bir sürüklemede tek kaydırma.
     Hedef hep sabit .xterm-screen olur; bağlantı ve seçim koordinatla çalıştığı için etkilenmez. */
  .term-el .xterm-rows, .term-el .xterm-rows * { pointer-events: none; }
}
@media (max-width: 820px) {
  .cmd-side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 5; box-shadow: -20px 0 40px rgba(0,0,0,.5); }
  .cmd-side.open { width: min(88vw, 340px); }
  .term-shell { padding-bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
  .term-el { padding: 4px 2px 2px 6px; }
  .term-tabs { min-height: 44px; padding: 5px 6px; padding-top: max(5px, env(safe-area-inset-top)); }
  .term-tabs .btn.sm { height: 34px; min-width: 34px; }
  .term-el .xterm-viewport { scrollbar-width: none; }
  .term-el .xterm-viewport::-webkit-scrollbar { display: none; }
  .term-el .xterm .xterm-screen { touch-action: none; will-change: transform; }
  /* satır değişimi düzen/boyama hesabını terminal ekranıyla sınırlar (sayfanın geri kalanı yeniden hesaplanmaz) */
  .term-el .xterm .xterm-screen, .term-el .xterm .xterm-rows { contain: layout style paint; }
  /* Telefon klavyesi açıkken: alt menü gizlenir, terminal görünen alanın tamamını kullanır */
  html.kb-open, html.kb-open body { height: var(--vvh, 100%); }
  html.kb-open .bottom-nav { display: none; }
  html.kb-open .term-shell { padding-bottom: 0; }
  html.kb-open .content.flush { padding-bottom: 0; }
  .term-search { left: 8px; right: 8px; }
  .term-search .input { flex: 1; width: auto; }
  .menu { position: fixed; left: 10px; right: 10px; top: auto; bottom: calc(var(--bottom-nav) + 10px + env(safe-area-inset-bottom)); }
}

/* ---------- Dosyalar ---------- */
.files-content { position: relative; }
.fbar { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.path-form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.path-input { flex: 1; min-width: 0; }
.crumbs { display: flex; align-items: center; gap: 2px; font-size: var(--fs-13); min-width: 0; max-width: 45%; overflow: hidden; white-space: nowrap; flex: none; }
.crumbs a { color: var(--text); padding: 2px 4px; border-radius: 5px; }
.crumbs a:hover { background: rgba(120,140,220,.12); }
.bm-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.bm-row .chip { flex: none; color: var(--muted); } .bm-row .chip svg { color: var(--warn); }
.btn.on svg { color: var(--warn); }
.ftools { gap: 6px; }
.fsearch { position: relative; display: flex; align-items: center; } .fsearch svg { position: absolute; left: 9px; color: var(--dim); }
.fsearch .input { padding-left: 28px; width: 170px; }
.sel-bar { position: sticky; top: -14px; z-index: 6; display: flex; align-items: center; gap: 6px; padding: 8px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--panel-solid); border: 1px solid rgba(var(--accent-rgb),.45); box-shadow: var(--shadow-lg); animation: pop .15s; }
.fname { display: inline-flex; align-items: center; gap: 9px; color: var(--text); min-width: 0; max-width: 100%; }
.fname .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fname:hover { color: var(--accent); }
.fcell { max-width: 0; width: 60%; }
.fmeta { font-size: var(--fs-12); color: var(--dim); margin: 1px 0 0 26px; }
.fdir { color: #fbbf24; } .ffile { color: var(--muted); } .farc { color: #f472b6; } .fmed { color: #34d399; } .fcode { color: var(--accent); }
[data-theme="light"] .fdir { color: var(--warn); } [data-theme="light"] .fmed { color: var(--ok); } [data-theme="light"] .farc { color: #be185d; } /* açık kipte amber/pembe/yeşil beyaz üstünde okunmuyordu (jeton: durum renkleri) */
table.files td.ck, table.files th.ck { width: 34px; padding-right: 0; }
table.files tr.sel td { background: rgba(var(--accent-rgb),.09); }
table.files tbody tr { cursor: default; }
.drop-zone { position: fixed; inset: 16px; z-index: 30; border: 2px dashed var(--accent); border-radius: 20px; background: rgba(6,9,20,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--accent); pointer-events: none; animation: fade .12s; }
.search-res { max-height: 320px; overflow-y: auto; }
.res-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); }
.res-item:hover { background: rgba(120,140,220,.1); }
.ctx-menu { position: fixed; z-index: 85; min-width: 230px; padding: 6px; border-radius: 13px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: pop .12s; }
.ctx-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; color: var(--text); font: var(--fs-13) var(--sans); border-radius: 8px; cursor: pointer; text-align: left; }
.ctx-menu button:hover { background: rgba(120,140,220,.12); }
.ctx-menu button.danger { color: #fca5a5; }
.ctx-h { display: flex; align-items: center; gap: 8px; padding: 6px 10px 8px; font-weight: 600; font-size: var(--fs-13); color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ctx-menu.sheet { left: 0; right: 0; bottom: 0; top: auto; border-radius: 20px 20px 0 0; padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); animation: rise .2s; max-height: 80vh; overflow-y: auto; }
.ctx-menu.sheet button { padding: 12px; font-size: var(--fs-14); }
.sheet-bg { position: fixed; inset: 0; z-index: 84; background: rgba(3,5,12,.6); }
.picker { display: flex; flex-direction: column; gap: 8px; }
.picker-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.picker-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 9px; border: 0; background: none; color: var(--text); font: var(--fs-13) var(--sans); border-radius: 7px; cursor: pointer; text-align: left; }
.picker-item:hover { background: rgba(120,140,220,.1); }
.perm-grid { display: grid; grid-template-columns: 70px repeat(3, 1fr); gap: 8px 10px; align-items: center; font-size: var(--fs-12); }
.perm-grid b { color: var(--muted); font-weight: 600; font-size: var(--fs-12); }
.editor-full { position: fixed; inset: 0; z-index: 55; background: #212121; display: flex; flex-direction: column; animation: fade .15s; }
.ed-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); background: var(--panel-solid); border-bottom: 1px solid var(--line); }
.cm-host { flex: 1; min-height: 0; }
.cm-host .CodeMirror { height: 100%; font: var(--fs-13)/1.55 var(--mono); }
.ed-status { display: flex; gap: 14px; padding: 5px 12px; padding-bottom: max(5px, env(safe-area-inset-bottom)); background: var(--panel-solid); border-top: 1px solid var(--line); color: var(--muted); }
textarea.editor { flex: 1; border-radius: 0; font-size: var(--fs-13); line-height: 1.5; tab-size: 4; white-space: pre; resize: none; }
.preview-bg { position: fixed; inset: 0; z-index: 56; background: rgba(3,5,12,.94); display: flex; align-items: center; justify-content: center; animation: fade .15s; }
.preview-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); background: linear-gradient(rgba(0,0,0,.6), transparent); }
.preview-media { max-width: 94vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); background: #fff1; }
.preview-media.pdf { width: 92vw; height: 84vh; background: #fff; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: var(--fs-goster); cursor: pointer; }
.pv-nav.l { left: 12px; } .pv-nav.r { right: 12px; }
@media (max-width: 820px) {
  .fbar { padding: 8px; }
  .ftools .btn.sm { height: 34px; }
  .fsearch { order: 10; flex: 1 1 100%; } .fsearch .input { width: 100%; height: 36px; }
  .ftools .spacer { display: none; }
  .fcell { width: auto; }
  table.files td { padding: 10px 8px; }
  .sel-bar { top: -8px; padding: 8px; }
}

/* ---------- Aktarım paneli ---------- */
.xdock { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: min(380px, calc(100vw - 24px)); background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .2s; }
.xdock-h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: 0; background: rgba(var(--accent-rgb),.08); color: var(--text); font: var(--fs-13) var(--sans); cursor: pointer; }
.xdock-b { max-height: 46vh; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.xitem { padding: 9px 10px; border-radius: 10px; background: rgba(120,140,220,.06); display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-13); }
.progress > i.indet { width: 30% !important; animation: indet 1.2s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
/* aktarım paneli açıkken bildirimler panelin üstünde durur (main.js TransferDock --xdock-ust ölçer); yoksa 'Bitenleri temizle'yi örter */
:root[data-xdock] .toasts { bottom: calc(var(--xdock-ust) + 10px); }
@media (max-width: 820px) { .xdock { right: 12px; left: 12px; width: auto; bottom: calc(var(--bottom-nav) + 10px + env(safe-area-inset-bottom)); } }

/* ---------- Projeler ---------- */
.hero { background: linear-gradient(120deg, rgba(var(--accent-rgb),.12), rgba(167,139,250,.12) 60%, rgba(244,114,182,.08)); overflow: hidden; }
.hero-in { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tool-orbit { position: relative; width: 200px; height: 130px; transform-style: preserve-3d; perspective: 600px; }
.tool-orbit span { position: absolute; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font: 700 var(--fs-16) var(--sans); color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.3); animation: orbit 9s linear infinite; left: 78px; top: 43px; font-variant-numeric: tabular-nums; }
.tool-orbit span:nth-child(2) { animation-delay: -1.5s; } .tool-orbit span:nth-child(3) { animation-delay: -3s; }
.tool-orbit span:nth-child(4) { animation-delay: -4.5s; } .tool-orbit span:nth-child(5) { animation-delay: -6s; } .tool-orbit span:nth-child(6) { animation-delay: -7.5s; }
@keyframes orbit { from { transform: rotateY(0deg) translateZ(80px) rotateY(0deg); } to { transform: rotateY(360deg) translateZ(80px) rotateY(-360deg); } }
.tool-badge { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font: 700 var(--fs-14) var(--sans); color: #fff; flex: none; box-shadow: 0 8px 18px -8px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.3); font-variant-numeric: tabular-nums; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tool-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); cursor: pointer; background: var(--tint); transition: all .15s; }
.tool-card:hover { border-color: rgba(var(--accent-rgb),.5); }
.tool-card.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.1); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.15); }

/* ---------- Komut setleri ---------- */
.sets-layout { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.sets-layout > * { min-width: 0; }
.sets-layout .card-h { flex-wrap: wrap; }
@media (max-width: 820px) { .sets-layout { grid-template-columns: minmax(0, 1fr); } }
.sw-lg { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.cmd-row { display: flex; align-items: flex-start; gap: 6px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.term-host { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.term-host > .term-shell { flex: 1; }

/* ---------- Bağlantı şeridi ---------- */
.conn-banner { position: fixed; left: 50%; top: max(10px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; padding: 9px 14px; min-height: 44px; border-radius: var(--r-md); font-size: var(--fs-13); max-width: min(640px, calc(100vw - 20px)); box-shadow: 0 14px 40px -12px rgba(0,0,0,.7); animation: pop .2s; }
.conn-banner.warn { background: #3a2c0a; border: 1px solid rgba(251,191,36,.5); color: #fde68a; }
.conn-banner.bad { background: #3a1212; border: 1px solid rgba(248,113,113,.5); color: #fecaca; }
/* Yeni sürüm hazır şeridi (kalıcı, ince): altta, telefonda alt menünün üstünde; bağlantı şeridiyle çakışmaz */
.conn-banner.sw-update { top: auto; bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px)); padding: 1px 1px 1px 14px; background: #0f2747; border: 1px solid rgba(96,165,250,.55); color: #dbeafe; }
.conn-banner.sw-update .btn { min-height: 44px; }
.conn-banner.sw-update > span { white-space: nowrap; }
@media (max-width: 820px) { .conn-banner.sw-update { bottom: calc(env(safe-area-inset-bottom) + 78px); } }

/* ---------- Bildirim zili ve çekmecesi ---------- */
.bell { position: relative; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(120,140,220,.08); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.bell:hover { color: var(--text); }
.bell.has { color: var(--text-strong); border-color: rgba(248,113,113,.5); }
.bell i, .nav-dot { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font: 700 var(--fs-12)/18px var(--sans); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.nav-ic { position: relative; display: inline-grid; }
.nav-dot { min-width: 9px; height: 9px; padding: 0; top: -2px; right: -4px; }
.drawer-bg { position: fixed; inset: 0; z-index: 60; background: rgba(3,5,12,.55); animation: fade .15s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--panel-solid); border-left: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }
.drawer-b { flex: 1; overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
.notif { display: flex; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); cursor: pointer; font: inherit; }
.notif:hover { background: rgba(120,140,220,.08); }
.notif.unread { background: rgba(var(--accent-rgb),.07); }
.notif-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: rgba(var(--accent-rgb),.14); color: var(--accent); }
.notif.bad .notif-ic { background: rgba(248,113,113,.15); color: var(--bad); }
.notif.warn .notif-ic { background: rgba(251,191,36,.15); color: var(--warn); }
.notif.ok .notif-ic { background: rgba(52,211,153,.15); color: var(--ok); }
.notif-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 820px) { .drawer { top: auto; height: 86vh; width: 100%; border-radius: 20px 20px 0 0; border-left: 0; border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); animation: rise .25s cubic-bezier(.2,.8,.2,1); } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Anahtar (switch) ---------- */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(120,140,220,.22); transition: background .18s; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .18s; }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.35); }
.opt-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt-row > div { flex: 1; min-width: 0; }
.push-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin: 10px 0; border-radius: 11px; background: rgba(var(--accent-rgb),.07); border: 1px dashed rgba(var(--accent-rgb),.3); }

/* ---------- Olaylar ---------- */
.inc-card { border-left: 3px solid var(--warn); }
.inc-card.bad { border-left-color: var(--bad); background: linear-gradient(90deg, rgba(248,113,113,.08), transparent 60%), var(--panel); }
.ok-card { border-left: 3px solid var(--ok); }
.big-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.big-ic.ok { background: rgba(52,211,153,.15); color: var(--ok); }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-dot { position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 3px var(--bg); }
.tl-dot.bad { background: var(--bad); }
.tl-body { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.rule-card.off { opacity: .55; }

/* ---------- Analiz ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1300px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.kpi { display: flex; flex-direction: column; gap: 3px; padding: 14px; min-width: 0; }
.kpi .k { color: var(--muted); font-size: var(--fs-12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: var(--fs-24); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .d { font-size: var(--fs-12); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .d.dim { color: var(--dim); }
@media (max-width: 820px) { .kpi .v { font-size: var(--fs-20); } }
table.cmp td { white-space: nowrap; }
.cell-bar { position: relative; min-width: 86px; height: 22px; border-radius: 6px; background: rgba(120,140,220,.08); overflow: hidden; display: flex; align-items: center; justify-content: flex-end; padding: 0 7px; }
.cell-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(var(--accent-rgb),.35), rgba(129,140,248,.35)); border-radius: 6px; }
.cell-bar.warn i { background: linear-gradient(90deg, rgba(251,191,36,.35), rgba(249,115,22,.4)); }
.cell-bar.bad i { background: linear-gradient(90deg, rgba(248,113,113,.4), rgba(239,68,68,.5)); }
.cell-bar span { position: relative; font-variant-numeric: tabular-nums; }
.chips-scroll { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
@media (max-width: 820px) { .chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; } .chips-scroll::-webkit-scrollbar { display: none; } .chips-scroll .chip { flex: none; } }
.card-h.wrap { flex-wrap: wrap; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.lg.bad { background: var(--bad); } .lg.warn { background: var(--warn); }
.brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Panel ---------- */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
@media (max-width: 820px) { .srv-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.srv-card.down { border-color: rgba(248,113,113,.4); }
.srv-name { flex: 1; font-weight: 600; color: var(--text); font-size: var(--fs-14); }
.srv-name:hover { color: var(--accent); }
.spark { height: 44px; margin: 0 0 6px; }
.spark-empty { height: 44px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; }
.srv-msg { min-height: 60px; display: flex; align-items: flex-start; gap: 6px; padding: 8px 0; }
.srv-actions { display: flex; gap: 6px; margin-top: 12px; }
.srv-actions .btn.primary { flex: 1; }
.alert-strip { display: flex; align-items: center; gap: 12px; color: var(--text); border-color: rgba(248,113,113,.45); background: linear-gradient(90deg, rgba(248,113,113,.12), transparent 70%), var(--panel); }
.big-ic.bad { background: rgba(248,113,113,.16); color: var(--bad); }
.kpi.link { color: var(--text); transition: border-color .15s; }
.kpi.link:hover { border-color: rgba(var(--accent-rgb),.5); }
.heat-t { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: var(--fs-12); table-layout: fixed; }
.heat-t th { color: var(--muted); font-weight: 600; font-size: var(--fs-12); text-align: center; }
.heat-t th:first-child, .heat-t td:first-child { width: 34%; color: var(--muted); }
.heat-t td span { display: block; text-align: center; padding: 6px 0; border-radius: 7px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h0 { background: rgba(var(--accent-rgb),.08); color: var(--muted); } .h1 { background: rgba(var(--accent-rgb),.2); color: #bae6fd; }
.h2 { background: rgba(129,140,248,.32); color: #e0e7ff; } .h3 { background: rgba(251,191,36,.3); color: #fde68a; } .h4 { background: rgba(248,113,113,.4); color: #fff; }
table.cmp th:first-child, table.cmp td:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel-solid); }
table.cmp th:first-child { z-index: 3; }
.scan-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.scan-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line-2); cursor: pointer; background: var(--tint); }
.scan-item:hover { border-color: rgba(var(--accent-rgb),.5); }
.scan-item.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.1); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.15); }
details.manual summary { cursor: pointer; color: var(--accent); padding: 4px 0; }
details.manual[open] summary { margin-bottom: 8px; }
@media (max-width: 820px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tool-card { padding: 8px; gap: 8px; } .tool-card .tool-badge { width: 30px; height: 30px; font-size: var(--fs-13); } .tool-card b { font-size: var(--fs-12); } }

/* ---------- Kenar çubuğu: arama, daraltma ---------- */
.side-search { display: flex; align-items: center; gap: 9px; margin: -6px 2px 10px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--input-bg); color: var(--dim); font: var(--fs-13) var(--sans); cursor: pointer; transition: border-color .15s; }
.side-search:hover { border-color: rgba(var(--accent-rgb), .5); color: var(--muted); }
.side-search span { flex: 1; text-align: left; }
kbd { display: inline-block; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--tint); font: 600 var(--fs-12) var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.side-toggle { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--dim); font: var(--fs-12) var(--sans); cursor: pointer; }
.side-toggle:hover { background: var(--tint); color: var(--text); }
@media (min-width: 821px) {
  [data-sidebar="collapsed"] { --sidebar: 72px; }
  [data-sidebar="collapsed"] .sidebar { padding: 14px 10px; align-items: stretch; }
  [data-sidebar="collapsed"] .sidebar .nav-t, [data-sidebar="collapsed"] .sidebar .brand > div, [data-sidebar="collapsed"] .sidebar .nav-label, [data-sidebar="collapsed"] .sidebar-foot { display: none; }
  [data-sidebar="collapsed"] .brand { flex-direction: column; padding: 4px 0 14px; gap: 10px; }
  [data-sidebar="collapsed"] .nav-item, [data-sidebar="collapsed"] .side-search, [data-sidebar="collapsed"] .side-toggle { justify-content: center; padding: 10px 0; }
  [data-sidebar="collapsed"] .side-search { margin: 0 0 10px; }
  [data-sidebar="collapsed"] .side-toggle { margin-top: auto; }
  [data-sidebar="collapsed"] .side-toggle svg { transform: scaleX(-1); }
}
.shell { transition: grid-template-columns .2s ease; }

/* ---------- Mobil alt menü ---------- */
@media (max-width: 820px) {
  .bottom-nav a { transition: color .15s; -webkit-tap-highlight-color: transparent; }
  .bottom-nav a:active { transform: scale(.94); }
}
.more-sheet { padding: 12px 12px calc(18px + env(safe-area-inset-bottom)) !important; }
.more-search { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px; margin-bottom: 12px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--input-bg); color: var(--dim); font: var(--fs-14) var(--sans); text-align: left; }
.more-item { position: relative; transition: background .15s; }
.more-item:active { background: rgba(var(--accent-rgb), .15); }
.more-item .badge { position: absolute; top: 8px; right: 8px; }
.more-theme { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ---------- Komut paleti ---------- */
.pal-bg { position: fixed; inset: 0; z-index: 95; background: rgba(3,5,12,.55); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .12s; }
.pal { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg), 0 30px 80px -20px rgba(0,0,0,.6); overflow: hidden; animation: pop .16s cubic-bezier(.2,.9,.3,1.2); }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--dim); }
.pal-in input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); font: var(--fs-16) var(--sans); }
.pal-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pal-g { padding: 10px 10px 4px; font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .04em; color: var(--dim); font-weight: 600; }
.pal-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: var(--fs-14) var(--sans); text-align: left; cursor: pointer; }
.pal-item svg { color: var(--muted); flex: none; }
.pal-item.on { background: rgba(var(--accent-rgb), .14); }
.pal-item.on svg { color: var(--accent); }
.pal-hint { max-width: 45%; }
.pal-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .pal-bg { padding: max(10px, env(safe-area-inset-top)) 10px 10px; } .pal { max-height: 80vh; } .pal-item { padding: 12px 10px; } }

/* ---------- Modern dokunuşlar ---------- */
.card { transition: border-color .2s, box-shadow .2s; }
.srv-card:hover, .kpi.link:hover { border-color: rgba(var(--accent-rgb), .35); }
.nav-item { position: relative; }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-item.active { box-shadow: none; }
.topbar h1 { letter-spacing: -.02em; }
.theme-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 6px; }
@media (max-width: 820px) { .theme-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-opt { display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 10px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); font: 600 var(--fs-13) var(--sans); cursor: pointer; text-align: left; }
.theme-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.theme-sw { position: relative; height: 54px; border-radius: 9px; border: 1px solid var(--line-2); overflow: hidden; }
.theme-sw i { position: absolute; left: 10px; top: 10px; width: 40%; height: 8px; border-radius: 4px; box-shadow: 0 14px 0 -1px rgba(128,128,128,.35), 0 26px 0 -1px rgba(128,128,128,.25); }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 1000px) { .opt-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sunucu araçları ---------- */
.log-box { height: 62vh; overflow: auto; background: #070b18; color: #d4d9ee; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: var(--fs-12)/1.55 var(--mono); overscroll-behavior: contain; }
.log-l { white-space: pre-wrap; word-break: break-word; }
.log-box.nowrap .log-l { white-space: pre; }
.log-l.bad { color: #fca5a5; } .log-l.warn { color: #fcd34d; }
.dock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.dock-c.exited { opacity: .75; }
.cron-row.off { opacity: .55; }
@media (max-width: 820px) { .log-box { height: 55vh; font-size: var(--fs-12); } .dock-grid { grid-template-columns: minmax(0, 1fr); } }
.srv-pick { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--tint); cursor: pointer; font-size: var(--fs-13); user-select: none; }
.srv-pick input { accent-color: var(--accent); }
.srv-pick.on { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.srv-pick.off { opacity: .6; }
.bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; }
@media (max-width: 820px) { .bulk-grid { grid-template-columns: minmax(0, 1fr); } }
.bulk-r.ok { border-left: 3px solid var(--ok); } .bulk-r.bad { border-left: 3px solid var(--bad); }
.keybox { padding: 12px; border-radius: 12px; border: 1px dashed rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .06); }
.more-ver { text-align: center; padding: 4px 0 2px; }
/* Dönüş özeti ve çıktıda dokunma eylemleri */
.term-away { position: absolute; left: 10px; right: 10px; top: 8px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 12px; background: var(--panel-solid); border: 1px solid rgba(var(--accent-rgb),.4); color: var(--text); font-size: var(--fs-13); box-shadow: 0 10px 30px -12px rgba(0,0,0,.7); animation: pop .18s; }
.term-away span { flex: 1; min-width: 0; }
.term-away svg { color: var(--accent); flex: none; }
.term-act-bg { position: absolute; inset: 0; z-index: 7; background: rgba(3,5,12,.35); animation: fade .12s; }
.term-act { position: absolute; left: 10px; right: 10px; padding: 10px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: pop .16s; }
.ta-val { font-size: var(--fs-12); color: var(--accent); word-break: break-all; padding: 2px 4px 9px; max-height: 60px; overflow: hidden; }
.ta-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ta-row .btn { height: 36px; }
.term-thumb { transition: opacity .25s; }
/* Kayıtlar */
.tab-use { font: 600 var(--fs-12) var(--sans); color: var(--text-dim, var(--text)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); border-radius: 5px; padding: 1px 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tab-use.none { opacity: .7; font-weight: 600; font-style: italic; }
.tl-sess { display: inline-flex; align-items: center; gap: 4px; }
.tab-rec { font: 700 var(--fs-12) var(--sans); color: #fff; background: var(--bad); border-radius: 5px; padding: 1px 5px; animation: blink 1.4s infinite; font-variant-numeric: tabular-nums; }
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-card { display: flex; align-items: center; gap: 12px; padding: 12px; }
.rec-thumb { flex: none; width: 54px; height: 54px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--term-bg, #070b18); color: var(--accent); display: grid; place-items: center; cursor: pointer; }
.rec-thumb:disabled { color: var(--bad); cursor: default; }
.rec-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rec-acts { display: flex; gap: 4px; flex: none; }
@media (max-width: 820px) { .rec-card { flex-wrap: wrap; } .rec-acts { width: 100%; justify-content: flex-end; } }
.rec-player { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); padding: max(10px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); gap: 10px; animation: fade .15s; }
.rp-top { display: flex; align-items: center; gap: 8px; }
.rp-screen { flex: 1; min-height: 0; overflow: auto; display: flex; background: var(--term-bg, #070b18); border: 1px solid var(--line); border-radius: 14px; padding: 8px; }
.rp-screen .xterm { margin: 0 auto; }
.rp-bar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); }
.rp-bar input[type=range] { flex: 1; min-width: 60px; accent-color: var(--accent); }
@media (max-width: 520px) { .rp-speed button:not(.on) { display: none; } }
/* ---------- Görünüm yenilemesi (2026-10): sakin yüzeyler, yumuşak köşeler, hap biçimli gezinme ---------- */
.btn { height: 40px; border-radius: 12px; border-color: var(--line-2); background: var(--tint); font-weight: 600; }
.btn:hover { background: var(--tint-2); border-color: rgba(var(--accent-rgb), .35); }
.btn:active { transform: scale(.97); }
.btn.sm { height: 32px; border-radius: 9px; }
.btn.icon { width: 40px; } .btn.sm.icon { width: 32px; }
.btn.primary { box-shadow: 0 6px 18px -8px rgba(var(--accent-rgb), .75), inset 0 1px 0 rgba(255,255,255,.25); }
/* Üstüne gelince/odaktayken birincil düğme degradesini korusun: yukarıdaki .btn:hover zemini sıfırlayıp koyu yazıyı (1,3:1) okunmaz bırakıyordu. Canlı kaşı ve modern arayüz kendi zeminini yönetir. */
:root:not([data-skin="canli"]):not([data-ui="modern"]) .btn.primary:hover { background: var(--grad); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--tint-2); }
.input, select.input, .input.sm { border-radius: var(--r-md); }
.card { border-radius: var(--r); background-image: linear-gradient(180deg, rgba(255,255,255,.022), transparent 40%); }
.modal { border-radius: var(--r-lg); }
.toast { border-radius: var(--r-md); }
.badge { font-weight: 600; letter-spacing: 0; }
.stat .k { letter-spacing: 0; font-size: var(--fs-12); font-weight: 600; }
.stat .v { letter-spacing: -.2px; }
.topbar { border-bottom-color: var(--line); }
.topbar h1 { font-weight: 700; }
/* sunucu kartı: kalın renkli üst çizgi yerine renk, kartın köşesine yayılan ışık ve isim noktası olarak */
.srv-card { border-top: 1px solid var(--line); }
.srv-card::before { background: radial-gradient(420px 140px at 0 0, color-mix(in srgb, var(--c, #38bdf8) 16%, transparent), transparent 70%); }
.srv-card::after { content: ""; position: absolute; left: 16px; right: 16px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c, #38bdf8) 70%, transparent), transparent); pointer-events: none; }
/* masaüstü kenar menü */
.nav-item { border-radius: var(--r-md); }
.nav-item.active { background: linear-gradient(90deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .04)); }
@media (max-width: 820px) {
  .topbar { border-bottom: 0; background: var(--bg); padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 6px; min-height: 0; }
  .topbar h1 { font-size: var(--fs-page); letter-spacing: -.2px; }
  .content { padding-top: 10px; }
  .card { border-radius: var(--r-lg); }
  /* alt menü: etkin sayfanın simgesi hap içinde */
  .bottom-nav { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--panel-solid) 94%, transparent); }
  .bottom-nav a { gap: 4px; font-size: var(--fs-12); font-weight: 600; letter-spacing: 0; }
  .bottom-nav a > svg, .bottom-nav a .nav-ic { box-sizing: content-box; padding: 4px 18px; border-radius: 99px; transition: background .2s, color .2s; }
  .bottom-nav a > svg { width: 21px; height: 21px; }
  .bottom-nav a .nav-ic { position: relative; display: grid; place-items: center; }
  .bottom-nav a.active > svg, .bottom-nav a.active .nav-ic { background: rgba(var(--accent-rgb), .16); filter: none; }
  .bottom-nav a.active { color: var(--text-strong); }
  .bottom-nav a.active svg { color: var(--accent); filter: none; }
  /* alttan açılan pencerelerde tutamaç */
  .modal { position: relative; border-radius: 24px 24px 0 0; }
  .modal::before { content: ""; position: absolute; left: 50%; top: 7px; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: var(--line-2); }
  .modal-h { padding-top: 20px; }
}
@media (max-width: 820px) {
  .topbar { background: transparent; }
  /* panel özet kartları: telefonda 3 sütun, sıkı */
}

/* Yapay zeka izleyicisi */
.ai-link { display: block; color: inherit; text-decoration: none; margin-top: 10px; }
.ai-chip { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px; font-size: var(--fs-12);
  background: rgba(167,139,250,.08); border: 1px solid rgba(167,139,250,.18); color: var(--muted); min-width: 0; }
.ai-chip > .ellipsis { min-width: 0; }
.ai-chip b.ok { color: var(--ok); font-weight: 600; }
.ai-mini { white-space: nowrap; font-size: var(--fs-12); padding: 2px 7px; border-radius: 7px; background: rgba(52,211,153,.12); color: var(--muted); }
.ai-mini b { color: var(--ok); }
.ai-mini.warn { background: rgba(251,191,36,.13); } .ai-mini.warn b { color: var(--warn); }
.ai-mini.bad { background: rgba(248,113,113,.14); } .ai-mini.bad b { color: var(--bad); }
.ai-link:hover .ai-chip { border-color: rgba(167,139,250,.4); }
.ai-limit .ai-big { font-size: var(--fs-goster); font-weight: 700; letter-spacing: -.02em; margin: 6px 0 10px; }
.ai-limit .ai-big small { font-size: var(--fs-13); font-weight: 400; color: var(--dim); }
.ai-sess { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.ai-sess:first-of-type { border-top: 0; }
.ai-ctx { width: 92px; display: grid; grid-template-columns: 1fr auto; gap: 2px 6px; align-items: baseline; }
.ai-ctx .progress { grid-column: 1 / -1; height: 4px; }
.ai-ctx b.warn { color: var(--warn); } .ai-ctx b.bad { color: var(--bad); }
@media (max-width: 820px) { .ai-ctx { width: 70px; } .ai-sess { gap: 10px; padding: 11px 14px; } }
@media (max-width: 820px) {
  .ai-lims { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ai-lims > .span2, .ai-lims > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ai-limit .ai-big { font-size: var(--fs-24); margin: 4px 0 8px; }
  .ai-limit .badge { font-size: var(--fs-12); }
}
@media (max-width: 820px) { .ai-ctx { width: 54px; flex-shrink: 0; } .ai-ctx > .small { display: none; } .ai-ctx b { grid-column: 1 / -1; text-align: right; } }

/* ---------- Projeler ---------- */
.proj-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.proj-mode { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: inherit; font: inherit; padding: 14px; transition: border-color .15s, transform .15s; }
.proj-mode:hover:not(:disabled) { border-color: rgba(var(--accent-rgb),.55); transform: translateY(-1px); }
.proj-mode:disabled { opacity: .5; cursor: default; }
.proj-mode-i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgba(var(--accent-rgb),.14); color: var(--accent); }
.proj-mode-t { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.proj-group { display: flex; align-items: center; gap: 8px; margin: 4px 2px 10px; }
.proj { display: flex; flex-direction: column; gap: 10px; }
.proj.live { border-color: rgba(var(--accent-rgb),.35); }
.proj-meta { display: flex; flex-direction: column; gap: 3px; font-size: var(--fs-12); color: var(--muted); min-width: 0; }
.proj-srv { display: inline-flex; align-items: center; gap: 6px; }
.proj-actions { gap: 6px; margin-top: auto; padding-top: 2px; }
.proj-state { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); font-weight: 600; color: var(--dim); white-space: nowrap; flex: none; }
.proj-state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.proj-state.ok { color: var(--ok); } .proj-state.ok i { animation: blink 1.4s infinite; box-shadow: 0 0 8px var(--ok); }
.proj-state.warn { color: var(--warn); } .proj-state.warn i { animation: blink .9s infinite; }
.proj-state.info { color: var(--accent); } .proj-state.idle { color: var(--muted); }
.proj-state.off i { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.proj-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: var(--input-bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; }
.proj-tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: transparent; color: var(--muted); padding: 8px 6px; border-radius: 9px; cursor: pointer; font: 400 var(--fs-12) var(--sans); min-width: 0; }
.proj-tabs button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj-tabs button.on { background: rgba(var(--accent-rgb),.18); color: var(--text-strong); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),.35); }
.form-grid > * { min-width: 0; }
.proj-drop { border: 2px dashed var(--line-2); border-radius: 14px; padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--muted); min-width: 0; }
.proj-drop.has { border-style: solid; border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.06); color: var(--accent); }
.proj-drop b { color: var(--text-strong); }
@media (max-width: 820px) {
  /* başlangıç yolları: tek satır, yana kaydırılır */
  .proj-start { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding: 0 14px 2px; }
  .proj-start::-webkit-scrollbar { display: none; }
  .proj-mode { padding: 9px 12px 9px 9px; gap: 9px; flex: none; border-radius: 13px; }
  .proj-mode b { white-space: nowrap; }
  .proj-mode-t .small { display: none; }
  .proj-mode-i { width: 32px; height: 32px; }
  .proj-mode b { font-size: var(--fs-13); }
  .proj-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Kaldığın yerden devam (panel + boş terminal) ---------- */
.resume-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; }
.resume-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.resume-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel);
  color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; transition: border-color .15s, transform .12s; -webkit-tap-highlight-color: transparent; }
.resume-item:hover { border-color: rgba(var(--accent-rgb),.5); }
.resume-item:active { transform: scale(.985); }
.resume-item.live { border-color: rgba(var(--accent-rgb),.32); }
.resume-item .tool-badge { width: 34px; height: 34px; font-size: var(--fs-14); border-radius: 10px; }
.resume-t { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.resume-go { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(var(--accent-rgb),.16); color: var(--accent); }
.term-resume { width: min(560px, 100%); margin: 6px auto 10px; text-align: left; }
.term-resume .resume-list { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 820px) {
  .resume-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .resume-item { padding: 9px 10px; }
  /* dosya araç çubuğu: tek satır, yana kaydırılır (iki satıra dağılıp yer kaplamasın) */
  .ftools { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); }
  .ftools::-webkit-scrollbar { display: none; }
  .ftools > * { flex: none; }
  .ftools .fsearch { order: 0; flex: 0 0 150px; } .ftools .fsearch .input { height: 34px; }
  /* monitör göstergeleri */
  .grid.g4.keep2 > .card { padding: 8px 8px 10px; }
}
@media (max-width: 380px) { .hide-xs { display: none; } }
.empty .term-resume { color: var(--text); }
.empty .btn svg, .empty a svg { width: 14px; height: 14px; opacity: 1; margin: 0; }
.empty .term-resume svg { width: 14px; height: 14px; opacity: 1; margin: 0; }
.ai-tool { display: inline-grid; place-items: center; min-width: 22px; height: 16px; padding: 0 4px; margin-right: 6px; border-radius: 5px; font: 700 var(--fs-12) var(--sans); color: #fff; background: #64748b; vertical-align: 1px; flex: none; font-variant-numeric: tabular-nums; }
.ai-tool.claude { background: #d97757; } .ai-tool.agy { background: linear-gradient(135deg,#4285f4,#a142f4); } .ai-tool.codex { background: #10a37f; }
@media (max-width: 820px) {
  /* dar limit kartında ad tam görünsün, "kaldı" rozeti alt satıra geçsin */
  .ai-lims .ai-limit > .row:first-child { flex-wrap: wrap; gap: 4px; }
  .ai-lims .ai-limit > .row:first-child > .ellipsis { white-space: normal; flex-basis: 100%; }
}

/* ---------- Bilgisayar bağla / rehber / eşleştirme ---------- */
.connect-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.connect-opt { display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; padding: 14px; border: 1px solid var(--line-2); color: var(--text); font: inherit; position: relative; transition: border-color .15s, transform .15s; }
.connect-opt:hover { border-color: rgba(var(--accent-rgb), .5); }
.connect-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.connect-opt > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.connect-opt .badge { margin-left: 4px; vertical-align: 1px; }
.connect-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; color: #fff; }
.connect-ic.win { background: linear-gradient(135deg, #0078d4, #38bdf8); }
.connect-ic.nix { background: linear-gradient(135deg, #f59e0b, #f97316); }
.connect-ic.ssh { background: linear-gradient(135deg, #6366f1, #a78bfa); }
.connect-ic.guide { background: linear-gradient(135deg, #10b981, #34d399); }
.connect-ok { display: flex; align-items: center; gap: 12px; border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .08); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.steps p { margin: 6px 0 0; }
.guide-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-13); }
.cmd-block { margin: 10px 0; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--term-bg, #070b18); }
.cmd-block-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 4px 12px; border-bottom: 1px solid var(--line); background: var(--tint); }
/* Blok her zaman koyu: başlık ve düğme açık kipte de açık renkli metin kullanır */
.cmd-block-h { --text: #e6e9f7; --text-strong: #fff; --muted: #b4bfe3; --dim: #a3aed4; color: #b4bfe3; background: rgba(255,255,255,.06); border-bottom-color: rgba(255,255,255,.12); }
.cmd-block-h .btn { color: #e6e9f7; }
.cmd-block pre { margin: 0; padding: 10px 12px; font-size: var(--fs-12); line-height: 1.5; white-space: pre-wrap; word-break: break-all; color: #d6e2ff; cursor: copy; }
.guide-tip { display: flex; gap: 12px; align-items: flex-start; border-color: rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .07); font-size: var(--fs-13); }
.guide-sec { padding: 0; overflow: hidden; }
.guide-h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.guide-chev { transition: transform .2s; transform: rotate(90deg); color: var(--dim); }
.guide-sec.open .guide-chev { transform: rotate(-90deg); }
.guide-b { padding: 0 16px 14px; font-size: var(--fs-13); line-height: 1.55; }
.guide-b p { margin: 0 0 8px; }
.dl-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: var(--fs-13); }
.dl-row:hover { border-color: rgba(var(--accent-rgb), .5); }
.pair-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 20px 0; }
.pair-card { width: min(480px, 100%); text-align: center; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.pair-card h2 { margin: 0; }
.pair-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0078d4, #a78bfa); box-shadow: 0 14px 34px -14px rgba(56, 189, 248, .7); }
.pair-ic.ok { background: linear-gradient(135deg, #10b981, #34d399); }
.pair-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.pair-info > div { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); min-width: 0; }
.pair-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warn-box { text-align: left; margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(251, 191, 36, .4); background: rgba(251, 191, 36, .08); }
.empty.onboard p { max-width: 460px; }
@media (max-width: 1100px) { .connect-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .connect-pick { grid-template-columns: 1fr; gap: 8px; }
  .connect-opt { padding: 11px 12px; }
  .connect-ic { width: 36px; height: 36px; border-radius: 10px; }
  .pair-info { grid-template-columns: 1fr; }
}
.connect-ic.ts { background: linear-gradient(135deg, #1f2937, #4b5563); }
.connect-pick { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1400px) { .connect-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .connect-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .connect-pick { grid-template-columns: 1fr; } }
.tn-box { padding: 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--tint); }
.tn-wait, .tn-head { display: flex; align-items: center; gap: 10px; }
.tn-wait { padding: 10px 12px; border-radius: 11px; border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .07); flex-wrap: wrap; }
.tn-peers { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 280px; overflow-y: auto; }
.tn-peer { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--text); font: inherit; cursor: pointer; }
.tn-peer:hover { border-color: rgba(var(--accent-rgb), .5); }
.tn-peer.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.tn-peer.off { opacity: .6; }
.connect-body details summary { cursor: pointer; padding: 4px 0; }

/* ---------- Terminal: araç çubuğu grupları ---------- */
.tb-group { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 11px; background: rgba(120,140,220,.06); border: 1px solid var(--line); flex: none; }
.tb-group + .tb-group, .term-tabs .badge + .tb-group { margin-left: 4px; }
.tb-count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: rgba(var(--accent-rgb),.22); color: var(--text-strong); font: 600 var(--fs-12) var(--sans); display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.tb-count.running { background: var(--ok); color: #04110a; animation: qpulse 1.6s ease-in-out infinite; }
.tb-count.waiting { background: var(--warn); color: #1d1300; }
@keyframes qpulse { 50% { box-shadow: 0 0 0 4px rgba(52,211,153,.18); } }
.menu-h { padding: 6px 10px 2px; font-size: var(--fs-12); font-weight: 600; color: var(--dim); } /* M1: cümle harfi */
@media (max-width: 820px) { .tb-group { background: none; border: 0; padding: 0; } }

/* ---------- Terminal efektleri (çizimin üstünde, tıklamayı engellemez) ---------- */
.term-pane::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.term-pane.fx-none::after { display: none; }
.term-pane.fx-crt::after {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px),
              radial-gradient(ellipse at center, transparent 58%, rgba(0,0,0,.5) 100%);
  box-shadow: inset 0 0 90px rgba(0,0,0,.45);
}
.term-pane.fx-crt .term-el { filter: saturate(1.15) contrast(1.05); }
.term-pane.fx-glow::after { background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--fx-c) 16%, transparent), transparent 60%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fx-c) 30%, transparent), inset 0 0 60px -20px var(--fx-c); }
.term-pane.fx-vignette::after { background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%); }
.term-pane.fx-frame { padding: 6px; background: linear-gradient(135deg, var(--fx-c), color-mix(in srgb, var(--fx-c) 20%, #a78bfa) 50%, var(--fx-c)); }
.term-pane.fx-frame .term-el { border-radius: 10px; background: var(--term-bg); box-shadow: 0 0 30px -6px var(--fx-c); }
.term-pane.fx-frame::after { display: none; }
.term-stage { background: var(--term-bg, #070b18); transition: background .3s; }
/* Terminal yokken boş durum uygulamanın kendi zemininde (açık kipte koyu zemin üstünde koyu metin okunmuyordu) */
.term-stage:has(> .empty) { background: transparent; overflow: hidden; } /* yan panel (Plan vb.) sahneyi daraltınca boş durum kutusu panelin üstüne taşmasın */

/* ---------- Yeni efektler (v2): temanın kendi renkleri (--fx-c imleç, --fx-c2 ikinci ton) ile ---------- */
/* Aurora: üstte yavaşça akan kuzey ışıkları */
.term-pane.fx-aurora::after {
  background:
    radial-gradient(60% 45% at 20% 0%, color-mix(in srgb, var(--fx-c) 22%, transparent), transparent 70%),
    radial-gradient(55% 40% at 80% 0%, color-mix(in srgb, var(--fx-c2) 20%, transparent), transparent 70%),
    radial-gradient(40% 30% at 50% 10%, color-mix(in srgb, var(--fx-c) 10%, var(--fx-c2) 10%), transparent 70%);
  background-size: 160% 100%, 140% 100%, 200% 100%;
  mix-blend-mode: screen; opacity: .9;
  animation: fxaurora 18s ease-in-out infinite alternate;
}
@keyframes fxaurora { 0% { background-position: 0% 0, 100% 0, 50% 0; } 100% { background-position: 100% 0, 0% 0, 0% 0; } }
/* Yıldızlar: seyrek, hafifçe parlayan noktalar */
.term-pane.fx-stars::after {
  background-image:
    radial-gradient(1px 1px at 12% 18%, color-mix(in srgb, var(--fx-c) 80%, #fff) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 34%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 72%, color-mix(in srgb, var(--fx-c2) 80%, #fff) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 82%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 56%, #fff 50%, transparent 51%);
  background-size: 340px 260px; opacity: .35;
  animation: fxtwinkle 5s ease-in-out infinite alternate;
}
@keyframes fxtwinkle { 0% { opacity: .18; } 100% { opacity: .42; } }
/* Retro ızgara: altta perspektifli, akan çizgiler (synthwave) */
.term-pane.fx-grid::after {
  top: 55%;
  background-image: linear-gradient(color-mix(in srgb, var(--fx-c2) 45%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--fx-c) 40%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(260px) rotateX(58deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%); mask-image: linear-gradient(to bottom, transparent, #000 45%);
  opacity: .32; animation: fxgrid 2.6s linear infinite;
}
@keyframes fxgrid { to { background-position: 0 44px, 0 0; } }
/* Tarama ışını: yukarıdan aşağı geçen ince ışık */
.term-pane.fx-scan::after {
  background: linear-gradient(to bottom, transparent 0, color-mix(in srgb, var(--fx-c) 14%, transparent) 48%, color-mix(in srgb, var(--fx-c) 26%, transparent) 50%, transparent 54%);
  background-size: 100% 240%; mix-blend-mode: screen;
  animation: fxscan 7s linear infinite;
}
@keyframes fxscan { 0% { background-position: 0 -140%; } 100% { background-position: 0 240%; } }
/* Film greni: çok hafif, titreşen gren */
.term-pane.fx-grain::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
  animation: fxgrain .9s steps(4) infinite;
}
@keyframes fxgrain { 0% { background-position: 0 0; } 25% { background-position: -40px 20px; } 50% { background-position: 30px -30px; } 75% { background-position: -20px -10px; } }
/* Dijital yağmur: rastgele uzunlukta ince damlalar (tek SVG maske karosu, renk temadan; yalnız mask-position kayar: GPU dostu) */
.term-pane.fx-rain::after {
  background: linear-gradient(to bottom, var(--fx-c), var(--fx-c2));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='240'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='84' y='38' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='84' y='-202' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='18' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='-222' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='26' y='93' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='26' y='-147' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='54' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='-186' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='107' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='-133' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='141' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='-99' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='31' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='-209' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='160' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='-80' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='149' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='-91' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='240'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='84' y='38' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='84' y='-202' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='18' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='-222' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='26' y='93' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='26' y='-147' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='54' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='-186' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='107' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='-133' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='141' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='-99' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='31' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='-209' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='160' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='-80' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='149' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='-91' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='240'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='84' y='38' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='84' y='-202' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='18' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='-222' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='26' y='93' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='26' y='-147' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='54' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='-186' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='107' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='-133' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='141' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='-99' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='31' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='-209' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='160' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='-80' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='149' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='-91' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='240'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-opacity='0'/%3E%3Cstop offset='1' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='84' y='38' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='84' y='-202' width='1.2' height='55' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='18' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='14' y='-222' width='1.2' height='82' fill='url%28%23g%29' opacity='0.9'/%3E%3Crect x='26' y='93' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='26' y='-147' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='54' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='131' y='-186' width='1.2' height='32' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='107' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='113' y='-133' width='1.2' height='34' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='141' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='25' y='-99' width='1.2' height='57' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='31' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='146' y='-209' width='1.2' height='90' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='160' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='163' y='-80' width='1.2' height='67' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='149' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3Crect x='149' y='-91' width='1.2' height='55' fill='url%28%23g%29' opacity='0.5'/%3E%3C/svg%3E");
  -webkit-mask-size: 180px 240px, 126px 144px; mask-size: 180px 240px, 126px 144px;
  -webkit-mask-position: 0 0, 61px 0; mask-position: 0 0, 61px 0;
  opacity: .28; animation: fxrain 3.2s linear infinite;
}
@keyframes fxrain { to { -webkit-mask-position: 0 240px, 61px 144px; mask-position: 0 240px, 61px 144px; } }
.term-pane.light-theme.fx-rain::after { opacity: .18; }
/* Sis: altta iki yumuşak bulut katmanı yavaşça kayar */
.term-pane.fx-fog::after {
  background:
    radial-gradient(60% 35% at 30% 100%, color-mix(in srgb, var(--fx-c2) 16%, transparent), transparent 70%),
    radial-gradient(55% 30% at 75% 100%, color-mix(in srgb, var(--fx-c) 13%, transparent), transparent 70%);
  background-size: 200% 100%; animation: fxfog 30s ease-in-out infinite alternate;
}
@keyframes fxfog { 0% { background-position: 0% 0, 100% 0; } 100% { background-position: 100% 0, 0% 0; } }
/* Bölünmüş görünümde odakta olmayan panelin efekti durur (boşuna çizim yok) */
.term-pane.fx-idle::after { animation-play-state: paused; }
/* Galeri: okunabilirlik rozeti (WCAG) */
.lc-score { position: absolute; bottom: 9px; right: 8px; font: 700 var(--fs-12)/1 var(--font-sans, system-ui); padding: 3px 5px; border-radius: 5px; background: rgba(0,0,0,.55); color: #fff; letter-spacing: .03em; }
.lc-score.g-aaa { background: #15803d; } .lc-score.g-aa { background: #1d4ed8; } .lc-score.g-low { background: #b45309; }
/* Açık temalarda ışık efektleri daha yumuşak */
/* Açık temada koyu CRT/derinlik katmanları zemini grileştiriyordu (Sabah Ormanı + Retro CRT): çok daha hafif */
.term-pane.light-theme.fx-crt::after { background: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 70%, rgba(0,0,0,.10) 100%); box-shadow: inset 0 0 50px rgba(0,0,0,.10); }
.term-pane.light-theme.fx-crt .term-el { filter: none; }
.term-pane.light-theme.fx-vignette::after { background: radial-gradient(ellipse at center, transparent 65%, rgba(0,0,0,.14) 100%); }
.term-pane.light-theme.fx-aurora::after, .term-pane.light-theme.fx-scan::after { mix-blend-mode: multiply; opacity: .45; }
.term-pane.light-theme.fx-stars::after { opacity: .12; }
/* Animasyonu azalt: efektler durağan kalır */
:root[data-motion="low"] .term-pane::after, :root[data-motion="reduced"] .term-pane::after { animation: none !important; }
@media (prefers-reduced-motion: reduce) { .term-pane::after { animation: none !important; } }
/* Galeri: kategori başlıkları ve efekt önizlemesi */
.look-cat { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.look-cat span { font-weight: 600; letter-spacing: 0; text-transform: none; }
.look-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(80% 60% at 30% 0%, var(--lc-c, transparent), transparent 70%); }
.look-card:hover::after, .look-card.on::after { opacity: .35; }
.look-rot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--accent-rgb),.06); border: 1px solid var(--line); }

/* ---------- Görünüm penceresi ---------- */
.look { gap: 12px; }
.look-top { gap: 12px; align-items: center; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.look-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 8px; border-radius: 12px; border: 1px solid rgba(128,128,128,.25); cursor: pointer; text-align: left; font: var(--fs-12)/1.45 var(--mono); overflow: hidden; transition: transform .15s, box-shadow .15s; }
.look-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0,0,0,.7); }
.look-card.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.look-card i { font-style: normal; }
.lc-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-line i + i::before { content: ':'; opacity: .6; }
.lc-cur { display: inline-block; width: 7px; height: 12px; vertical-align: -2px; animation: lcblink 1.1s steps(1) infinite; }
@keyframes lcblink { 50% { opacity: 0; } }
.lc-sw { display: flex; gap: 3px; margin-top: 4px; }
.lc-sw i { width: 14px; height: 6px; border-radius: 3px; }
.lc-name { font: 600 var(--fs-12) var(--sans); margin-top: 2px; padding-right: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-ok { position: absolute; top: 8px; right: 8px; color: var(--accent); }
.look-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px 18px; padding-top: 6px; border-top: 1px solid var(--line); }
.lo { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-13); }
.lo > span:first-child { font-weight: 600; color: var(--text-strong); }
.lo.check { flex-direction: row; align-items: center; gap: 8px; cursor: pointer; }
.lo.check > span { font-weight: 600; color: var(--text); }

/* ---------- Sıralı işler paneli ---------- */
.q-side.open { width: 360px; }
.qp { display: flex; flex-direction: column; height: 100%; min-height: 0; width: 360px; max-width: 100%; }
.qp-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.qp-target { display: flex; align-items: center; gap: 7px; margin: 0 12px 8px; padding: 7px 10px; border-radius: 10px; background: rgba(120,140,220,.07); border: 1px solid var(--line); min-width: 0; }
.qp-set { margin: 0 12px 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; background: rgba(120,140,220,.05); }
.qp-wait { display: flex; gap: 10px; align-items: flex-start; margin: 0 12px 8px; padding: 10px; border-radius: 12px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.4); color: var(--text); animation: pop .2s; }
.qp-wait > .nx-icon, .qp-wait > svg { color: var(--warn); flex: none; margin-top: 2px; }
.qp-ctl { display: flex; align-items: center; gap: 6px; padding: 0 12px 8px; }
.qp-list { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 8px; overscroll-behavior: contain; }
.qp-item { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 4px; }
.qp-item:hover { background: rgba(120,140,220,.07); }
.qp-item.running { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.07); }
.qp-item.done .qp-text, .qp-item.skipped .qp-text { opacity: .55; }
.qp-item.done .qp-ic { color: var(--ok); }
.qp-item.skipped .qp-ic, .qp-item.failed .qp-ic { color: var(--bad); }
.qp-ic { width: 18px; height: 18px; display: grid; place-items: center; flex: none; color: var(--dim); margin-top: 1px; }
.qp-ic .spin { width: 13px; height: 13px; }
.qp-body { flex: 1; min-width: 0; }
.qp-text { font-size: var(--fs-12); white-space: pre-wrap; word-break: break-word; max-height: 4.6em; overflow: hidden; cursor: text; }
.qp-meta { display: flex; gap: 5px; margin-top: 2px; }
.qp-act { display: flex; flex-wrap: nowrap; gap: 0; flex: none; opacity: .35; transition: opacity .15s; justify-content: flex-end; }
.qp-item:hover .qp-act, .qp-act:focus-within { opacity: 1; }
.qp-act .btn.sm.icon { width: 26px; min-width: 26px; height: 26px; }
.qp-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 10px; color: var(--dim); }
.qp-empty p { margin: 0; }
.qp-add { flex: none; padding: 10px 12px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: var(--panel-solid); }
.qp-add textarea { resize: vertical; min-height: 64px; font-size: var(--fs-12); }
@media (max-width: 820px) {
  .q-side.open { width: min(94vw, 380px); }
  .qp { width: 100%; }
  .qp-act { opacity: 1; }
}
@media (pointer: coarse) { .qp-act { opacity: 1; } }

/* Sayfa yüklenirken (ilk ziyarette) iskelet */
.view-loading { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; animation: fadein .3s ease .15s both; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- Claude planı paneli ---------- */
.cp-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.cp-session { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(var(--accent-rgb),.06); border: 1px solid var(--line); }
.cp-session .dot.ok { box-shadow: 0 0 0 4px rgba(52,211,153,.15); animation: qpulse 1.6s ease-in-out infinite; }
.cp-prompt { padding: 8px 10px; border-radius: 10px; background: rgba(120,140,220,.05); border-left: 3px solid rgba(var(--accent-rgb),.5); white-space: pre-wrap; word-break: break-word; }
.cp-prompt .dim { display: block; font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.cp-sec { display: flex; flex-direction: column; gap: 6px; }
.cp-h { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: var(--fs-12); color: var(--text-strong); cursor: default; }
.cp-h[role=button] { cursor: pointer; }
.cp-bar { height: 4px; border-radius: 4px; background: rgba(120,140,220,.12); overflow: hidden; }
.cp-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); border-radius: 4px; transition: width .4s; }
.cp-todos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-12); }
.cp-todos li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 6px; border-radius: 8px; }
.cp-todos li.in_progress { background: rgba(var(--accent-rgb),.08); color: var(--text-strong); font-weight: 600; }
.cp-todos li.completed { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(120,140,220,.35); }
.cp-tick { flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 5px; border: 1.5px solid rgba(120,140,220,.4); display: grid; place-items: center; color: #04110a; }
.cp-todos li.completed .cp-tick { background: var(--ok); border-color: var(--ok); }
.cp-todos li.in_progress .cp-tick { border-color: var(--accent); }
.cp-spin { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: qpulse 1.2s ease-in-out infinite; }
.cp-hint { margin: 0; }
.cp-plan, .cp-note { white-space: pre-wrap; word-break: break-word; font-size: var(--fs-12); line-height: 1.5; padding: 10px 11px; border-radius: 10px; background: rgba(120,140,220,.05); border: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.cp-act { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-12); }
.cp-act li { display: flex; align-items: flex-start; gap: 7px; padding: 4px 4px; border-radius: 7px; }
.cp-act li:hover { background: rgba(120,140,220,.06); }
.cp-act li > .nx-icon, .cp-act li > svg { flex: none; margin-top: 2px; color: var(--accent); }
.cp-act-t { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cp-act-t b { font-weight: 600; }
.cp-ago { flex: none; white-space: nowrap; }
.cp-mynote { resize: vertical; min-height: 64px; font-size: var(--fs-12); }
.cp-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cp-chips::-webkit-scrollbar { display: none; }
.cp-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 180px; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: rgba(120,140,220,.05); color: var(--text); font: 600 var(--fs-12) var(--sans); cursor: pointer; }
.cp-chip.on { border-color: rgba(var(--accent-rgb),.6); background: rgba(var(--accent-rgb),.12); color: var(--text-strong); }
.cp-chip .dot { flex: none; }
.cp-body > * { flex: none; }
/* Claude kullanımı paneli (views/claudeusage.js) */
.cu.embedded { width: 100%; height: auto; max-width: 760px; }
.cu-state { padding: 0 12px 14px; }
.cu-note { display: flex; gap: 6px; align-items: flex-start; margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(120,140,220,.06); border: 1px solid var(--line); color: var(--muted); line-height: 1.45; }
.cu-note > svg { flex: none; margin-top: 2px; }
.cu-note.warn { color: var(--warn, #fbbf24); border-color: rgba(251,191,36,.4); }
.cu-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cu-tile { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 12px; background: rgba(var(--accent-rgb),.06); border: 1px solid var(--line); min-width: 0; }
.cu-tile .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cu-big { font-size: var(--fs-16); color: var(--text-strong); font-variant-numeric: tabular-nums; }
.cu .seg button { min-height: 32px; }
.cu .seg.sm button { padding: 3px 9px; min-height: 28px; }
.cu-chart { display: flex; align-items: flex-end; gap: 2px; height: 84px; padding: 4px 2px 0; border-bottom: 1px solid var(--line); }
.cu-bar { flex: 1 1 0; min-width: 2px; height: 100%; display: flex; align-items: flex-end; }
.cu-bar i { display: block; width: 100%; border-radius: 2px 2px 0 0; background: var(--accent); min-height: 0; }
.cu-axis { display: flex; justify-content: space-between; gap: 6px; }
.cu-list, .cu-sess { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cu-list li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 8px; background: rgba(120,140,220,.05); font-size: var(--fs-12); }
.cu-list li > b:first-child { flex: 1; min-width: 0; }
.cu-usd { font-variant-numeric: tabular-nums; color: var(--text-strong); white-space: nowrap; }
.cu-sess li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(120,140,220,.04); font-size: var(--fs-12); }
.cu-sess li.cur { border-color: rgba(var(--accent-rgb),.65); background: rgba(var(--accent-rgb),.12); box-shadow: inset 3px 0 0 var(--accent); }
.cu-s1, .cu-s2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cu-s1 > b:first-child, .cu-s2 > span:first-child { flex: 1; min-width: 0; }
.cu-s3 { display: flex; flex-wrap: wrap; gap: 4px 12px; font-variant-numeric: tabular-nums; }
.cu-set label { display: flex; flex-direction: column; gap: 3px; }
.cu-ov { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.cu-ov-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.cu-ov-f .input { padding: 6px 8px; min-height: 36px; }
@media (min-width: 900px) { .cu.embedded .cu-sess { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (pointer: coarse) { .cu .seg button, .cu .seg.sm button { min-height: 44px; min-width: 44px; } .cu .cp-h .seg { margin: -4px 0; } }
@media (max-width: 460px) { .cu-tiles { gap: 6px; } .cu-big { font-size: var(--fs-14); } }

/* ---------- Test ortamı ---------- */
.wt-made { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.3); display: flex; flex-direction: column; gap: 3px; }
.wt-cmds { display: flex; flex-direction: column; gap: 6px; }
.wt-cmd { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: rgba(120,140,220,.05); border: 1px solid var(--line); cursor: copy; }
.wt-cmd:hover { border-color: rgba(var(--accent-rgb),.5); }
.wt-cmd code { font-size: var(--fs-12); color: var(--text-strong); }
.uz-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uz-f > span:first-child { font-size: var(--fs-13); color: var(--muted, inherit); }
.uz-f input[type=range] { width: 100%; }
.uz-f .seg { align-self: flex-start; }
.uz-live { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.uz-live > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uz-bar { height: 6px; border-radius: 3px; background: rgba(120,140,220,.12); overflow: hidden; }
.uz-bar i { display: block; height: 100%; background: var(--ok, #34d399); transition: width .4s; }
.uz-bar i.warn { background: var(--warn, #fbbf24); } .uz-bar i.bad { background: var(--bad, #f87171); }
@media (max-width: 900px) { .uz-live { grid-template-columns: 1fr 1fr; } }
.wt-link { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
/* ---------- Uygulama temaları seçici (Hesap → Görünüm) ---------- */
.skin-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.skin-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 1000px) { .skin-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.skin-opt { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.skin-opt:hover { border-color: rgba(var(--accent-rgb), .45); }
.skin-opt.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .2); }
.skin-t { display: flex; align-items: center; gap: 6px; }
.skin-d { line-height: 1.35; }
/* Önizleme: küçük bir uygulama kabuğu çizimi */
.skin-pv { display: flex; width: 100%; align-self: stretch; height: 82px; border-radius: 8px; overflow: hidden; border: 1px solid var(--l); }
.skin-pv i { display: block; }
.skin-pv.glow { background-image: radial-gradient(120px 60px at 90% 0, rgba(129,140,248,.35), transparent 70%) !important; }
.pv-side { width: 22%; flex: none; padding: 6px 4px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--l); }
.pv-side i { height: 5px; border-radius: 3px; background: var(--l); }
.pv-side i.on { background: var(--accent); opacity: .8; }
.pv-main { flex: 1; padding: 6px; display: flex; flex-direction: column; gap: 5px; }
.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: 18px; }
.pv-kpis i { background: var(--p); border: 1px solid var(--l); border-radius: var(--rr); }
.pv-kpis.strip { gap: 0; border: 1px solid var(--l); border-radius: var(--rr); overflow: hidden; }
.pv-kpis.strip i { border: 0; border-radius: 0; border-right: 1px solid var(--l); }
.pv-kpis.strip i:last-child { border-right: 0; }
.pv-cards { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.pv-cards > i { background: var(--p); border: 1px solid var(--l); border-radius: var(--rr); position: relative; }
.pv-btn { position: absolute; left: 5px; bottom: 5px; width: 45%; height: 7px; border-radius: 2px; background: var(--accent); }
.skin-pv.glow .pv-btn { background: var(--grad); }
.pv-btn.pill { border-radius: 9px; }

/* ---------- Claude hesapları (views/claudeacc.js) ---------- */
.cacc-btn { gap: 5px; max-width: 170px; }
.cacc-btn .cacc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cacc-auto { font-size: var(--fs-12); padding: 1px 5px; border-radius: 6px; background: rgba(56,189,248,.14); color: var(--accent); font-weight: 600; }
.cacc-pend { color: var(--warn); animation: blink 1.1s infinite; }
.cacc-btn.pending { border-color: rgba(251,191,36,.45); }
.cacc-menu { min-width: 290px; }
.cacc-menu > button { align-items: center; }
.cacc-menu > button[disabled] { opacity: .5; cursor: default; }
.cacc-menu > button.sel { background: rgba(56,189,248,.1); }
.cacc-radio { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.cacc-menu > button.sel .cacc-radio { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--panel-solid); background: var(--accent); }
.cacc-opt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cacc-opt small { color: var(--muted); font-size: var(--fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.warn-t { color: var(--warn); } .bad-t { color: var(--bad); }
.cacc-warn { padding: 9px 12px; border-radius: 10px; background: rgba(251,191,36,.09); border: 1px solid rgba(251,191,36,.3); margin-bottom: 12px; }
.cacc-list { display: flex; flex-direction: column; gap: 8px; }
.cacc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 76px; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(120,140,220,.04); }
.cacc-row.over { border-color: rgba(248,113,113,.4); }
.cacc-row.off { opacity: .8; border-style: dashed; }
.cacc-who { min-width: 0; }
.cacc-use { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cacc-bar { display: grid; grid-template-columns: 44px 1fr 38px; align-items: center; gap: 8px; font-size: var(--fs-12); }
.cacc-bar span { color: var(--muted); } .cacc-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.cacc-bar .progress { margin: 0; }
.cacc-act { display: flex; gap: 2px; align-items: center; justify-content: flex-end; }
.cacc-cfg { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.cacc-cfg .switch-row { display: flex; gap: 9px; align-items: center; cursor: pointer; }
.cacc-cfg .switch-row small { display: block; }
.cacc-th { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.cacc-th label { display: flex; align-items: center; gap: 7px; font-size: var(--fs-13); color: var(--muted); }
.cacc-terms { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cacc-term { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.cacc-term + .cacc-term { border-top: 1px solid var(--line); }
.cacc-term select { max-width: 46%; }
/* Geçiş ilerlemesi (17 Kas): adım metni + Vazgeç / Yeniden dene; dar ekranda düğme alta iner */
.cacc-gecis { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: var(--muted); }
.cacc-gecis-m { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.4; }
.cacc-gecis .btn { flex: none; }
.cacc-gecis.g-yaziliyor .cacc-gecis-m, .cacc-gecis.g-surduruluyor .cacc-gecis-m { color: var(--text); }
@media (max-width: 720px) {
  .cacc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .cacc-use { grid-column: 1 / -1; grid-row: 2; }
  .cacc-btn { max-width: none; } .cacc-btn .cacc-name { display: none; }
  /* geçiş satırı olan terminal: metin tam genişlik, hesap seçimi alt satıra (aksi halde metin harf harf kırılıyordu) */
  .cacc-term.has-gecis { flex-wrap: wrap; }
  .cacc-term.has-gecis > div { flex: 1 1 calc(100% - 20px); }
  .cacc-term.has-gecis select { margin-left: 18px; max-width: calc(100% - 18px); }
}
.tab-acc { font-size: var(--fs-12); padding: 1px 6px; border-radius: 6px; background: rgba(192,132,252,.14); color: #c4a6ff; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; }
.tab-acc.pending { background: rgba(251,191,36,.15); color: var(--warn); }
.cacc-act .btn.on svg { color: var(--accent); }
.cacc-log { display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 0; }
.cacc-log + .cacc-log { border-top: 1px solid var(--line); }
@media (max-width: 720px) { .tab-acc { display: none; } }

/* ---------- Mobil düzen: her sayfada aynı başlık, taşmayan araç çubukları, gruplu "Daha" ---------- */
.more-h { margin: 16px 4px 4px; font-size: var(--fs-12); font-weight: 600; color: var(--dim); } /* M1: cümle harfi, grup başlığı 12/600 */
.more-sheet .more-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 6px; } /* M1 kalıntı c: 'Bilgisayar bağla' tek satır */
.more-sheet .more-item { padding: 12px 4px 10px; gap: 6px; font-size: var(--fs-12); line-height: var(--lh-12); text-align: center; border-radius: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.more-sheet .more-item.on { background: rgba(var(--accent-rgb), .14); color: var(--text-strong); }
.more-sheet .more-item.on svg { color: var(--accent); }
.more-sheet .more-item .badge { top: 5px; right: 5px; padding: 1px 6px; }
.more-me { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 14px; background: var(--tint); border: 1px solid var(--line); color: var(--text); }
.more-me-l { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; color: var(--text); }
.more-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--on-accent); font-weight: 700; }
.more-me-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.more-bell { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--text); }
.more-bell .badge { position: absolute; top: -6px; right: -6px; padding: 1px 6px; }
.more-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.more-sheet .more-theme { margin-top: 14px; }
@media (max-width: 820px) {
  /* Sayfa başlığı: başlık + tek satır alt yazı solda, eşit boyutlu düğmeler sağda */
  .topbar { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .topbar > div:has(> h1) { flex: 1; min-width: 0; }
  .topbar h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar > .spacer { display: none; }
  .topbar > .btn { flex: none; height: 40px; min-width: 40px; padding: 0 10px; border-radius: 13px; }
  .topbar > select.input { flex: 0 1 46%; min-width: 0; height: 40px; }
  /* Panel: özet kartlarının adları kesilmesin, boş sunucu kartı yer kaplamasın */
  .srv-msg { min-height: 0; padding: 4px 0 0; }
  /* Sunucu kartı eylemleri: hepsi aynı çerçeveli kare düğme */
  .srv-actions .btn.sm:not(.primary) { width: 38px; padding: 0; justify-content: center; border: 1px solid var(--line-2); flex: none; }
  .srv-actions .btn.sm { height: 36px; }
  /* Dosyalar: araçlar iki düzenli satır (üstte eylemler, altta süzme ve görünüm) */
  .ftools { flex-wrap: wrap !important; overflow: visible; margin: 0; padding: 0; mask-image: none; gap: 6px; }
  .ftools > * { flex: none; }
  .ftools > .btn.sm { height: 36px; min-width: 38px; justify-content: center; }
  .ftools > .btn.sm.primary { flex: 1; }
  .ftools .spacer { display: block; flex: 0 0 100%; height: 0; }
  .ftools .fsearch { order: 0; flex: 1 1 0; min-width: 0; } .ftools .fsearch .input { width: 100%; height: 36px; }
  /* Projeler: başlangıç seçenekleri 2×2 (yana taşmaz); aynı eylemler başlıkta tekrar etmez */
  .proj-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; margin-left: 0; margin-right: 0; padding: 0; }
  .proj-mode { padding: 10px; gap: 9px; border-radius: 14px; }
  .proj-mode b { white-space: normal; font-size: var(--fs-13); line-height: 1.25; }
  .proj-mode .small { display: none; }
  .proj-mode-i { width: 32px; height: 32px; border-radius: 10px; }
  /* Tablolar: telefonda satır başına bir kart (yana kaydırma yok) */
  table.m-stack, table.m-stack tbody { display: block; }
  table.m-stack thead { display: none; }
  table.m-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
  table.m-stack tr:last-child { border-bottom: 0; }
  table.m-stack td { display: block; padding: 0; border: 0; min-width: 0; max-width: none !important; }
  table.m-stack td.m-full { grid-column: 1 / -1; }
  table.m-stack td.m-end { text-align: right; }
}

/* ---------- Panel: sade özet (4 kart), telefonda sunucular kısa satır ---------- */
.dash-bell { position: relative; }
.dash-bell .badge { position: absolute; top: -4px; right: -4px; padding: 1px 6px; font-size: var(--fs-12); }

/* ---------- Masaüstü düzen ---------- */
/* Kenar menüsü altı: hesap satırı (avatar + e-posta + kalan gün) Hesap sayfasını açar */
.sidebar-foot { display: flex; align-items: center; gap: 6px; padding: 10px 6px 4px; }
.side-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 11px; color: var(--text); }
.side-me:hover, .side-me.active { background: var(--tint); }
.side-me .more-av { width: 32px; height: 32px; font-size: var(--fs-13); }
.side-me-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: var(--fs-12); }
@media (min-width: 821px) {
  [data-sidebar="collapsed"] .sidebar-foot { display: flex; justify-content: center; padding: 8px 0; }
  [data-sidebar="collapsed"] .sidebar-foot .side-me-t, [data-sidebar="collapsed"] .sidebar-foot > .btn { display: none; }
  [data-sidebar="collapsed"] .side-me { flex: none; padding: 4px; }
  /* Dosyalar: araçlar tek satır; süzme kutusu daralır, yenile düğmesi alta düşmez */
  .ftools { flex-wrap: nowrap !important; }
  .ftools > * { flex: none; }
  .ftools .fsearch { flex: 0 1 170px; min-width: 90px; } .ftools .fsearch .input { width: 100%; }
}
@media (min-width: 821px) and (max-width: 1250px) { .ftools > .btn.sm:not(.primary):not(.icon) > span { display: none; } }
/* Bilgisayar bağla: 7 seçenek 4 sütunda ferah dursun */
@media (min-width: 1101px) { .connect-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 821px) and (max-height: 880px) {
  /* alçak ekranlarda (dizüstü) kenar menüsü kaydırmadan sığsın */
  .sidebar { padding-top: 14px; padding-bottom: 10px; gap: 2px; }
  .sidebar .brand { padding-bottom: 12px; }
  .nav-item { padding-top: 7px; padding-bottom: 7px; }
  .nav-label { padding-top: 6px; }
  .side-toggle { margin-top: 2px; padding-top: 6px; padding-bottom: 6px; }
}
/* daraltılmış kenar menüsünde logo görünsün (yalnız ad ve alt yazı gizlenir) */
@media (min-width: 821px) { [data-sidebar="collapsed"] .sidebar .brand > div.brand-logo { display: grid; } }
/* sunucu kartı eylemleri masaüstünde de tek satır */
/* Yardımcı sunucu: tıklanabilir iş satırı ve çıktı penceresi */
.uz-job { gap: 10px; padding: 8px 6px; margin: 0 -6px; border-top: 1px solid var(--line); align-items: center; cursor: pointer; border-radius: 8px; }
.uz-job:hover { background: var(--tint); }
.uz-log-m { width: min(860px, 100%); }
.uz-log-cmd { display: block; padding: 8px 10px; border-radius: 9px; background: var(--tint); overflow-wrap: anywhere; }
.uz-log { margin-top: 10px; max-height: 60vh; min-height: 160px; font-size: var(--fs-12); }

/* Dokunmatik cihazda uygulama hissi: uzun basınca tarayıcının seçim/bağlantı menüsü ve mavi dokunma vurgusu çıkmasın.
   Yazı alanları, kod/çıktı blokları ve .selectable işaretli yerler seçilebilir kalır (main.js: contextmenu). */
@media (pointer: coarse) {
  body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
  input, textarea, select, [contenteditable], pre, code, .selectable, .ts-text, .ts-text * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
  img, a { -webkit-user-drag: none; }
}

/* Bilgisayar bağla › Windows: moiterm zaten kurulu ve güncelse indirme düğmesinin üstündeki not */
.win-current { margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(52,211,153,.35); background: rgba(52,211,153,.08); color: var(--text); font-size: var(--fs-13); line-height: 1.45; }

/* Test ortamı: izin seçimi ve bağlantı başına izin düzenleme */
.wt-perms { display: grid; gap: 6px; }
.wt-perm { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.wt-perm input { grid-row: span 2; margin-top: 3px; }
.wt-perm.on { border-color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.wt-link-box { border-bottom: 1px solid var(--line); padding: 4px 0; }
.wt-link-box.off { opacity: .6; }
.wt-edit { padding: 8px 0 12px 26px; }
.wt-actions { display: flex; gap: 6px; padding: 0 0 6px 26px; flex-wrap: wrap; }

/* Zengin panelin 6 özet kartı: telefonda 2, bilgisayarda 3, geniş ekranda 6 sütun (her temada) */

/* Panel: "Devam et" kartı */

/* Sunucular: sabitleme yıldızı, grup başlıkları */
.btn.fav.on svg { color: var(--warn); fill: currentColor; }
.grp-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.grp-h:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.grp-h svg { transition: transform .15s; }
@media (pointer: coarse) { .srv-card .row .btn.icon { min-width: 44px; min-height: 44px; } }

/* Kısayol yardım penceresi */
.help-l { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; padding: 14px 16px; margin: 0; align-items: center; }
.help-l dt, .help-l dd { margin: 0; }
.help-l kbd { white-space: nowrap; }
.pal-item.on:focus-visible, .pal-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.grp-h { margin-bottom: -4px; }

/* Ayarlar: arama kutusu, gruplama, "Kaydedildi" göstergesi */
.ayar-ara { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.ayar-ara .input { flex: 1; min-width: 0; max-width: 460px; min-height: 44px; }
.ayar-saved { font-size: var(--fs-13); font-weight: 600; color: var(--ok, #34d399); opacity: 0; transition: opacity .25s; min-width: 96px; white-space: nowrap; }
.ayar-saved.on { opacity: 1; }
.skin-h.grp { margin: 18px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.skin-h.grp b { font-size: var(--fs-12); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .ayar-saved { min-width: 0; } }

/* ---------- Terminal grupları (termgroups.js) ---------- */
.term-tabs { flex-wrap: nowrap; }
 .tg-mcur:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; }
.tg-more { padding: 0 2px; opacity: .7; border-radius: 6px; } .tg-more:hover { opacity: 1; background: rgba(128,128,128,.2); }
.tg-st { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--dim); }
.tg-st.claude, .tg-st.calisiyor { background: var(--accent-2); } .tg-st.baglaniyor { background: var(--warn); animation: tgpulse 1.4s ease-in-out infinite; } .tg-st.onay { background: var(--warn); } .tg-st.kopuk, .tg-st.ajan-hata { background: var(--bad); } .tg-st.bosta { background: var(--ok); } .tg-st.bitti { background: var(--dim); }
@keyframes tgpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .tg-st.baglaniyor { animation: none; } }
.tg-unread { text-decoration: none; min-width: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 var(--fs-12)/16px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
.tab-pin { font-size: var(--fs-12); }
.tg-open { position: relative; }
.tg-cnt { font: 700 var(--fs-12) var(--sans); margin-left: 3px; opacity: .8; font-variant-numeric: tabular-nums; }
.tg-menu-bg { position: fixed; inset: 0; z-index: 60; }
.tg-menu { position: fixed; z-index: 61; min-width: 200px; padding: 6px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 2px; }
.tg-menu button[role=menuitem] { text-align: left; padding: 9px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); font: 600 var(--fs-13) var(--sans); cursor: pointer; min-height: 36px; }
.tg-menu button[role=menuitem]:hover, .tg-menu button[role=menuitem]:focus-visible { background: rgba(var(--accent-rgb),.12); outline: none; }
.tg-menu .danger { color: var(--bad); }
.tg-colors { display: flex; gap: 6px; padding: 6px 8px; flex-wrap: wrap; }
/* mobil üst çubuk */
.tg-mtop { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; touch-action: pan-y; }
.tg-mcur { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); border-bottom: 2px solid var(--c, var(--accent)); background: rgba(var(--accent-rgb),.08); color: var(--text-strong); font: 600 var(--fs-14) var(--sans); } .tg-mtop .tg-open { height: 40px; min-width: 44px; }
/* çekmece */
.tg-actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 4px 2px; }
.tg-move { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.tg-move .tg-dot { margin-right: 2px; }
/* sağdaki araç düğmeleri sekmeler/çipler taşsa da hep görünür (yatay kaydırmada yapışık) */
.tg-right { display: flex; align-items: center; gap: 4px; position: relative; padding-left: 8px; background: var(--panel-solid); border-left: 1px solid var(--line); flex: none; margin-left: auto; z-index: 3; }

/* ---------- UI turu 1: mobil tam ekran terminal, sade üst çubuk, okunur çip/sekmeler ---------- */
html.term-full { --bottom-nav: 0px; }
html.term-full .bottom-nav { display: none; }
html.term-full.term-nav-peek .bottom-nav { display: flex; z-index: 70; }
html.term-full.term-nav-peek { --bottom-nav: 62px; }
@media (max-width: 820px) {
  .term-tabs { gap: 6px; padding: max(6px, env(safe-area-inset-top)) 8px 6px; min-height: 52px; }
  .term-tabs > .spacer { display: none; }
  .tg-mtop { flex: 1 1 auto; min-width: 0; }
  .tg-mcur { flex: 1 1 0; min-width: 96px; height: 44px; gap: 9px; }
  .tg-mname { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; text-align: left; }
  .tg-mname b { font: 700 var(--fs-14) var(--sans); } .tg-mname small { font: 400 var(--fs-12) var(--sans); color: var(--dim); }
  .tg-mtop .tg-open { height: 44px; min-width: 48px; border-radius: 12px; }
  .tg-right { padding-left: 0; border-left: 0; background: none; position: static; }
  .tg-menu-btn { min-width: 44px; height: 44px; border-radius: 12px; }
  .tg-cnt { font-size: var(--fs-12); }
  .key-bar { gap: 4px; }
  .key-bar button { min-width: 40px; height: 42px; padding: 0 8px; font-size: var(--fs-14); }
  .key-bar button.arrow { min-width: 40px; }
  .tdock.touch .key-bar button { height: 42px; }
  .tin-mode, .tin-send { min-height: 44px; }
  /* güvenli alan: alt gezinme yokken giriş çubuğu ev çubuğunun üstünde */
  html.term-full .tdock.touch { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
}
/* yatay telefon / alçak ekran: tek ince üst çubuk */
@media (max-height: 520px) {
  .term-tabs { min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
   .tg-mcur{ height: 32px; }
  .tsug { display: none !important; }
}
@media (max-width: 820px) { .term-tabs .tg-open, .term-tabs .tg-menu-btn { height: 44px; min-height: 44px; min-width: 44px; } }

/* ---------- Bölünmüş ekran (tiles.js) ---------- */
.term-stage.split { background: var(--bg, #05070f); }
.panes { position: relative; }
.panes.tiled { display: grid; gap: 0; background: var(--line); }
.panes.tiled .term-pane { padding-top: var(--tile-top, 31px) !important; min-width: 0; min-height: 0; overflow: hidden; }
.panes.tiled .term-pane.fx-frame { padding: 6px; padding-top: var(--tile-top, 31px) !important; }
.panes.tiled .term-pane.focused { box-shadow: none; }
.panes.tiled .term-search { top: calc(var(--tile-top, 31px) + 6px); right: 10px; }
.panes.tiled .term-banner:not(.end) { top: calc(var(--tile-top, 31px) + 8px); }
.term-pane.fx-lite::after { display: none; }   /* 4+ hücrede odaksız hücrelerin efekt katmanı kapalı: çizim bütçesi */
.tile-ov { position: absolute; inset: 0; display: grid; pointer-events: none; z-index: 3; }
.tile-cell { position: relative; min-width: 0; min-height: 0; pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.tile-cell.focus { box-shadow: inset 0 0 0 2px var(--accent); z-index: 1; }
.tile-cell.drop-on { box-shadow: inset 0 0 0 3px var(--warn); background: rgba(251,191,36,.08); }
.tile-cell.dragging { opacity: .6; }
.tile-h { pointer-events: auto; display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 6px; background: var(--panel-solid); border-bottom: 1px solid var(--line-2); box-shadow: inset 3px 0 0 var(--c, var(--line-2)); color: var(--muted); font-size: var(--fs-12); cursor: grab; user-select: none; }
.tile-cell.focus .tile-h { background: color-mix(in srgb, var(--accent) 16%, var(--panel-solid)); color: var(--text-strong); }
.tile-n { flex: none; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 5px; background: rgba(var(--accent-rgb),.16); color: var(--text-strong); font-size: var(--fs-12); }
.tile-cell.focus .tile-n { background: var(--accent); color: var(--on-accent, #04121a); }
.tile-title { min-width: 0; font-weight: 600; color: var(--text-strong); }
.tile-badge { flex: 0 1 auto; max-width: 28%; padding: 1px 7px; border-radius: 99px; font-size: var(--fs-12); background: var(--tint); color: var(--muted); }
.tile-badge.grp { display: inline-flex; align-items: center; gap: 4px; color: var(--text); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); }
.tile-b { flex: none; width: 26px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: none; color: inherit; font-size: var(--fs-14); cursor: pointer; }
.tile-b:hover, .tile-b.on { background: var(--tint); color: var(--text-strong); }
.tile-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tile-info { pointer-events: none; display: flex; align-items: center; gap: 10px; height: 21px; padding: 0 8px; font-size: var(--fs-12); background: color-mix(in srgb, var(--panel-solid) 88%, transparent); border-bottom: 1px solid var(--line); color: var(--muted); white-space: nowrap; overflow: hidden; }
.tl-state { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.tl-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.tl-state.claude i, .tl-state.calisiyor i { background: var(--accent-2); } .tl-state.bosta i { background: var(--ok); } .tl-state.kopuk i, .tl-state.ajan-hata i { background: var(--bad); } .tl-state.onay i, .tl-state.baglaniyor i { background: var(--warn); }
.tl-tool { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.tl-use { margin-left: auto; flex: none; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-empty { pointer-events: auto; position: absolute; inset: 30px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; background: var(--term-bg, #070b18); overflow: auto; }
.tile-div { pointer-events: auto; position: absolute; z-index: 4; background: transparent; touch-action: none; }
.tile-div.v { top: 0; bottom: 0; width: 9px; margin-left: -4px; cursor: col-resize; }
.tile-div.h { left: 0; right: 0; height: 9px; margin-top: -4px; cursor: row-resize; }
.tile-div:hover, .tile-div:focus-visible { background: rgba(var(--accent-rgb),.45); outline: none; }
body.tile-resizing { user-select: none; cursor: grabbing; }
body.tile-resizing .xterm { pointer-events: none; }
.tl-menu { top: calc(100% + 4px); right: 0; left: auto; max-height: 60vh; overflow-y: auto; min-width: 220px; z-index: 10; }
.tl-menu button.on { background: var(--tint); }
.tile-btn.on { background: rgba(var(--accent-rgb),.15); color: var(--text-strong); }
/* kurulum penceresi */
.tile-setup { width: min(640px, 100%); }
.tile-setup-b { padding: 16px 20px; }
.tl-sec { margin: 16px 0 8px; font-size: var(--fs-12); font-weight: 600; color: var(--dim); } /* M1: cümle harfi */
.tl-layouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.tl-lay { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--tint); color: var(--text); cursor: pointer; font: var(--fs-12) var(--sans); }
.tl-lay.on { border-color: var(--accent); background: rgba(var(--accent-rgb),.14); }
.tl-thumb { display: grid; gap: 2px; width: 52px; height: 34px; }
.tl-thumb i { background: var(--dim); border-radius: 2px; opacity: .7; }
.tl-lay.on .tl-thumb i { background: var(--accent); opacity: 1; }
.tl-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
.tl-slot { display: flex; align-items: center; gap: 8px; }
.tl-slot b { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: rgba(var(--accent-rgb),.16); font-size: var(--fs-12); }
.tl-slot select { min-width: 0; flex: 1; }
.tl-per { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 4px 12px; margin-top: 8px; }
.tl-note { display: flex; gap: 6px; align-items: center; margin: 8px 0 0; color: var(--warn); }
.tl-keys { margin: 0; padding-left: 18px; line-height: 1.9; color: var(--muted); }
/* yan menüyü gizle: terminaller tüm genişliği kaplar (yan menü dosyalarına dokunmadan; mobilde yan menü zaten yok) */
@media (min-width: 821px) {
  [data-tile][data-sidebar="collapsed"] { --sidebar: 56px; }
  [data-tile-wide] .shell { grid-template-columns: minmax(0, 1fr); }
  [data-tile-wide] .sidebar { display: none; }
}

/* ---------- İlk kullanım turu (tour.js): engellemeyen kart ---------- */
.tour { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(360px, calc(100vw - 32px)); padding: 14px 16px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--accent); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; animation: pop .2s cubic-bezier(.2,.9,.3,1.2); }
.tour-h { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.tour-h b { flex: 1; color: var(--text-strong); font-size: var(--fs-14); }
.tour-p { margin: 0; font-size: var(--fs-13); line-height: 1.55; color: var(--text); }
.tour-l { margin: 0; padding-left: 18px; font-size: var(--fs-13); line-height: 1.7; color: var(--muted); }
.tour-dots { display: flex; gap: 5px; justify-content: center; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.tour-dots i.on { background: var(--accent); width: 16px; border-radius: 4px; }
.tour-f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tour-go { width: 100%; justify-content: center; }
.tour { max-height: calc(100dvh - 32px); overflow-y: auto; }
.tour .btn.sm { min-height: 32px; }
@media (max-width: 820px) { .tour { max-height: calc(100dvh - var(--bottom-nav, 64px) - 32px); } .tour .btn.sm { min-height: 44px; } }
@media (max-width: 820px) { .tour { right: 12px; left: 12px; width: auto; bottom: calc(var(--bottom-nav, 64px) + 12px + env(safe-area-inset-bottom)); } }
.help .btn.sm { margin-right: 6px; }

/* ---------- Terminal tasarımı 2: kısa ekran (yatay telefon) ve klavye açıkken sabit düzen ---------- */
html.kb-open, html.kb-open body { overflow: hidden; }
html.kb-open .main, html.kb-open .shell { height: 100%; }
@media (orientation: landscape) and (max-height: 520px) {
  .term-tabs { min-height: 40px; padding-top: max(3px, env(safe-area-inset-top)); padding-bottom: 3px; }
  .tg-mcur{ height: 34px; }
  .tg-mname small { display: none; }
  .tdock.touch { gap: 4px; padding: 4px 8px 3px; border-radius: 12px 12px 0 0; }
  .tdock.touch .key-bar button { height: 30px; }
  .tin-field, .tin-mode, .tin-send { min-height: 36px; height: 36px; }
  .tin-box { height: 34px; min-height: 34px; padding-top: 7px; padding-bottom: 7px; }
  .tin-ctx { line-height: 34px; }
  .tin-send { width: 36px; }
  .term-shell { padding-bottom: 0; }
}
/* görünen alan 420 px altındayken (yatay + klavye): üst şerit ve öneri satırı gizlenir, terminal alanı korunur */
html.kb-short .term-tabs, html.kb-short .tsug { display: none; }

/* Terminaldeki ajanın durumu (sunucudan: agent.state) — sekme, çekmece, bölünmüş ekran hücre başlığı */
.ag-st { display: inline-flex; align-items: center; gap: 4px; font: 600 var(--fs-12) var(--sans); white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.ag-st > i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: none; }
.ag-st.working { color: var(--ok); } .ag-st.working > i { background: var(--ok); animation: ag-pulse 1.2s ease-in-out infinite; }
.ag-st.approval { color: var(--warn); } .ag-st.approval > i { background: var(--warn); box-shadow: 0 0 0 3px rgba(251,191,36,.25); }
.ag-st.error { color: var(--bad); } .ag-st.error > i { background: var(--bad); }
@keyframes ag-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .ag-st.working > i { animation: none; } }
/* ---------- Terminal tasarımı 3 (mobil): uygulama hissi, tek ince üst çubuk, sıkı alt panel ---------- */
@media (max-width: 820px) {
  .term-tabs { min-height: 48px; padding: max(4px, env(safe-area-inset-top)) 4px 4px 6px; gap: 2px; background: var(--panel-solid); }
  .tg-mcur { height: 44px; border: 0; border-bottom: 0; border-radius: 12px; background: none; padding: 0 8px 0 6px; box-shadow: none; position: relative; }
  .tg-mcur::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--c, var(--accent)); opacity: .75; }
  .tg-mcur:active { background: var(--tint-2); }
  .tg-mname b { font: 700 var(--fs-14) var(--sans); } .tg-mname small { font: 400 var(--fs-12) var(--sans); color: var(--muted); }
  .tg-mtop .tg-open { background: none; border: 0; min-width: 44px; height: 44px; gap: 3px; color: var(--muted); }
  .tg-mtop .tg-cnt { font: 700 var(--fs-12) var(--sans); color: var(--text); }
  .tg-menu-btn { background: none !important; border: 0 !important; }
  /* alt panel: öneri satırı + giriş + tuş şeridi daha sıkı */
  .tdock.touch { gap: 4px; padding: 5px 6px 4px; border-radius: 14px 14px 0 0; }
  .tin-mode { width: 44px; padding: 0; justify-content: center; border-radius: 14px; }
  .tin-mode .lbl { display: none; }
  .tin-mode .dot { width: 10px; height: 10px; margin: 0; }
  .tdock.touch .key-bar { gap: 4px; }
  .tdock.touch .key-bar button { height: 44px; min-width: 44px; border-radius: 12px; }
  .tdock.touch .key-bar button.kb-act { background: var(--tint-2); color: var(--muted); }
  .tdock.touch .key-bar button.kb-act:first-child { background: rgba(var(--accent-rgb),.16); color: var(--accent); }
  .kb-sep { flex: none; width: 1px; margin: 8px 3px; background: var(--line-2); }
  /* boyut ipucu terminal içeriğini (istem satırını) kapatmasın: üstte, küçük */
  .term-size-hint { bottom: auto; top: 8px; right: 8px; font-size: var(--fs-12); padding: 4px 9px; opacity: .9; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.kb-sep { display: none; }
@media (max-width: 820px) { .kb-sep { display: block; } }
@media (max-width: 820px) and (max-height: 520px) {
  .term-tabs { min-height: 38px; }
  .tg-mcur, .tg-mtop .tg-open, .tg-menu-btn { height: 34px; }
  .tdock.touch .key-bar button { height: 36px; }
}

/* ===== Gorsel-web1: Panel önceliklendirme (Dikkat gerekiyor, Her şey yolunda, 4 özet kart) ===== */
.big-ic.warn { background: rgba(251,191,36,.16); color: var(--warn); }
.attn { padding: 6px 14px 10px; border-color: rgba(248,113,113,.4); background: linear-gradient(90deg, rgba(248,113,113,.08), transparent 60%), var(--panel); }
.attn-h { display: flex; align-items: center; gap: 8px; padding: 8px 0 4px; color: var(--bad); }
.attn-h b { color: var(--text); }

/* Hesap: bölüm gezinmesi */
.ayar-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.ayar-nav .chip { min-height: 36px; }
@media (max-width: 820px) { .ayar-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; } .ayar-nav::-webkit-scrollbar { display: none; } .ayar-nav .chip { flex: none; } }
#gorunum, #ayar-terminal, #ayar-erisim, #ayar-profil, #ayar-mobil, #ayar-oturum, #hesap-sil { scroll-margin-top: 12px; }
/* Erişim kartındaki .stat kutuları (Paket/Bitiş/Sunucu limiti) dar ve metin dolu; .stat::after'ın 110px'lik
   köşe parlaması burada metnin üstüne biniyor (position:relative eklenince artık karttan taşmıyor ama kutuyu
   neredeyse kaplıyor) — modern kiple aynı yaklaşım: bu kompakt satırda parlama kapalı. */
#ayar-erisim .stat::after { display: none; }
@media (max-width: 520px) { .opt-row.opt-plug { flex-direction: column; align-items: stretch; } .opt-row.opt-plug > .btn { width: 100%; min-height: 44px; } }

/* Sunucular: durum süzgeci, çoklu seçim */
.srv-filter .chip { min-height: 36px; }
.srv-filter .chip .dot { margin-right: 6px; }
.chip-sep { width: 1px; height: 22px; background: var(--line-2); flex: none; }
.srv-ck { width: 22px; height: 22px; flex: none; accent-color: var(--accent); cursor: pointer; }
.srv-card.picked { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .25); }
.btn.on { border-color: rgba(var(--accent-rgb), .7); background: rgba(var(--accent-rgb), .14); }
@media (max-width: 820px) { .srv-ck { width: 26px; height: 26px; } .srv-filter { gap: 8px; } .srv-filter > div[style] { flex: 1 0 100% !important; max-width: none !important; } }
.sel-bar b { white-space: nowrap; }
@media (max-width: 820px) { .sel-bar { flex-wrap: wrap; } .sel-bar .btn { min-height: 40px; } .srv-filter .chip { flex: none; } }
.srv-nm { flex: 1 1 110px; min-width: 110px; }
.grid.g3 .srv-card > .row:first-child { flex-wrap: wrap; row-gap: 2px; }

/* Dosyalar (telefon): filtre kendi satırında, 44 px dokunma alanı, düzenli araç satırı */
@media (max-width: 820px) {
  .files-content .ftools { flex-wrap: wrap !important; overflow: visible; mask-image: none; margin: 0; padding: 0; gap: 8px; }
  .files-content .ftools .fsearch { order: -1; flex: 1 1 100%; min-width: 0; }
  .files-content .ftools .fsearch .input { width: 100%; height: 44px; padding-left: 32px; }
  .files-content .ftools .spacer { display: none; }
  .files-content .ftools > .btn.sm { height: 44px; min-width: 44px; justify-content: center; }
  .files-content .ftools > .btn.sm.primary { flex: 1 1 auto; }
  .files-content .fbar .btn.sm { height: 44px; min-width: 44px; }
  .files-content .fbar .path-input { height: 44px; }
  .files-content table.files td.ck, .files-content table.files th.ck { width: 44px; text-align: center; padding: 0; }
  .files-content table.files input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--accent); }
  .files-content table.files td { padding-block: 2px; }
  .files-content table.files .fname { display: flex; min-height: 44px; }
  .files-content table.files .fmeta { padding-bottom: 8px; }
}
@media (max-width: 820px) { .files-content .sel-bar { gap: 6px; } .files-content .sel-bar .btn.sm { height: 40px; min-width: 40px; padding-inline: 8px; } }

/* Kısayol yardımı: bölümlü, kaydırılabilir */
.pal.help { max-height: 80vh; overflow-y: auto; }
.help-h { margin: 0; padding: 12px 16px 0; font-size: var(--fs-12); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.help-sc .help-l { padding-top: 8px; padding-bottom: 6px; }
.pal-item[aria-selected="true"] { background: rgba(var(--accent-rgb), .14); }
.pal-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Dokunma alanı ≥44 px (telefon): Sunucular süzgeç çipleri, Bilgisayarlar onay kutusu */
@media (max-width: 820px) {
  :root:root .srv-filter .chip { min-height: 44px; }
  /* Kutu ve etiketi tek parça (flex). Eskiden grid kutuyu etiketten ayırıp yüzdürüyordu (Dosyalar 'Gizli'); yalnız etiketsiz kutu ortalanır */
  label.check { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; }
  label.check:has(> input[aria-label]) { display: inline-grid; place-items: center; margin: -10px; }
}

/* Dokunma alanı: Terminal, Panel, Hesap (masaüstü >=32 px, telefon >=44 px) */
:root:root .input.sm { height: 32px; }
:root:root .switch { width: 46px; height: 32px; }
:root:root .switch i { inset: 4px 2px; }
:root:root .swatch { width: 32px; height: 32px; flex: none; }
:root:root .row:has(> .swatch) { flex-wrap: wrap; }
:root:root .card-h > a.small, :root:root .resume-h > a.small, :root:root a.srv-name { display: inline-flex; align-items: center; min-height: 32px; min-width: 32px; }
:root:root .cmd-gh { min-height: 32px; }
:root:root .cmd-item .btn.icon { flex: none; min-width: 32px; }
@media (max-width: 820px) {
  :root:root .input.sm { height: 46px; }
  :root:root .switch { width: 52px; height: 44px; }
  :root:root .switch i { inset: 10px 5px; }
  :root:root .swatch { width: 44px; height: 44px; border-radius: 12px; }
  :root:root .card-h > a.small, :root:root .resume-h > a.small, :root:root a.srv-name { min-height: 44px; min-width: 44px; }
  :root:root .cmd-gh { min-height: 44px; }
  :root:root .cmd-item { min-height: 44px; }
  :root:root .cmd-item .btn.icon { min-width: 44px; width: 44px; }
  :root:root .term-shell .cmd-side .btn.sm.icon, :root:root .term-shell .cmd-side a.btn.sm { min-height: 44px; min-width: 44px; }
  :root:root .ayar-nav .chip { min-height: 44px; }
}

/* Dokunma alanı: Koruma/Sunucular/Dosyalar/Ayarlar (.seg, .check, yol çubuğu): masaüstü >=32 px, telefon >=44 px */
:root:root .seg button { min-height: 32px; }
:root:root .seg.sm button { min-height: 32px; }
:root:root .check { min-height: 32px; }
:root:root .crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 32px; }
@media (max-width: 820px) {
  :root:root .seg button, :root:root .seg.sm button { min-height: 44px; min-width: 44px; }
  :root:root .check { min-height: 44px; }
  :root:root th.ck input, :root:root td.ck input { width: 26px; height: 26px; }
}
/* 'Tümünü seç': onay kutusunu saran tıklanabilir etiket (kutu küçük, hedef büyük) */
:root:root .ckl { display: grid; place-items: center; min-width: 32px; min-height: 32px; cursor: pointer; margin: 0 auto; }
@media (max-width: 820px) { :root:root .ckl { min-width: 44px; min-height: 44px; } }

/* Dosyalar: sıralama, gruplama, son açılanlar, klavye ile süzme (gorsel-web9) */
.ftools .fsort { width: auto; min-width: 120px; max-width: 150px; height: 32px; }
.files .grp-row td { background: var(--bg2, rgba(127,127,127,.08)); font-size: var(--fs-12); font-weight: 600; letter-spacing: .02em; padding: 6px 12px; color: var(--muted); }
.files tr.kb td { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.files tr.kb td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.bm-row .bm-lbl { flex: none; align-self: center; }
.recent-row { padding: 2px 0; }
.bm-row .chip { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 820px) {
  .ftools .fsort { height: 36px; flex: 1 1 110px; max-width: none; }
  .bm-row .chip { min-height: 44px; }
  .files .grp-row td { padding: 8px 12px; }
}

/* Projeler/Sunucular: arama kutusundan oklarla seçilen öğe */
.srv-card.kb, .card.proj.kb { outline: 2px solid var(--accent); outline-offset: 2px; }
tr.kb > td { background: rgba(var(--accent-rgb), .12); }
.proj-actions .btn.icon { min-width: 32px; }
@media (max-width: 760px) { .proj-actions .btn.icon { min-width: 44px; } }

/* ---------- Panel cilası (görsel-web11): hiyerarşi, ritim, durumlar, ölçülü hareket ---------- */
/* M0: eski adlar ortak ölçeğe bağlı (base.css --fs-*) */
:root { --gap-card: 14px; --ease-out: cubic-bezier(.2,.7,.2,1); }
/* ritim: kart arası boşluk tek değer (14), bölüm başlığı ile içerik arası 12 */
/* kart hiyerarşisi: KPI değeri baskın, etiket ve açıklama geri planda; hairline üst ışık */
.kpi { gap: 4px; padding: 14px 16px; }
.kpi .k { font-size: var(--fs-12); font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.kpi .v { font-size: var(--fs-20); line-height: 1.15; }
.kpi .d { font-size: var(--fs-12); }
@media (max-width: 820px) { .kpi { padding: 12px 14px; } .kpi .v { font-size: var(--fs-20); } }
.card-h h3 { font-size: var(--fs-16); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-h > .nx-icon, .card-h > svg { color: var(--muted); flex: none; }
/* hover / odak / basılı: yalnız transform + gölge + kenarlık (ucuz) */
.kpi.link, .srv-card { transition: border-color .15s, box-shadow .15s, transform .15s var(--ease-out), background-color .15s; }
@media (hover: hover) {
  .kpi.link:hover, .srv-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
}
.kpi.link:active, .srv-card:active { transform: translateY(0) scale(.992); box-shadow: var(--shadow); }
.kpi.link:focus-visible, .srv-card:focus-within { border-color: rgba(var(--accent-rgb), .55); }
.kpi.link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* yükleniyor iskeleti: temaya uyumlu (açık kipte de görünür), sönük nabız yerine yumuşak parıltı */
.skeleton { background: linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent), color-mix(in srgb, var(--text) 11%, transparent), color-mix(in srgb, var(--text) 5%, transparent)); background-size: 200% 100%; }
/* boş durum: ikon yumuşak belirir (tek sefer), metin hiyerarşisi netleşir */
.empty.state .state-d, .empty .muted { line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes nx-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .card.attn { animation: nx-rise .28s var(--ease-out) both; }
  .kpis > .kpi:nth-child(2) { animation-delay: 40ms; } .kpis > .kpi:nth-child(3) { animation-delay: 80ms; } .kpis > .kpi:nth-child(4) { animation-delay: 120ms; }
  .empty.state > svg, .empty > svg { animation: nx-rise .35s var(--ease-out) both; }
}

/* ---------- Panel: komuta merkezi (gorsel-web13) ---------- */
@keyframes pn-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes pn-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes pn-sheen { from { background-position: 0 0; } to { background-position: 220% 0; } }
@keyframes pn-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.rise { animation: pn-in .5s var(--ease-out, cubic-bezier(.2,.7,.2,1)) both; animation-delay: calc(var(--i, 0) * 55ms); }

.kpi { position: relative; overflow: hidden; }
.kpi-ic { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: var(--accent);
  background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .22); }
.kpi.link:hover .kpi-ic { background: rgba(var(--accent-rgb), .22); }
.kpi .k { padding-right: 36px; }

.srv-card { display: flex; flex-direction: column; padding: 16px; }
.srv-card > * { position: relative; }
.sc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.sc-id { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.sc-id .srv-name { font-size: var(--fs-16); font-weight: 700; letter-spacing: -.01em; color: var(--text-strong, var(--text)); }
.sc-id .mono { font-size: var(--fs-12); }
.sc-badges { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.sc-badges .badge { display: inline-flex; align-items: center; gap: 4px; }
.sc-ring { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted);
  border: 2px solid color-mix(in srgb, var(--dim) 60%, transparent); background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); }
.sc-ring.ok { border-color: var(--ok); color: var(--ok); animation: pn-pulse 2.4s infinite; }
.sc-ring.bad { border-color: var(--bad); color: var(--bad); }
.sc-ring.idle { border-style: dashed; }
.sc-gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.sc-g { display: grid; grid-template-columns: 1fr auto; row-gap: 5px; align-items: baseline; font-size: var(--fs-12); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.sc-g b { font-size: var(--fs-16); font-variant-numeric: tabular-nums; color: var(--text-strong, var(--text)); letter-spacing: -.01em; text-transform: none; }
.sc-g .progress { grid-column: 1 / -1; height: 5px; }
.sc-g.warn b { color: var(--warn); } .sc-g.bad b { color: var(--bad); }
.sc-off { display: inline-flex; align-items: center; gap: 8px; }
.sc-off i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed var(--dim); }
.sc-hint { margin-left: 10px; font-weight: 600; }
.srv-msg { display: flex; align-items: center; flex-wrap: wrap; padding: 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: rgba(120,140,220,.05); min-height: 56px; }
.srv-msg.bad { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.07); }
.srv-msg.dim { color: var(--muted); } /* --dim, kartın renkli zemininde koyu modern temalarda 4,4:1 kalıyordu (WCAG 4,5) */
.sc-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.sc-foot .sc-net { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.srv-card .srv-actions { margin-top: 10px; }
.srv-card .spark { margin: 0 0 8px; }
@media (max-width: 520px) {
  .kpi-ic { top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 8px; } .sc-foot .sc-net { display: none; }
  /* Inter sistem fontundan geniş: 3 sütunlu telefonda simge etiketi kırpıyordu ('Erişilebi…'); simge gizlenir, etiket ve alt satır tam genişlik/2 satır */
  .kpis .kpi-ic { display: none; } .kpis .kpi .k { padding-right: 0; } .kpis .kpi .d { white-space: normal; line-height: 1.25; } }
.empty-rise > * { animation: pn-in .6s var(--ease-out, cubic-bezier(.2,.7,.2,1)) both; }
.empty-rise > *:nth-child(2) { animation-delay: .08s; } .empty-rise > *:nth-child(3) { animation-delay: .16s; } .empty-rise > *:nth-child(4) { animation-delay: .24s; } .empty-rise > *:nth-child(n+5) { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .rise, .empty-rise > *, .sc-ring.ok { animation: none !important; } }
.sc-foot > .ellipsis { flex: none; max-width: 100%; }
.sc-foot .sc-net { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Komuta merkezi dilinin yayılması (gorsel-web14): Sunucular, Projeler, Bilgisayarlar, Dosyalar, Terminal boş durum ---------- */
.sc-ring.mini { width: 32px; height: 32px; border-width: 1.5px; }
.sc-ring.mini.ok { animation-duration: 3s; }
/* Sunucu kartı: halka + ad üstte, eylemler satır kırar (dar kartta taşmaz) */
.srv-card.card { padding: 14px 16px 14px; }
.srv-card .sc-top { gap: 10px; }
.srv-card .srv-nm { font-size: var(--fs-16); font-weight: 700; letter-spacing: -.01em; color: var(--text-strong, var(--text)); }
.srv-card .badge { border-radius: 8px; }
.srv-card:has(.sc-ring.bad) { border-color: rgba(248,113,113,.38); }
.srv-card:has(.sc-ring.bad)::before { background: radial-gradient(420px 140px at 0 0, rgba(248,113,113,.14), transparent 70%); }
/* grup başlığı: vurgu çubuklu pil */
.grp-h { border-radius: 10px; transition: background-color .15s; }
.grp-h b { font-size: var(--fs-13); letter-spacing: .02em; }
.grp-h .small { padding: 1px 8px; border-radius: 99px; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-weight: 600; }
@media (hover: hover) { .grp-h:hover { background: rgba(var(--accent-rgb), .07); } }
/* Projeler: kip kartları ikon karolu, proje kartı canlı durumda halka vurgulu */
.proj-mode { border-radius: var(--r); transition: border-color .15s, transform .15s var(--ease-out), box-shadow .15s; }
.proj-mode-i { border: 1px solid rgba(var(--accent-rgb), .24); }
@media (hover: hover) { .proj-mode:hover:not(:disabled) { box-shadow: var(--shadow-lg); } .proj-mode:hover:not(:disabled) .proj-mode-i { background: rgba(var(--accent-rgb), .24); } }
.proj-mode:active:not(:disabled) { transform: scale(.992); }
.proj-mode:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.proj-group { padding: 6px 10px; border-radius: 12px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .10), transparent 70%); border-left: 3px solid var(--accent); margin-left: 0; }
.proj-group .dot { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }
.card.proj { display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s, transform .15s var(--ease-out); }
.card.proj.live { border-color: rgba(52,211,153,.38); box-shadow: inset 3px 0 0 var(--ok); }
.card.proj .tool-badge { border-radius: 12px; }
@media (hover: hover) { .card.proj:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb), .4); } }
.card.proj:focus-within { border-color: rgba(var(--accent-rgb), .55); }
.proj-actions { flex-wrap: wrap; }
.proj-actions .btn.primary { flex: 1 1 auto; justify-content: center; }
/* Bilgisayarlar: durum halkalı kartlar */
.pc-card { transition: border-color .15s, box-shadow .15s, transform .15s var(--ease-out); box-shadow: inset 3px 0 0 var(--dim); border-left: 1px solid var(--line-2) !important; }
.pc-card.ok { box-shadow: inset 3px 0 0 var(--ok); }
.pc-card.bad { box-shadow: inset 3px 0 0 var(--bad); }
.pc-card .badge { border-radius: 8px; }
@media (hover: hover) { .pc-card:hover { transform: translateY(-1px); border-color: rgba(var(--accent-rgb), .4) !important; } }
.pc-card + .pc-card { margin-top: 12px; }
/* Dosyalar: araç çubuğu kartı, hiyerarşi ve odak */
.fbar.card { border-radius: 16px; background-image: linear-gradient(120deg, rgba(var(--accent-rgb), .07), transparent 55%); border-color: var(--line-2); }
.fbar .btn:not(.primary) { transition: border-color .15s, background-color .15s, transform .15s var(--ease-out); }
.fbar .btn:active { transform: scale(.97); }
.fbar .path-input:focus { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
/* ortak boş/hata durumu: ikon halkalı, hata kırmızı */
/* M0 boş durum simgesi: halka/parıltı yok, 32 px metin-3 (hata: bad) */
.state-orb { display: inline-grid; place-items: center; width: 32px; height: 32px; color: var(--dim); margin-bottom: var(--s3); }
.empty.state.error .state-orb { color: var(--bad); }
.empty.state .state-orb svg { margin: 0; opacity: 1; }
.empty.state.error .state-orb svg { color: var(--bad); }
.empty.state.card { background-image: none; }
.empty.empty-rise > h2 { color: var(--text-strong, var(--text)); letter-spacing: -.01em; }
@media (prefers-reduced-motion: no-preference) {
  .grid.g3 > .srv-card, .grid.g3 > .card.proj, .pc-card, .proj-mode, .fbar.card, .proj-group { animation: pn-in .42s var(--ease-out) both; }
  .grid.g3 > :nth-child(2), .proj-mode:nth-child(2) { animation-delay: 45ms; } .grid.g3 > :nth-child(3), .proj-mode:nth-child(3) { animation-delay: 90ms; }
  .grid.g3 > :nth-child(n+4), .proj-mode:nth-child(4) { animation-delay: 130ms; }
  .empty.state .state-orb { animation: pn-in .5s var(--ease-out) both; }
}
@media (prefers-reduced-motion: reduce) { .sc-ring.mini.ok { animation: none !important; } }
[data-theme="light"] .proj-group { background: linear-gradient(90deg, rgba(var(--accent-rgb), .12), transparent 75%); }
/* dar kartta ikincil düğmeler yalnız simge olur: eylem satırı tek satırda kalır */
.srv-card, .card.proj { container-type: inline-size; }
.proj-actions { flex-wrap: nowrap; }
.proj-actions > .btn:not(.primary) { flex: none; }
@container (max-width: 400px) { .proj-actions .btn .lbl { display: none; } .proj-actions .btn.sm:not(.primary):not(.ghost) { padding-inline: 10px; } }

/* ---------- Terminal ekranı: komuta merkezi dili (gorsel-web15). Yalnız görünüm; çizim/yazı tipi/ölçüm yok ---------- */
.term-tabs { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--bar-bg)), var(--bar-bg)); position: relative; }
.term-tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: .35; pointer-events: none; }
/* taşan sekmeler: kenarlarda yumuşak solma, kaydırma ipucu */
.tt-scroll:not(.mob) { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6px, #000 calc(100% - 22px), transparent 100%); padding: 2px 14px 2px 4px; scroll-padding-inline: 14px; }
.tb-group { background: color-mix(in srgb, var(--panel-solid) 70%, transparent); transition: border-color .15s; }
.tb-group:hover { border-color: var(--line-2); }
.tb-group .btn.icon { min-width: 32px; min-height: 32px; border-radius: 9px; }
.term-tabs .btn.on { box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .45); }
.term-tabs .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.menu { border-radius: 14px; padding: 8px; gap: 1px; backdrop-filter: blur(10px); }
.menu > button, .menu > a { min-height: 36px; transition: background .12s, color .12s; }
.menu > button:hover, .menu > a:hover, .menu > button:focus-visible, .menu > a:focus-visible { background: rgba(var(--accent-rgb), .12); color: var(--text-strong); outline: 0; }
.menu > button:focus-visible, .menu > a:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.menu > button svg, .menu > a svg { color: var(--accent); flex: none; }
.menu-h { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.menu-h::before { content: ""; width: 3px; height: 10px; border-radius: 2px; background: var(--grad); }
.menu-sep { margin: 6px 6px; }
@media (max-width: 820px) { .menu > button, .menu > a { min-height: 44px; } .term-tabs .btn.icon, .tg-open { min-width: 44px; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {  .menu > button, .menu > a { transition: none; } }

/* ---------- Komuta merkezi dilinin yayılması 2 (gorsel-web16): Analiz, Etkinlik, Kayıtlar, Uyarılar, Komut Setleri, Toplu Komut, Hesap, Bağlan, Bilgisayarlar. Yalnız görünüm; .cc16 kapsamı ---------- */
/* sayfa başlığı: gradyan vurgu çubuğu + alt çizgi */
.topbar:has(+ .content.cc16) { position: relative; background-image: linear-gradient(90deg, rgba(var(--accent-rgb), .09), transparent 55%); }
.topbar:has(+ .content.cc16)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: .45; pointer-events: none; }
.topbar:has(+ .content.cc16) h1 { display: flex; align-items: center; gap: 10px; color: var(--text-strong, var(--text)); }
.topbar:has(+ .content.cc16) h1::before { content: ""; flex: none; width: 4px; height: 1.05em; border-radius: 3px; background: var(--grad); }
/* kartlar: başlık ikonu çerçeveli, sol üst ışık */
.cc16 .card { position: relative; border-color: var(--line-2); background-image: radial-gradient(520px 150px at 0 0, rgba(var(--accent-rgb), .06), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%); }
.cc16 .card-h > .nx-icon:first-child, .cc16 .card-h > svg:first-child { box-sizing: content-box; padding: 6px; width: 16px; height: 16px; border-radius: 9px; color: var(--accent);
  background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .22); }
.cc16 .card-h h3 { color: var(--text-strong, var(--text)); letter-spacing: -.01em; }
.cc16 .hint { color: var(--muted); }
/* özet kartları (Analiz): .kpi-ic ortak tanımı kullanılır; değerler vurgulu */
.cc16 .kpis .kpi { background-image: radial-gradient(260px 110px at 100% 0, rgba(var(--accent-rgb), .10), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.02), transparent 45%); }
.cc16 .kpis .kpi .k { white-space: normal; line-height: 1.25; }
.cc16 .kpis .kpi .v { color: var(--text-strong, var(--text)); }
.cc16 .kpis .kpi .v.warn { color: var(--warn); }
.cc16 .kpis .kpi .d.up, .cc16 .kpis .kpi .d.ok { color: var(--ok); } .cc16 .kpis .kpi .d.bad { color: var(--bad); }
/* sekmeler: gradyan alt çizgi, odak halkası */
.cc16 .tabs { gap: 2px; }
.cc16 .tabs button { border-radius: 10px 10px 0 0; transition: color .15s, background-color .15s; min-height: 40px; }
.cc16 .tabs button:hover { background: rgba(var(--accent-rgb), .07); color: var(--text-strong, var(--text)); }
.cc16 .tabs button.on { color: var(--text-strong, var(--text)); background: linear-gradient(180deg, rgba(var(--accent-rgb), .12), transparent); border-bottom-color: var(--accent); }
.cc16 .tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* düğme grupları ve çipler */
.cc16 .seg { background: color-mix(in srgb, var(--panel-solid, #0f1428) 70%, transparent); }
.cc16 .seg button { min-height: 30px; transition: background-color .15s, color .15s; }
.cc16 .seg button:hover:not(.on) { color: var(--text-strong, var(--text)); background: rgba(var(--accent-rgb), .08); }
.cc16 .seg button.on { background: linear-gradient(180deg, rgba(var(--accent-rgb), .26), rgba(var(--accent-rgb), .12)); font-weight: 600; }
.cc16 .seg button:focus-visible, .cc16 .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cc16 .chip { transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease-out); }
.cc16 .chip:active { transform: scale(.97); }
.cc16 .flabel { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.cc16 .flabel svg { color: var(--accent); }
/* tablolar: başlık tonlu, satır vurgusu, rozetler yuvarlak kare */
.cc16 table.t th { background: linear-gradient(180deg, rgba(var(--accent-rgb), .08), var(--th-bg, transparent)); }
.cc16 table.t tbody tr { transition: background-color .12s; }
@media (min-width: 821px) {
  .cc16 table.t tbody tr:nth-child(even) td { background: rgba(120,140,220,.025); }
  .cc16 table.t tbody tr:hover td { background: rgba(var(--accent-rgb), .07); }
  .cc16 table.t tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
}
.cc16 .badge { border-radius: 8px; }
.cc16 .table-wrap.card, .cc16 .card > .table-wrap { border-color: var(--line-2); }
/* erişilebilir grafik alanı: çerçeveli tuval, ızgara dokusu */
.cc16 .nx-chart { border-radius: 12px; }
.cc16 .card .nx-chart { margin-top: 6px; }
.cc16 .cell-bar { border-radius: 8px; overflow: hidden; }
.cc16 .cell-bar i { background: linear-gradient(90deg, rgba(var(--accent-rgb), .30), rgba(var(--accent-rgb), .12)); }
.cc16 .cell-bar.warn i { background: color-mix(in srgb, var(--warn) 30%, transparent); } .cc16 .cell-bar.bad i { background: color-mix(in srgb, var(--bad) 32%, transparent); }
.cc16 .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
/* boş / hata durumu: ikon halkalı (Panel ile aynı) */
.cc16 .empty { border-style: dashed; border-color: var(--line-2); }
.cc16 .empty.card { background-image: radial-gradient(520px 160px at 50% 0, rgba(var(--accent-rgb), .09), transparent 70%); }
.cc16 .empty svg { color: var(--accent); }
/* Etkinlik: işlem rozeti ve CSV */
.cc16 table.t td .badge { white-space: nowrap; }
/* Kayıtlar: oynat karosu, satır hiyerarşisi */
.cc16 .card .btn.icon.ghost, .cc16 .btn.ghost.sm.icon { min-width: 36px; min-height: 36px; border-radius: 10px; }
.cc16 .rp-speed { margin-left: 4px; }
/* Komut Setleri: sol liste, komut satırları */
.cc16 .nav-item { border-radius: 12px; transition: background-color .15s, border-color .15s; min-height: 40px; }
.cc16 .nav-item:hover { background: rgba(var(--accent-rgb), .08); }
.cc16 .nav-label { display: flex; align-items: center; gap: 7px; }
.cc16 .nav-label::before { content: ""; width: 3px; height: 10px; border-radius: 2px; background: var(--grad); }
/* Toplu Komut / Uyarılar / Hesap: ayar satırları */
.cc16 .opt-row { border-radius: 12px; transition: background-color .15s; }
@media (hover: hover) { .cc16 .opt-row:hover { background: rgba(var(--accent-rgb), .05); } }
.cc16 .stat { border-radius: 12px; }
.cc16 .check { border-radius: 10px; }
/* Bağlan: seçenek kartları ikon karolu, adımlar numaralı */
.cc16 .connect-opt { transition: border-color .15s, box-shadow .15s, transform .15s var(--ease-out); }
@media (hover: hover) { .cc16 .connect-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: rgba(var(--accent-rgb), .45); } }
.cc16 .connect-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cc16 .steps > li::marker { color: var(--accent); font-weight: 700; }
/* alanlar ve düğmeler: odak halkası */
.cc16 .input:focus, .cc16 select.input:focus { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); outline: 0; }
.cc16 .btn { transition: border-color .15s, background-color .15s, transform .15s var(--ease-out), box-shadow .15s; }
.cc16 .btn:active { transform: scale(.97); }
.cc16 .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ölçülü giriş hareketi */
@media (prefers-reduced-motion: no-preference) {
  .cc16 > .card, .cc16 > .kpis > .kpi, .cc16 > .grid > .card, .cc16 > .col > .card, .cc16 .connect-opt { animation: pn-in .42s var(--ease-out) both; }
  .cc16 > .kpis > .kpi:nth-child(2), .cc16 > .grid > .card:nth-child(2) { animation-delay: 40ms; } .cc16 > .kpis > .kpi:nth-child(3), .cc16 > .grid > .card:nth-child(3) { animation-delay: 80ms; }
  .cc16 > .kpis > .kpi:nth-child(n+4) { animation-delay: 120ms; }
}
[data-theme="light"] .cc16 .card { background-image: radial-gradient(520px 150px at 0 0, rgba(var(--accent-rgb), .08), transparent 70%); }
[data-theme="light"] .cc16 .seg { background: rgba(var(--accent-rgb), .05); }
@media (min-width: 821px) { [data-theme="light"] .cc16 table.t tbody tr:nth-child(even) td { background: rgba(var(--accent-rgb), .03); } }
@media (max-width: 820px) {
  .cc16 .btn.sm, .cc16 .seg button, .cc16 .chip, .cc16 .tabs button { min-height: 44px; }
  .cc16 .btn.icon, .cc16 .btn.ghost.sm.icon { min-width: 44px; min-height: 44px; }
  .cc16 .nav-item { min-height: 44px; }
  .cc16 .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

/* ---------- Planlama panosu (gorsel-plan1): Plan sekmesi > Tüm işler. Komuta merkezi dili; yalnız görünüm ---------- */
.ip-tabs { padding: 0 12px 8px; }
.ip-tabs .seg { display: flex; width: 100%; }
.ip-tabs .seg button { flex: 1; min-height: 34px; }
.ip-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 14px; }
.ip { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ip-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ip-f { flex: 1 1 130px; min-width: 0; }
.ip-f select { width: 100%; min-height: 34px; }
.ip-bar .btn { min-height: 34px; }
.ip-add { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(var(--accent-rgb), .06); }
.ip-lead { margin: 0; color: var(--text); }
.ip-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 2px; color: var(--muted); }
.ip-key { display: flex; gap: 8px; flex-wrap: wrap; }
.ip-key input { flex: 1 1 140px; min-width: 0; min-height: 34px; }
.ip-key .btn { min-height: 34px; }
.ip-fresh { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; border: 1px solid rgba(var(--accent-rgb), .45); background: var(--panel-solid, rgba(0,0,0,.2)); }
.ip-code { margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(0,0,0,.28); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-12); line-height: 1.5; white-space: pre-wrap; word-break: break-all; max-height: 150px; overflow: auto; user-select: all; }
[data-theme="light"] .ip-code { background: rgba(15,23,42,.06); }
.ip-add .btn { align-self: flex-start; }
.ip-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ip-keys li { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-width: 0; }
.ip-cols { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.ip-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(120,140,220,.04); }
.ip-ch { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-12); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-strong, var(--text)); }
.ip-planlandi .ip-ch { color: var(--muted); }
.ip-devam { border-color: rgba(var(--accent-rgb), .4); }
.ip-devam .ip-ch { color: var(--accent); }
.ip-bitti .ip-ch { color: var(--ok); }
.ip-none { margin: 0; padding: 6px 2px; }
.ip-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-solid, var(--panel)); min-width: 0; }
.ip-card.devam { border-left: 3px solid var(--accent); }
.ip-card.engelli { border-left: 3px solid var(--warn); }
.ip-card.bitti { border-left: 3px solid var(--ok); }
.ip-card.iptal { opacity: .7; }
.ip-t { font-weight: 600; font-size: var(--fs-13); line-height: 1.35; color: var(--text-strong, var(--text)); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ip-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; min-width: 0; }
.ip-meta .badge { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ip-meta .badge svg { flex: none; }
.ip-ago { margin-left: auto; white-space: nowrap; }
.ip-rapor { margin: 0; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.ip-act { display: flex; gap: 4px; justify-content: flex-end; }
.ip-act .btn { min-height: 30px; }
@media (pointer: coarse) { .ip-act .btn, .ip-bar .btn, .ip-key .btn, .ip-keys .btn { min-height: 44px; } .ip-tabs .seg button, .ip-f select, .ip-key input { min-height: 44px; } }
/* Geniş ekranda panel genişler ve kolonlar yan yana dizilir (:has desteklemeyen eski tarayıcıda alt alta kalır) */
.qp.cp.ip-on { width: 100%; }
@media (min-width: 1100px) {
  .q-side.open:has(.ip-on) { width: min(780px, 62vw); }
  .ip-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Tablet (dokunmatik, 820 px üstü): parmak hedefleri >= 44 px (docs/TABLET-DENETIMI.md) ----------
   Telefon kuralları (<=820) yan menülü tablet genişliğine uygulanmıyordu; fare kullanan masaüstü etkilenmez (pointer: coarse). */
@media (pointer: coarse) and (min-width: 821px) {
  :root:root .sidebar .nav-item, :root:root .side-search, :root:root .side-toggle { min-height: 44px; }
  :root:root .bell { min-width: 44px; min-height: 44px; }
  :root:root .content .btn, :root:root .content .btn.sm { min-height: 44px; }
  :root:root .content .btn.icon, :root:root .content .btn.sm.icon { min-width: 44px; }
  :root:root .content .chip { min-height: 44px; }
  :root:root .content input.input, :root:root .content select.input { min-height: 44px; }
  :root:root .content .seg button, :root:root .content .tabs button { min-height: 44px; }
  /* bölünmüş ekran: ayırıcı tutamacı ve hücre başlığı düğmeleri parmakla tutulur (görünür boyut ve 30 px başlık aynı kalır: terminal ölçüsü değişmez, yalnız dokunma alanı 44 px) */
  .tile-div.v { width: 28px; margin-left: -14px; }
  .tile-div.h { height: 28px; margin-top: -14px; }
  .tile-b { position: relative; }
  .tile-b::after { content: ""; position: absolute; left: -9px; right: -9px; top: -9px; bottom: -9px; }
}

/* Hesap sayfası taşma sigortası (gorsel-hesap412): ızgara/kart içeriği ne kadar uzun olursa olsun (uzun e-posta, IPv6, kod) sütunu genişletmesin; uzun sözcük satır kırsın */
.cc16 { min-width: 0; }
.cc16 > .grid > .card, .cc16 > .card { min-width: 0; max-width: 100%; }
.cc16 .card p, .cc16 .card label, .cc16 .card .small, .cc16 .card .sub { overflow-wrap: anywhere; }

/* Web 29 Ekim turu (gorsel-web29): telefon genişliği (360-412) düzeltmeleri */
/* 1) Sunucu kartı başlığı: sil düğmesi alt satıra düşmesin (ad kısalsın, düğmeler yerinde kalsın) */
@media (max-width: 480px) {
  .grid .srv-card > .row.sc-top { flex-wrap: nowrap; gap: 6px; }
  .srv-card .sc-top .srv-nm { flex: 1 1 0; min-width: 0; }
  .srv-card .sc-top > .btn, .srv-card .sc-top > .sc-ring { flex: none; }
}
/* 2) Proje kartı: "Devam et" iki satıra bölünmesin; sığmazsa düğmeler alt satıra geçsin */
.proj-actions { flex-wrap: wrap; row-gap: 6px; }
.proj-actions .btn.primary { white-space: nowrap; flex: none; }
/* 3) Dokunma hedefi >= 44 px: proje kartı ve kayıt listesi eylemleri (yalnız dokunmatik cihaz) */
@media (pointer: coarse) {
  .proj-actions .btn, .rec-acts .btn { min-height: 44px; }
  .proj-actions .btn.icon, .rec-acts .btn.icon, .proj-actions .btn.sm:not(.primary) { min-width: 44px; justify-content: center; }
}
@media (max-width: 480px) { .proj-actions .btn.primary { flex: 1 1 100%; justify-content: center; } }

/* Sunucu grubu başlığı: daralt düğmesi + üye/çevrimiçi sayısı + yeniden adlandır/sil; Gruba taşı penceresi */
div.grp-h { cursor: default; padding: 2px 0; gap: 2px; }
.grp-fold { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; border-radius: 8px; }
.grp-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.grp-fold svg { transition: transform .15s; flex: none; }
.grp-fold b { min-width: 0; }
.grp-n { white-space: nowrap; flex: none; }
.grp-tr td { padding: 2px 8px !important; background: rgba(var(--accent-rgb), .05); }
@media (pointer: coarse) { div.grp-h .btn.icon { min-width: 44px; min-height: 44px; } }
.grp-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-pick .btn { max-width: 100%; min-height: 44px; }
.tg-gacts { padding: 4px 6px 8px; align-items: center; }
.tg-gacts .tg-colors { padding: 0; }
.tg-gacts .swatch.sm { width: 32px; height: 32px; border-radius: 8px; }

/* ── Modern + dolu katman (gorsel-zincir1, 31 Eki): özet şeridi, boş durum panelleri, ekleme kartı ──
   Yalnız tema değişkenleriyle (--panel, --line, --grad, --accent-rgb, --ok/--bad) çalışır; 8 px ritmi; hareket azaltmaya saygı. */
.mz-ipucu { list-style: none; margin: 8px auto 24px; padding: 0 16px; max-width: 920px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mz-ipucu li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); background-image: linear-gradient(160deg, rgba(var(--accent-rgb), .06), transparent 60%); }
.mz-ipucu li b { display: block; margin-bottom: 4px; }
.mz-ipucu li .small { display: block; line-height: 1.5; }
/* Boş durum: degrade halkalı simge + cam panel (terminal sahnesi) */
.empty.state:not(.compact) .state-t { font-size: var(--fs-16); letter-spacing: 0; }
.term-stage > .empty { max-width: 600px; padding: 32px 24px; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--panel); background-image: linear-gradient(170deg, rgba(var(--accent-rgb), .08), transparent 50%); box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); }
@media (max-width: 700px) {
  .mz-ipucu { grid-template-columns: 1fr; gap: 8px; }
  .term-stage > .empty { margin: 16px !important; padding: 24px 16px; }
}

/* ---------- M2 Panel (docs/tasarim/m2-panel/plan.md §3-§7): şerit · Şu an · Devam et · Sunucular · Ayrıntılar ---------- */
.page-dashboard { max-width: 1120px; }
/* Masaüstü geniş ekran (görsel-pc-genis): 1280px üstünde 1120 sınırı sağda boş şerit bırakıyordu (1920'de ~490px) */
@media (min-width: 1280px) { .page-dashboard { max-width: 1480px; } }
@media (min-width: 1700px) { .page-dashboard { max-width: 1680px; } }
.pn-strip { display: flex; min-height: 44px; height: 44px; padding: 0 var(--s1); margin: 0 0 var(--s1); border-radius: var(--r-md); color: var(--text); text-decoration: none; }
.pn-strip > .m { line-height: 44px; }
.pn-strip:hover { background: rgba(var(--accent-rgb), .06); }
.pn-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pn-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); align-self: center; }
.pn-dot.ok { background: var(--ok); } .pn-dot.warn { background: var(--warn); } .pn-dot.bad { background: var(--bad); }
.pn-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 var(--s5); align-items: start; }
@media (min-width: 1100px) { .pn-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.pn-main, .pn-side { min-width: 0; }
.pn-main > .pn-sec:first-child, .pn-side > .pn-sec:first-child { margin-top: var(--s4); }
.pn-sec .sec-h h2 { font: inherit; color: inherit; }
.pn-sec > .lrow.attn-line { width: 100%; }
.page-dashboard a.lrow, .page-dashboard button.lrow { cursor: pointer; }
.page-dashboard .lrow-2.bad { color: var(--bad); }
.pn-time { font-size: var(--fs-12); color: var(--muted); }
.pn-val { flex: none; font-size: var(--fs-14); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.pn-spark { flex: none; width: 120px; height: 28px; }
.pn-spark path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pn-fold { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -6px -10px -6px 0; border: 0; border-radius: var(--r-md); background: none; color: var(--muted); cursor: pointer; }
.pn-fold svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform var(--dur-2, 200ms) var(--ease); }
.pn-fold svg.on { transform: rotate(-90deg); }
.pn-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.pn-heat { padding: var(--s2) var(--s4) var(--s3); border-top: 1px solid var(--line); }
.pn-heat-h { font-size: var(--fs-13); line-height: var(--lh-13); color: var(--muted); margin-bottom: var(--s1); }
.pn-heat .heat-t { font-size: var(--fs-12); }
.pn-heat .heat-t th { font-size: var(--fs-12); }
.pn-stale { margin-bottom: var(--s2); }
.pn-sk { display: flex; flex-direction: column; gap: var(--s2); }
.pn-sk-strip { height: 36px; } .pn-sk-row { height: 56px; border-radius: var(--r-md); }
.pn-empty { margin-top: var(--s5); }
.dash-bell .badge { font-size: var(--fs-12); }
/* §8: yalnız YENİ dikkat satırı 200 ms belirir (ilk çizimde yok, boşta döngü yok); hareket azaltta 0 */
.pn-att-enter-active { transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.pn-att-enter-from { opacity: 0; transform: translateY(-4px); }
[data-motion="reduced"] .pn-att-enter-active { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .pn-fold svg, .pn-att-enter-active { transition: none; } }

/* ---------- M3 Terminaller: sağdan yan sayfa (420; telefonda tam genişlik), sayılı süzgeç, seçim kipi ---------- */
.tg-sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(3,5,12,.5); display: flex; justify-content: flex-end; }
.tg-sheet { width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; background: var(--panel-solid); border-left: 1px solid var(--line-2); box-shadow: -12px 0 40px -16px rgba(0,0,0,.5); animation: tgsheet .18s ease-out; padding-bottom: env(safe-area-inset-bottom); }
@keyframes tgsheet { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tg-sheet { animation: none; } }
.tg-sh { flex: none; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 var(--s3) 0 var(--s4); border-bottom: 1px solid var(--line); }
.tg-sh h2 { flex: 1; min-width: 0; margin: 0; font-size: var(--fs-20); line-height: var(--lh-20); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-sh .btn, .tg-sh .btn.sm { min-height: 44px; min-width: 44px; flex: none; padding: 0 6px !important; } .tg-sh .btn.icon { min-width: 44px; padding: 0; } .tg-sh .btn.tg-new { padding: 0 12px !important; gap: 4px; } .tg-sh .btn.tg-kapat { padding: 0 10px !important; }
.tg-sh h2.tg-selcnt { flex: 1 0 auto; min-width: 0; font-size: var(--fs-14); } .tg-sh .btn { font-size: var(--fs-13); }
.tg-sh .tg-new span { white-space: nowrap; }
.tg-kapat { background: color-mix(in srgb, var(--bad) 22%, var(--panel-solid)); border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--text-strong, var(--text)); }
.tg-menuwrap { position: relative; flex: none; }
.tg-selmenu { position: absolute; right: 0; top: 100%; z-index: 3; min-width: 180px; padding: 6px; border-radius: 12px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.tg-selmenu button { display: block; width: 100%; min-height: 44px; text-align: left; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: var(--fs-14); cursor: pointer; }
.tg-selmenu button:hover { background: var(--tint); }
.tg-tasi { padding: var(--s2) var(--s4); border-bottom: 1px solid var(--line); }
.tg-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--s2) var(--s4) var(--s6, 24px); }
.tg-find { display: grid; gap: var(--s2); padding: 0 0 var(--s2); }
.tg-find .input { min-height: 44px; font-size: var(--fs-14); }
.tg-flt { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tg-chip2 { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 var(--fs-12)/var(--lh-12) var(--sans); cursor: pointer; }
.tg-chip2 b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.tg-chip2.on { background: rgba(var(--accent-rgb), .14); border-color: var(--accent); color: var(--text-strong, var(--text)); }
.tg-chip2.warn:not(.on) { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.tg-chip2:focus-visible, .tg-row:focus-visible, .tg-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.tg-temizle { justify-self: start; min-height: 44px; }
.tg-sec .sec-h { min-height: 44px; margin-bottom: 0; }
.tg-gh { gap: var(--s2); }
.tg-fold { all: unset; box-sizing: border-box; flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: var(--s2); cursor: pointer; color: var(--muted); font-size: var(--fs-13); font-weight: 600; }
.tg-fold > .ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-gn { font-size: var(--fs-12); font-weight: 400; color: var(--dim); font-variant-numeric: tabular-nums; }
.tg-gh .btn.icon { min-width: 44px; min-height: 44px; }
.tg-sec .lgroup { margin-bottom: 0; }
.tg-row { touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .12s; padding-right: var(--s3); }
.tg-row.unread { min-height: 72px; }
.tg-row .lrow-1 { display: flex; align-items: center; gap: 6px; }
.tg-row .lrow-1 > .tg-pin { flex: none; color: var(--muted); }
.tg-row.sel { background: var(--tint-2, var(--tint)); } .tg-row.cur:not(.sel) { background: var(--tint); }
.tg-ic { position: relative; }
.tg-ic .tg-st { position: absolute; right: -3px; bottom: -3px; box-shadow: 0 0 0 2px var(--panel-solid); }
.tg-dur { font-weight: 600; }
.tg-dur.onay { color: var(--warn); } .tg-dur.kopuk, .tg-dur.ajan-hata { color: var(--bad); } .tg-dur.bitti { color: var(--muted); }
.tg-dur.claude, .tg-dur.calisiyor { color: color-mix(in srgb, var(--accent-2) 62%, var(--text-strong, var(--text))); } .tg-dur.baglaniyor { color: var(--warn); } .tg-dur.bosta { color: var(--ok); }
.tg-last { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-zt { font-size: var(--fs-12); color: var(--muted); }
.tg-more { flex: none; min-width: 44px; min-height: 44px; margin: -6px -6px -6px 0; }
@media (hover: hover) { .tg-row .tg-more { opacity: 0; } .tg-row:hover .tg-more, .tg-row:focus-within .tg-more, .tg-more[aria-expanded="true"] { opacity: 1; } }
.tg-actions { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 4px 4px; }
.tg-actions .btn, .tg-move .btn { min-height: 44px; }
.tg-empty { display: grid; justify-items: center; gap: var(--s2); padding: var(--s6, 24px) var(--s4); text-align: center; color: var(--muted); }
.tg-empty b { color: var(--text); font-size: var(--fs-16); font-weight: 600; }
.tg-undo { position: absolute; left: var(--s4); right: var(--s4); bottom: calc(var(--s4) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 0 var(--s3) 0 var(--s4); border-radius: var(--r-md); background: var(--panel-2, var(--panel-solid)); border: 1px solid var(--line-2); box-shadow: 0 8px 24px -8px rgba(0,0,0,.5); }
.tg-undo span { flex: 1; font-size: var(--fs-13); }
.tg-sheet { position: relative; }
.tg-bos { display: grid; justify-items: center; gap: var(--s2); max-width: 420px; padding: var(--s4); }
.tg-bos > svg { color: var(--muted); }
.tg-bos h2 { margin: 0; font-size: var(--fs-16); font-weight: 600; color: var(--text-strong, var(--text)); }
.tg-bos-sv { width: 100%; text-align: left; }
.srv-steps { text-align: left; max-width: 380px; margin: 12px auto 8px; padding-left: 20px; line-height: 1.8; }
@media (max-width: 820px) { .tg-sheet { width: 100%; border-left: 0; } .tg-sh .tg-secbtn { padding: 0 8px; } }
@media (max-width: 360px) { .tg-sh .tg-new span { display: none; } .tg-sh h2 { font-size: var(--fs-16); } }

/* M3 kontrast (denetim): açık kipte durum metinleri zeminde ≥4.5:1 olacak kadar koyu */
[data-theme="light"] .tg-dur.kopuk, [data-theme="light"] .tg-dur.ajan-hata { color: color-mix(in srgb, var(--bad) 72%, #000); }
[data-theme="light"] .tg-dur.onay, [data-theme="light"] .tg-dur.baglaniyor { color: color-mix(in srgb, var(--warn) 70%, #000); }
[data-theme="light"] .tg-dur.bosta { color: color-mix(in srgb, var(--ok) 72%, #000); }

/* ===== M4 Terminal kabuğu: kalıcı liste sütunu (>=900), durum şeridi, Claude onay şeridi, araç çekmecesi ===== */
.term-shell.t-iskele { flex-direction: row; }
.t-ana { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.t-kolon { flex: none; width: clamp(280px, 24vw, 320px); display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--panel-solid); }
.t-kolon.dar { width: 56px; align-items: center; padding-top: 6px; }
.t-kolon-dgm { flex: none; position: relative; min-width: 44px; min-height: 44px; align-self: flex-end; }
.t-kolon.dar .t-kolon-dgm { align-self: center; flex-direction: column; height: auto; padding: 6px 0; }
.t-kolon .tg-sheet-bg.gomulu { position: static; inset: auto; z-index: auto; background: none; display: flex; flex: 1; min-height: 0; width: 100%; }
.t-kolon .tg-sheet-bg.gomulu .tg-sheet { width: 100%; height: auto; flex: 1; min-height: 0; border-left: 0; box-shadow: none; animation: none; }
.t-kolon .tg-sh .tg-new span { display: none; }
.t-kolon .tg-sheet .tg-sh h2 { font-size: var(--fs-16); }
.t-ust .t-ad { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 1 auto; max-width: 45%; margin-left: 4px; }
.t-ust .tg-mname { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; text-align: left; }
.t-ust .t-ad .tg-mname b { font: 600 var(--fs-14) var(--sans); color: var(--text-strong, var(--text)); }
.t-ust .t-ad .tg-mname small { font: 400 var(--fs-12) var(--sans); color: var(--muted); }
.arac-wrap { position: relative; display: inline-flex; }
.t-arac-menu { min-width: 220px; z-index: 62; }
.t-arac-menu > button { min-height: 44px; }
.t-arac-menu > button.on { background: rgba(var(--accent-rgb), .14); color: var(--text-strong, var(--text)); }
/* durum şeridi: terminalin ÜSTÜNE biner (position:absolute) = boyut hesabına GİRMEZ (tekrar eden kutu hatası) */
.t-strip { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 4px 12px; font-size: var(--fs-13); line-height: 20px; color: var(--text-strong, var(--text)); background: var(--panel-solid); border-bottom: 1px solid var(--line-2, var(--line)); }
.t-strip .btn.sm { min-height: 32px; }
@media (pointer: coarse) { .t-strip .btn.sm { min-height: 44px; } }
.t-strip-m { flex: 1; min-width: 0; font-weight: 600; }
.t-strip-i { display: inline-flex; flex: none; }
.t-strip.koptu { background: color-mix(in srgb, var(--bad) 20%, var(--panel-solid)); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.t-strip.baglaniyor { background: color-mix(in srgb, var(--warn) 18%, var(--panel-solid)); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.t-strip.bitti, .t-strip.cevrimdisi { background: var(--panel-solid); }
.panes.tiled .t-strip, .panes.tiled .t-onay { top: var(--tile-top, 31px); }
/* Claude onay şeridi: terminalin ÜSTÜNE tek satır (alttaki soru/seçenekler açık kalır); her seçenek >=44 px düğme, yatay kayar; Esc ayrı ve soluk */
.t-onay { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 6; display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 12px; color: var(--text-strong, var(--text)); background: color-mix(in srgb, var(--warn) 16%, var(--panel-solid)); border: 1px solid color-mix(in srgb, var(--warn) 60%, transparent); box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.t-onay-s { flex: none; font-size: var(--fs-13); font-weight: 600; white-space: nowrap; }
.t-onay-q { font-size: var(--fs-12); color: var(--text); white-space: nowrap; }
.t-onay-b { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.t-onay-b::-webkit-scrollbar { display: none; }
.t-onay-b .btn { min-height: 44px; min-width: 44px; flex: 1 1 0; max-width: 14em; font-size: var(--fs-14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.t-onay-b .btn b { font-family: var(--mono); }
.t-onay-m { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 599px) { .t-onay-s { display: none; } .t-onay { padding-left: 4px; } .t-onay-b .btn { padding-left: 8px; padding-right: 8px; } .t-onay .t-esc { margin-left: 0; } }
.t-onay .t-esc, .t-onay .t-gizle { flex: none; min-height: 44px; min-width: 44px; }
.t-evet { background: color-mix(in srgb, var(--ok) 30%, var(--panel-solid)); border-color: var(--ok); color: var(--text-strong, var(--text)); font-weight: 600; }
.t-hayir { border-color: color-mix(in srgb, var(--bad) 60%, transparent); }
.t-esc, .t-gizle { opacity: .8; }
.t-esc { margin-left: 8px; }
[data-theme="light"] .t-onay-q { color: var(--text-strong, var(--text)); }
@media (max-width: 899px) { .t-kolon { display: none; } }

/* M6 Sunucular (docs/tasarim/m6-sunucular): şerit + süzgeç + 72 px satır; kart/stat/dağılım kuralları kalktı */
.srv-strip { padding: 0; }
.srv-filter { display: flex; flex-direction: column; gap: var(--s2); }
.srv-search { position: relative; }
.srv-search > svg { position: absolute; left: 12px; top: 14px; color: var(--dim); pointer-events: none; }
.srv-search .input { width: 100%; min-height: 44px; padding-left: 36px; }
.srv-chips { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.srv-chips .chip { flex: none; min-height: 44px; }
.srv-chips .chip .dot { margin-right: 6px; }
select.input.srv-sel { width: auto; min-width: 0; max-width: min(46%, 260px); min-height: 44px; flex: 0 1 auto; }
.srv-list { display: flex; flex-direction: column; margin-top: var(--s4); }
.srv-sec { margin-top: var(--s3); }
.srv-sec h2 { font: inherit; color: inherit; margin: 0; }
.srv-row { min-height: 72px; padding: var(--s2) var(--s2) var(--s2) var(--s4); gap: var(--s1); border-radius: var(--r-md); }
.srv-row + .srv-row::before { content: ""; position: absolute; top: 0; left: 60px; right: 0; height: 1px; background: var(--line); }
.srv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); color: inherit; text-decoration: none; min-height: 56px; }
.srv-ic { position: relative; background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); color: var(--c, var(--accent)); }
.srv-dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--dim); box-shadow: 0 0 0 2px var(--panel-solid, var(--bg)); }
.srv-dot.ok { background: var(--ok); } .srv-dot.bad { background: var(--bad); }
.srv-row .lrow-1 { display: flex; align-items: center; gap: var(--s1); }
.srv-row .lrow-1 > .ellipsis { min-width: 0; }
.srv-pin { flex: none; color: var(--warn); }
.srv-guncel { color: var(--warn); }
.srv-row .lrow-3 { font-size: var(--fs-12); line-height: var(--lh-12, 16px); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.srv-row .lrow-3.bad { color: var(--bad); }
.srv-row .lrow-3.stale { color: var(--dim); }
.srv-row .lrow-3 .warn { color: var(--warn); } .srv-row .lrow-3 .bad { color: var(--bad); }
.srv-rozet { flex: none; }
.srv-ibtn { flex: none; min-width: 44px; min-height: 44px; }
.srv-ckw { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
.srv-row.sel { background: rgba(var(--accent-rgb), .08); }
.srv-row.kb { outline: 2px solid var(--accent); outline-offset: -2px; }
.menu > button.bad, .menu > a.bad { color: var(--bad); }
.menu > button, .menu > a { min-height: 44px; text-decoration: none; }
.srv-pw { display: flex; align-items: center; gap: var(--s1); }
.srv-pw .input { flex: 1; min-width: 0; }
.srv-pw .btn.icon { flex: none; min-width: 44px; min-height: 44px; }

@media (max-width: 820px) { .srv-list { margin-top: var(--s3); } }
/* Masaüstü geniş ekran (görsel-pc-genis): çok sunuculu listede dikey tek sütun genişi boşa harcıyordu; tek sunucuda (auto-fit) yine tam genişlik */
@media (min-width: 1280px) {
  .srv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: var(--s2) var(--s3); align-items: start; }
  .srv-list .sec-h, .srv-list .grp-h { grid-column: 1 / -1; }
  .srv-row { border: 1px solid var(--line); background: var(--panel-solid, var(--panel)); }
  .srv-row + .srv-row::before { display: none; }
}

.srv-tabwrap { position: relative; }
.srv-tabwrap > .srv-more { right: 0; top: calc(100% + 4px); }
.srv-tabs button { min-height: 44px; white-space: nowrap; }
.srv-dot-i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dim); margin-right: 6px; vertical-align: middle; }
.srv-dot-i.ok { background: var(--ok); } .srv-dot-i.bad { background: var(--bad); }
.srv-health { padding: 0; }
.srv-off { padding: var(--s4); }

/* M7 Dosyalar: klasör özeti şeridi, Daha göster, Kaydedilmedi rozeti, sır notu, silme iletişimi */
.fstrip { display: flex; align-items: center; gap: 8px; min-height: 32px; margin: 0 2px 8px; color: var(--muted); font-size: var(--fs-12); }
.fstrip .btn { min-height: 32px; }
.fmore { display: flex; justify-content: center; padding: 10px; }
.fbadge { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: var(--fs-12); font-weight: 600; vertical-align: middle; }
.ed-note { padding: 6px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--warn) 10%, transparent); }
.fdel-t { margin: 0 0 8px; }
.fdel-n, .fdel-p { margin: 0 0 8px; overflow-wrap: anywhere; }
.fdel-w { margin: 0; font-weight: 600; }
@media (max-width: 820px) { .fmore .btn { min-height: 44px; } .fstrip .btn { min-height: 44px; } }

/* ---------- M7 Dosyalar 2. tur: gezgin üst çubuğu, 64 px satır, alt seçim çubuğu, tek satır .fbar ---------- */
.fb-title h1 { font-size: var(--fs-16); line-height: 22px; margin: 0; }
.fb-path { font-size: var(--fs-12); direction: rtl; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.fstrip { display: flex; align-items: center; gap: 8px; min-height: 32px; margin-bottom: 8px; color: var(--muted); }
.fstrip .fgizli { min-height: 44px; }
.sel-bar .sel-gap { flex: 1; min-width: 16px; }
@media (max-width: 820px) {
  .fbar.card { padding: 6px 8px; gap: 6px; }
  .fbar > .row:first-child { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; min-width: 0; max-width: 100%; }
  .fbar > .row:first-child::-webkit-scrollbar { display: none; }
  .fbar > .row:first-child > * { flex: none; }
  .fbar .path-form { flex: 1 0 140px; }
  .files-content .ftools { flex-wrap: nowrap !important; overflow-x: auto; width: 100%; min-width: 0; max-width: 100%; }
  .files-content .ftools > * { flex: none; }
  .files-content .ftools .fsearch { order: 0; flex: 0 0 168px; min-width: 0; }
  .files-content .ftools > .btn.sm.primary { flex: none; min-width: max-content; padding-inline: 12px; }
  .files-content table.files tbody tr:not(.grp-row) { height: 64px; }
  .files-content table.files .fname { min-height: 44px; }
  .files-content table.files .fmeta { padding-bottom: 0; }
  .sel-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--bottom-nav, 0px) + env(safe-area-inset-bottom)); top: auto; z-index: 40; margin: 0; padding: 8px 12px; min-height: 64px; flex-wrap: nowrap; border-radius: 14px 14px 0 0; }
  .sel-bar .btn { min-height: 44px; min-width: 44px; flex: none; }
  .sel-bar { overflow-x: auto; scrollbar-width: none; }
  .sel-bar .sel-gap { min-width: 16px; }
  .files-content:has(.sel-bar) { padding-bottom: calc(88px + var(--bottom-nav, 0px)); }
}

/* M8 Gelen kutusu + sır alanları + oturum/hesap silme (docs/tasarim/m8-etkinlik-ayarlar) */
.inbox .ib-h { font-size: var(--fs-12); font-weight: 600; color: var(--muted); margin: 16px 4px 8px; }
.inbox .ib-row { min-height: 64px; }
.inbox .ib-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inbox .ib-t b { font-size: var(--fs-14); font-weight: 600; overflow-wrap: anywhere; }
.inbox .ib-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.inbox .ib-act { display: flex; gap: 8px; flex-shrink: 0; }
.inbox .ib-act .btn { min-height: 44px; min-width: 44px; }
.inbox .ib-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; flex-shrink: 0; }
.inbox .ib-dot.on { background: var(--accent); }
.inbox .inbox-undo { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 8px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-solid); }
.inbox .inbox-undo .btn { min-height: 44px; }
.inbox .ib-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.inbox .ib-links .btn { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 520px) { .inbox .ib-row:has(.ib-act) { flex-wrap: wrap; } .inbox .ib-act { width: 100%; justify-content: flex-end; } }
.sir-gizli { display: flex; gap: 6px; align-items: center; }
.sir-gizli .input { flex: 1; }
.sir-var { font-size: var(--fs-12); color: var(--muted); }
.ses-row .btn { min-height: 44px; }

/* ---------- M8 web: Ayarlar gruplu liste + geniş ekranda sol bölüm listesi (docs/tasarim/m8-etkinlik-ayarlar/plan.md) ---------- */
.ayar-duzen { min-width: 0; }
.ayar-icerik { min-width: 0; max-width: 980px; }
.ayar-grup { margin: 0 0 var(--s6, 24px); }
.ayar-grup > .card { margin: 0 0 var(--s3, 12px); }
.ayar-gb { margin: 0 0 var(--s2, 8px); padding: 0 2px; font-size: var(--fs-12); font-weight: 600; letter-spacing: .04em; color: var(--muted); }
.ayar-tehlike { margin-top: var(--s2, 8px); }
#ag-hesap, #ag-gorunum, #ag-guvenlik, #ag-uygulama { scroll-margin-top: 12px; }
@media (min-width: 1280px) {
  .ayar-duzen { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: var(--s6, 24px); align-items: start; }
  .ayar-nav { overflow: visible !important; position: sticky; top: 12px; flex-direction: column; flex-wrap: nowrap; gap: 2px; margin: 0; padding-right: var(--s4, 16px); border-right: 1px solid var(--line); }
  .ayar-nav .chip { width: 100%; justify-content: flex-start; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: var(--fs-14); }
  .ayar-nav .chip:hover { background: rgba(var(--accent-rgb), .08); }
  .ayar-nav .chip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
}
/* Claude hesapları: geçiş sırası (16 Kas) */
.cacc-next { margin: 10px 0 2px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(120,140,220,.04); }
.cacc-sira { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--line); color: var(--muted); font-size: var(--fs-12); font-weight: 600; font-variant-numeric: tabular-nums; }
