@font-face { font-family: "Geist"; src: url(../vendor/fonts/Geist-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../vendor/fonts/Geist-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(../vendor/fonts/Geist-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../vendor/fonts/GeistMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(../vendor/fonts/GeistMono-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }

/* --line, --muted, --faint yalniz burada: eski sayfalar ve yeni kabuk (isler.css) ayni tonu kullanir.
   Yazi tonlari --bg, --panel, --panel-2, --term-bg uzerinde iki temada da en az 4.5:1 (test/renk.test.js olcer). */
:root {
  color-scheme: light dark;
  --bg: #f6f6f4;
  --panel: #ffffff;
  --panel-2: #efefec;
  --line: #e4e4e0;
  --text: #1c1c1a;
  --muted: #5f5f5a;
  --faint: #696964;
  --accent: #2f6fe4;
  --accent-soft: rgb(47 111 228 / .12);
  --ok: #1f9d55;
  --warn: #c98a12;
  --bad: #d0453a;
  --off: #a3a39d;
  --far: #6d4fe0;
  --far-soft: rgb(109 79 224 / .1);
  --term-bg: #fbfbfa;
  --shadow: 0 12px 40px rgb(30 30 25 / .14);
  --r: 8px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111112;
    --panel: #18181a;
    --panel-2: #202023;
    --line: #26262a;
    --text: #e8e8e6;
    --muted: #a3a3a0;
    --faint: #939390;
    --accent: #5b8ff0;
    --accent-soft: rgb(91 143 240 / .16);
    --ok: #3ccf7c;
    --warn: #e2a632;
    --bad: #ef6a5e;
    --off: #5d5d60;
    --far: #a892ff;
    --far-soft: rgb(168 146 255 / .14);
    --term-bg: #141416;
    --shadow: 0 16px 48px rgb(0 0 0 / .5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 13.5px/1.45 "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }

.app { display: grid; grid-template-columns: min(var(--side-w, 300px), 50vw) minmax(0, 1fr); height: 100dvh; }

/* ---------- kenar cubugu */
.side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px 16px; }
.brand-name { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark { width: 20px; height: 20px; flex: none; }
.search { display: flex; align-items: center; gap: 8px; margin: 0 12px 8px; padding: 0 10px; height: 34px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); min-width: 0; }
.search input::placeholder { color: var(--faint); }
.list { flex: 1; overflow-y: auto; padding: 4px 8px 16px; }
.group-h { display: flex; align-items: center; gap: 6px; padding: 14px 8px 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
/* Grup basliklari kayarken ustte kalir: hangi grupta oldugun belli olsun. */
.list > .group-h { position: sticky; top: -4px; z-index: 1; background: var(--panel); }
.group-h .n { font: 500 11px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.group-h .tag { margin-left: auto; font-weight: 400; }
button.group-h { width: 100%; border: 0; border-radius: var(--r); text-align: left; cursor: pointer; }
button.group-h:hover { color: var(--text); }
.group-h.fold i { font-size: 11px; }
.item { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 8px 9px;
  border-radius: var(--r); cursor: pointer; }
.item:hover { background: var(--panel-2); }
.item.sel { background: var(--accent-soft); }
/* Su an acik olan oturum: soldaki cizgi + kalin baslik. */
.item.cur { box-shadow: inset 3px 0 0 var(--accent); }
.item.cur .item-t { font-weight: 600; }
.item-t { display: flex; align-items: center; gap: 6px; font-weight: 500; overflow: hidden; }
.item-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-m { margin-top: 2px; font-size: 12px; color: var(--muted); display: flex; gap: 8px; overflow: hidden; white-space: nowrap; }
.item-m .cwd { overflow: hidden; text-overflow: ellipsis; }
.item-m .when { margin-left: auto; flex: none; color: var(--faint); }
/* Genislik tutamagi ve gizleme (⌘B). Genislik --side-w (220-480 px, tarayicida saklanir), gizliyken html.side-off. */
.app > .side { position: relative; container-type: inline-size; }
/* Liste en dar ayara yakinken (260 px alti): kaynak dugmelerinin yazisi kesilmez alt satira gecer, satir sonundaki bilgiler kenara yapismaz. */
@container (max-width: 260px) {
  .seg.src button { height: auto; min-height: 26px; padding: 3px 6px; line-height: 1.2; white-space: normal; overflow: visible; text-overflow: clip; }
  .list .item { padding-right: 12px; }
  .brand { gap: 4px; padding-right: 10px; }
}
.brand .side-hide { margin-left: auto; width: 28px; height: 28px; }
.brand .side-hide i { font-size: 16px; }
.side-grip { position: absolute; top: 0; right: -6px; bottom: 0; width: 12px; z-index: 6; cursor: col-resize; touch-action: none; outline: 0; }
.side-grip::before { content: ""; position: absolute; top: 50%; left: 1px; width: 10px; height: 48px; margin-top: -24px; border-radius: 5px; border: 1px solid var(--faint); z-index: 1; opacity: 0;
  background: radial-gradient(circle, var(--muted) 1.1px, transparent 1.5px) center / 4px 6px repeat-y, var(--panel); transition: opacity .15s ease, border-color .15s ease, background-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .side-grip:hover::before { opacity: 1; border-color: var(--accent); background: radial-gradient(circle, #fff 1.1px, transparent 1.5px) center / 4px 6px repeat-y, var(--accent); } }
.side-grip:focus-visible::before, html.side-drag .side-grip::before { opacity: 1; border-color: var(--accent); background: radial-gradient(circle, #fff 1.1px, transparent 1.5px) center / 4px 6px repeat-y, var(--accent); }
/* Kenar cizgisi: durgunken ince ve soluk mavi (surukleneceği belli olsun), uzerine gelince ve suruklerken 2 px tam mavi. */
.side-grip::after { content: ""; position: absolute; top: 0; bottom: 0; left: 5px; width: 2px; background: var(--accent); opacity: .45; transition: opacity .15s ease, width .15s ease, left .15s ease; }
@media (hover: hover) and (pointer: fine) { .side-grip:hover::after { opacity: 1; width: 2px; left: 5px; transition-delay: .08s; } }
.side-grip:focus-visible::after, html.side-drag .side-grip::after { opacity: 1; width: 2px; left: 5px; transition-delay: 0s; }
html.side-drag, html.side-drag * { cursor: col-resize !important; user-select: none; }
html.side-drag .stage { overflow: hidden; }
/* Gizliyken: liste kalkar, sekme seridinin solunda (eski arayuzde ust cubukta) sade bir "goster" dugmesi kalir; kisayol ipucunda.
   Sol kenari terminal metniyle hizali (12 px). Genisligi JS olcer (--side-show-w), sekmeler ya da cubuk onun sagindan baslar. */
.side-show { position: absolute; top: 10px; left: 12px; z-index: 7; display: none; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 9px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); color: var(--text); font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.side-show i { font-size: 16px; }
.side-show::after { content: ""; position: absolute; top: 6px; bottom: 6px; right: -7px; width: 1px; background: var(--line); }
html.isl-on .side-show { top: 8px; }
@media (hover: hover) and (pointer: fine) { .side-show:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); } }
.side-show:active { transform: scale(.97); }
.side-show:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html.side-off .app { grid-template-columns: minmax(0, 1fr); }
html.side-off .app > .side { display: none; }
html.side-off .side-show { display: inline-flex; }
html.side-off .app > .main > .bar { padding-left: calc(var(--side-show-w, 130px) + 22px); }
html.isl-on.side-off .app > .main > .tabs { padding-left: calc(var(--side-show-w, 130px) + 16px); }
html.side-off .remote { padding-left: calc(var(--side-show-w, 130px) + 26px); }
/* Sekme seridi tasinca (sagda gizli sekme var, JS .tasar koyar): sag kenar soluklasir, yeni kabukta ustune › isareti gelir. */
/* Sagdaki dugme grubu (.tabs-end: izgara ve toplu kapatma) soluklasmaz; soluklasma ve › isareti grubun solunda. */
.app > .main > .tabs.tasar { padding-right: 84px; scroll-padding-inline-end: 84px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 160px), transparent calc(100% - 96px), transparent calc(100% - 86px), #000 calc(100% - 86px));
  mask-image: linear-gradient(90deg, #000 calc(100% - 160px), transparent calc(100% - 96px), transparent calc(100% - 86px), #000 calc(100% - 86px)); }
html.isl-on .app > .main:has(> .tabs.tasar)::after { content: "›"; position: absolute; top: 9px; right: 90px; z-index: 7; display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--text); font-size: 17px; line-height: 1; pointer-events: none; }
/* Dar penceredeki cekmecenin kapatma dugmesi ve arka plani (genis pencerede yok). */
.brand .side-close, .side-scrim { display: none; }
.app > .side:focus { outline: 0; }
/* Yeni kabukta kenar cubugu yalniz Oturumlar'da var. */
html.isl-on:not([data-isv="oturumlar"]) .side-show { display: none !important; }
.tag { flex: none; font-size: 11px; padding: 0 6px; border-radius: 4px; line-height: 18px; background: var(--panel-2); color: var(--muted); }
.tag.live { background: var(--accent-soft); color: var(--accent); }
.tag.warn { color: var(--warn); }
.list-empty { padding: 24px 12px; color: var(--muted); }

/* ---------- ust cubuk ve hesaplar */
.main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.accounts { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none;
  /* ust cubuk dar pencerede: hesaplar sigsin, sigmazsa kenar yumusakca solsun */
  mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.bar-right { display: flex; align-items: center; gap: 12px; flex: none; }
.acc { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 9px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--bg); cursor: pointer; white-space: nowrap; flex: none; transition: border-color .15s, transform .1s; }
.acc:hover { border-color: var(--faint); }
.acc:active { transform: scale(.98); }
.acc.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.acc-name { font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.acc-use { font: 11.5px "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.st { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--off); }
.st.ok { background: var(--ok); }
.st.warn { background: var(--warn); }
.st.bad { background: var(--bad); }
.meter { display: grid; gap: 2px; width: 34px; }
.meter i { display: block; height: 3px; border-radius: 2px; background: var(--ok); }
.meter i.w { background: var(--warn); }
.meter i.b { background: var(--bad); }

.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.track { width: 30px; height: 18px; border-radius: 9px; background: var(--line); position: relative; transition: background .2s; }
.knob { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .2s cubic-bezier(.3,.7,.4,1); }
.toggle input:checked + .track { background: var(--accent); }
.toggle input:checked + .track .knob { transform: translateX(12px); }
.toggle input:focus-visible + .track { box-shadow: 0 0 0 3px var(--accent-soft); }

.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; white-space: nowrap; transition: transform .1s, background .15s; }
.btn:hover { background: var(--panel-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn i, .icon-btn i { font-size: 16px; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--r); background: transparent; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

/* ---------- sekmeler ve terminal */
.tabs { display: flex; align-items: stretch; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); background: var(--panel); overflow-x: auto; scrollbar-width: none; min-height: 41px; }
.tab { display: flex; align-items: center; gap: 8px; max-width: 260px; padding: 0 6px 0 12px; height: 34px; border: 1px solid transparent;
  border-bottom: 0; border-radius: var(--r) var(--r) 0 0; cursor: pointer; color: var(--muted); flex: none; background: transparent; }
.tab:hover { color: var(--text); }
.tab.on { background: var(--term-bg); border-color: var(--line); color: var(--text); margin-bottom: -1px; box-shadow: inset 0 2px 0 var(--accent); }
.tab.on:not(.pin) .tab-title { font-weight: 600; }
/* Seridin sonundaki izgara secimi ve toplu kapatma dugmesi: serit tasinca da sagda durur. */
.tabs-end { position: sticky; right: -10px; flex: none; align-self: center; display: flex; align-items: center; gap: 2px; margin-left: auto; padding-left: 4px; background: var(--panel); box-shadow: -10px 0 10px var(--panel); }
.tabs-more { width: 30px; height: 30px; }
.tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.tab-acc { font: 11px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.tab .icon-btn { width: 22px; height: 22px; }
.tab .icon-btn i { font-size: 13px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--off); flex: none; }
.pulse.busy { background: var(--accent); }
.pulse.idle { background: var(--ok); }
.pulse.wait { background: var(--warn); }
.pulse.dead { background: var(--off); }
.pulse.sleep { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.pulse.ask { background: var(--warn); box-shadow: 0 0 0 3px rgb(226 166 50 / .25); }
.pulse.done { background: var(--accent); box-shadow: 0 0 0 3px rgb(31 157 85 / .22); }
@media (prefers-reduced-motion: no-preference) {
  .pulse.busy { animation: pulse 1.4s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .35; } }
}

.stage { position: relative; flex: 1; min-height: 0; background: var(--term-bg); }
.term-wrap { position: absolute; inset: 0; display: none; flex-direction: column; container-type: inline-size; }
.term-wrap.on { display: flex; }
.term-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.term-tools .path { min-width: 0; font-family: "Geist Mono", ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-tools .sp { flex: 1; }
.term-tools .notice { color: var(--warn); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.term-tools select { height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 0 6px; }
.term-tools .btn { height: 28px; padding: 0 10px; font-size: 12.5px; }
.term { position: relative; flex: 1; min-height: 0; padding: 8px 4px 4px 12px; }
.term .xterm { height: 100%; }
.term .xterm-viewport { scrollbar-width: thin; }

.empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; }
.empty[hidden] { display: none; }
.card { width: min(560px, 100%); }
.card h1 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 6px; line-height: 1.3; }
.card .path { font: 12.5px "Geist Mono", ui-monospace, monospace; color: var(--muted); word-break: break-all; }
.card .quote { margin: 18px 0; padding: 12px 14px; border-left: 2px solid var(--line); color: var(--muted); max-height: 9em; overflow: hidden; }
.card .quote b { display: block; font-weight: 500; color: var(--faint); font-size: 12px; margin-bottom: 4px; }
.card .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.card select { height: 34px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 0 8px; }
.card .warnbox { margin-top: 14px; color: var(--warn); font-size: 12.5px; }
.steps { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.steps li { display: flex; gap: 10px; }
.steps i { color: var(--accent); font-size: 18px; flex: none; }

/* ---------- pencereler */
.dlg { border: 1px solid var(--line); border-radius: 12px; padding: 0; background: var(--panel); color: var(--text); box-shadow: var(--shadow); width: min(520px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgb(10 10 10 / .45); }
.dlg form { padding: 20px; display: grid; gap: 14px; }
.dlg h2 { margin: 0; font-size: 16px; font-weight: 600; }
.dlg p { margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; color: var(--muted); }
.field input, .field select { height: 36px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); padding: 0 10px; outline: 0; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder { color: var(--faint); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.login-term { height: 190px; border: 1px solid var(--line); border-radius: var(--r); background: var(--term-bg); padding: 6px 4px 6px 10px; overflow: hidden; }
.login-help { display: grid; gap: 8px; margin-top: 10px; }
.login-help p { margin: 0; font-size: 12.5px; }
.login-row { display: flex; gap: 8px; }
.login-row input { flex: 1; min-width: 0; font-family: var(--mono, ui-monospace, monospace); font-size: 12px; }
.status-line { min-height: 1.2em; font-size: 12.5px; color: var(--muted); }
.status-line.ok { color: var(--ok); }
.status-line.bad { color: var(--bad); }

.menu { position: fixed; z-index: 30; min-width: 230px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
.menu-h { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-h b { display: block; font-weight: 500; }
.menu-h span { font-size: 12px; color: var(--muted); display: block; }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; text-align: left; }
.menu button:hover { background: var(--panel-2); }
.menu button.danger { color: var(--bad); }
.menu button:disabled { opacity: .45; cursor: default; }
.menu .menu-note { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--muted); font-size: 12.5px; }
.menu .menu-note .ph-warning { color: var(--warn); }
.term-tools .mcpb.warn { color: var(--warn); }
.item .dusen-ic { color: var(--warn); flex: none; }
.term-tools .mcpb .mcpl { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast { position: fixed; z-index: 40; right: 16px; bottom: 16px; max-width: 380px; padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: rise .22s cubic-bezier(.2,.8,.3,1); }
  .menu:not([hidden]) { animation: pop .14s cubic-bezier(.2,.8,.3,1); transform-origin: top left; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes pop { from { opacity: 0; transform: scale(.97); } }
}

@media (max-width: 760px) {
  .app { position: relative; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .side, .main { min-width: 0; }
  .bar { padding: 8px 12px; flex-wrap: wrap; }
  .bar-right { width: 100%; justify-content: space-between; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); }
  .side-grip { display: none; }
  /* Dar pencere: tek terminal tum ekrani alir (sekmeler arasinda gecilir); liste soldan acilan bir cekmece
     (html.side-drawer, saklanmaz), arkasi karartilir. Gosterme dugmesi sekme seridinin (eski arayuzde ust cubugun) solunda. */
  .app > .side { position: absolute; top: 0; bottom: 0; left: 0; z-index: 20; width: min(340px, calc(100% - 56px)); display: none;
    border-right: 1px solid var(--line); border-bottom: 0; box-shadow: 0 16px 48px rgb(0 0 0 / .45); }
  html.side-drawer .app > .side { display: flex; }
  .side-scrim { position: absolute; inset: 0; z-index: 19; border: 0; padding: 0; background: rgb(8 8 10 / .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; }
  html.side-drawer .side-scrim { display: block; }
  .brand .side-hide { display: none; }
  .brand .side-close { display: grid; width: 32px; height: 32px; }
  .brand #btn-new { margin-left: auto; }
  .brand .side-close i { font-size: 18px; }
  /* Dar ekranda liste dugmesi sekmeden ayri bir denetim: dolu mavi zemin, beyaz simge ve yazi (renge bagli kalmadan belirgin). */
  .side-show { display: inline-flex; margin-left: 0; left: 10px; padding: 0 11px 0 9px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
  .side-show i { color: #fff; }
  .side-show::after { right: -8px; }
  @media (hover: hover) and (pointer: fine) { .side-show:hover { background: var(--accent); border-color: transparent; color: #fff; filter: brightness(1.1); } }
  .app > .main > .bar, html.side-off .app > .main > .bar { padding-left: calc(var(--side-show-w, 130px) + 22px); }
  html.isl-on .app > .main > .tabs, html.isl-on.side-off .app > .main > .tabs { padding-left: calc(var(--side-show-w, 130px) + 24px);
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent calc(100% - 24px)); mask-image: linear-gradient(90deg, #000 calc(100% - 80px), transparent calc(100% - 24px)); }
  .remote, html.side-off .remote { padding-left: 56px; }
  /* Yan yana acik iki terminalden dar ekranda yalniz etkin olan gorunur. */
  .stage .term-wrap.split-main { right: 0 !important; }
  .stage .term-wrap.side { display: none; }
  /* Sekmeler daralir, ad … ile kisalir: etkin sekme serit genisliginin en cok %60'i, yanindaki sekme gorunur kalir. */
  .app > .main > .tabs .tab { flex: 0 1 auto; min-width: 88px; max-width: 60%; }
  .app > .main > .tabs .tab-title { min-width: 0; max-width: none; }
  .app > .main > .tabs .tab-acc { display: none; }
  /* Dar pencerede izgara yok (tek oturum, app-izgara.js); secim saklanir, pencere genisleyince geri gelir. */
  .tabs-grid { display: none; }
  .row2 { grid-template-columns: 1fr; }
}
/* Telefon genisliginde cekmece ekrani tam kaplar (sagda arka plan seridi kalmaz); kapatma dugmesi basliginda. */
@media (max-width: 480px) {
  .app > .side { width: 100%; border-right: 0; box-shadow: none; }
  /* Telefonda liste dugmesi yalniz simge (adi ipucunda ve ekran okuyucu etiketinde): sekme adlarina yer kalir. */
  .side-show { padding: 0 9px; }
  .side-show .lbl { display: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  html.side-drawer .app > .side { animation: drawer-in .22s cubic-bezier(.2,.8,.3,1); }
  html.side-drawer .side-scrim { animation: fade-in .22s ease; }
  @keyframes drawer-in { from { transform: translateX(-100%); } }
  @keyframes fade-in { from { opacity: 0; } }
}

/* ---------- kota */
.tab.pin { gap: 6px; }
.tab.pin i { font-size: 15px; }
.quota { position: absolute; inset: 0; overflow-y: auto; padding: 28px 32px 48px; }
.q-wrap { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; }
.q-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.q-head h1 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.q-head .sp { flex: 1; }
/* Otomatik tarama durumu (public/app-takip.js scanLine): basligin altinda tam satir, sade metin. */
.q-head .tk-scan { flex: 1 0 100%; order: 8; display: flex; gap: 6px; align-items: baseline; margin: -6px 0 0; font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.tk-scan .ph { flex: none; position: relative; top: 2px; color: var(--accent); }
.tk-scan.off .ph { color: var(--faint); }
.tk-scan.err .ph { color: var(--bad); }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--panel-2); color: var(--text); }
.seg.lang { padding: 2px; }
.seg.lang button { height: 24px; padding: 0 8px; font-size: 12px; }
.q-advice { display: grid; gap: 8px; }
.q-advice .lead { font-size: 15px; font-weight: 500; line-height: 1.5; }
.q-advice ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); display: grid; gap: 4px; }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.q-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px 16px 14px; display: grid; gap: 12px; }
.q-card.first { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-card.off { opacity: .6; }
.q-top { display: flex; align-items: flex-start; gap: 10px; }
.q-rank { flex: none; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font: 500 12px "Geist Mono", ui-monospace, monospace; background: var(--panel-2); color: var(--muted); }
.q-card.first .q-rank { background: var(--accent); color: #fff; }
.q-name { font-weight: 600; }
.q-sub { font-size: 12px; color: var(--muted); }
.q-badge { margin-left: auto; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.q-badge.bad { color: var(--bad); }
.q-badge.ok { color: var(--ok); }
.q-row { display: grid; gap: 5px; }
.q-row-h { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; }
.q-row-h b { font-weight: 500; }
.q-row-h .pct { margin-left: auto; font: 500 12.5px "Geist Mono", ui-monospace, monospace; }
.q-bar { height: 6px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.q-bar i { display: block; height: 100%; border-radius: 4px; background: var(--ok); transition: width .4s cubic-bezier(.2,.8,.3,1); }
.q-bar i.w { background: var(--warn); }
.q-bar i.b { background: var(--bad); }
.q-reset { font-size: 12px; color: var(--faint); }
.q-fore { font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
/* Haftalik tahmin satiri: ikon + cumle + kucuk alt satir; dar kartta kelime kirilir, tasma olmaz */
.q-fore.has-f { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.q-fore.has-f > i { flex: none; font-size: 15px; line-height: 18px; color: var(--faint); }
.q-fore-t { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; line-height: 18px; }
.q-fore-t span { color: var(--text); }
.q-fore-t small { font-size: 11.5px; line-height: 16px; color: var(--faint); }
.q-fore.warn > i { color: var(--warn); }
.q-fore.warn .q-fore-t span { font-weight: 500; }
.q-fore.ok > i { color: var(--ok); }
.q-fore.bad > i { color: var(--bad); }
.q-fore.bad .q-fore-t span { color: var(--bad); font-weight: 500; }
.q-pool { display: flex; gap: 32px; flex-wrap: wrap; }
.q-stat b { display: block; font: 600 22px "Geist", sans-serif; letter-spacing: -.02em; }
.q-stat span { font-size: 12.5px; color: var(--muted); }
.q-tips h2, .q-pool-h { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.q-tips ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.q-tips li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start; }
.q-tips .tp { font: 600 15px "Geist Mono", ui-monospace, monospace; color: var(--accent); }
.q-tips .tt { font-weight: 500; }
.q-tips .ta { font-size: 12.5px; color: var(--muted); }
.q-note { font-size: 12px; color: var(--faint); }
/* "Nasil calisir?" notu (nasil.js howNote): kapaliyken tek kucuk dugme, acilinca baslik altinda not.
   - Gorevler: dugme sayfa basliginin satirinda ("Acik gorev yok" yaninda), not basligin altina tam satir iner. Ayri satir
     olamaz: q-wrap izgarasinda her satir 28 px aralik getirir ve ilk gorunen alan 80 px hedefinin altina duser (olculdu: 225 px).
   - Takip / Ekipler: bolum basliginin (how-row) altinda kendi satirinda.
   Formun icinde (baslik yoksa) ustteki alandan 10 px aralikla ayrilir. Not satirlari en cok ~70 karakter. */
.how { display: grid; gap: 6px; justify-items: start; min-width: 0; margin-top: 10px; }
.k-new > .how, .t-item > .how { margin-top: 0; } /* bu kutular zaten 10 px aralikli */
/* Sessiz metin dugmesi: cerceve ve dolgu yok, yalniz soru isareti vurgulu; dokunma alani yine 36 px (dolgu ile). */
.how-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 8px; margin-inline: -8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, color .15s; }
.how-btn .ph { font-size: 14px; color: var(--muted); }
.how-btn .ph-question { color: var(--accent); }
.how-caret { transition: transform .16s cubic-bezier(.2, 0, 0, 1); }
.how.open .how-caret { transform: rotate(180deg); }
.how.open .how-btn { color: var(--accent); }
.how.open .how-btn .ph { color: var(--accent); }
.how-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.how-btn:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .how-btn:hover { color: var(--text); background: var(--panel-2); } }
/* Acik not: hafif, kutusuz metin; yalniz soldaki ince vurgu cizgisi (acik dugmeyle ayni renk) onu dugmeye baglar ve bos liste
   kutularindan ayirir. Satir uzunlugu en cok ~70 karakter (okunurluk). */
.how-body { justify-self: start; max-width: 70ch; margin: 0; padding: 2px 0 2px 12px; border: 0; border-left: 2px solid color-mix(in srgb, var(--accent) 60%, var(--line));
  background: none; color: color-mix(in srgb, var(--text) 86%, var(--bg)); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
/* Dugme: 36 px dokunma alani duzende 22 px yer tutar (dikey -7 px), basligin satirini buyutmez. */
.q-head > .how > .how-btn, .how-row > .how > .how-btn { margin: -7px -8px; }
/* Gorevler basligi: dugme satirin bir ogesi, not satirin altina tam genislikte iner. */
.q-head > .how { display: contents; }
.q-head .how-body { flex: 1 0 100%; order: 9; margin: -4px 0 0; }
/* Takip / Ekipler bolum basligi */
.how-row { display: flex; flex-direction: column; align-items: flex-start; row-gap: 4px; margin: 0 0 10px; }
.how-row > .how { display: contents; }
.how-row > h2 { margin: 0; flex-wrap: wrap; row-gap: 2px; min-width: 0; }
.how-row .how-body { margin: 2px 0 6px; }
/* Takip basligi dar ekranda: iki dugme birlikte basligin altina iner (biri yukarida biri asagida kalmasin). */
@media (max-width: 760px) { #track .q-head > .sp { flex-basis: 100%; height: 0; margin-bottom: -14px; } }
@media (prefers-reduced-motion: reduce) { .how-caret, .how-btn { transition: none; } .how-btn:active { transform: none; } }
@media (max-width: 760px) { .quota { padding: 18px 14px 32px; } }

.seg.src { display: flex; margin: 0 12px 6px; }
.seg.src button { flex: 1; height: 26px; font-size: 12.5px; padding: 0 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cloud-h { display: flex; align-items: center; gap: 8px; padding: 14px 8px 6px; font-size: 12px; color: var(--faint); font-weight: 500; }
.cloud-h span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cloud-h .when { margin-left: auto; flex: none; }
.list-tools { display: flex; justify-content: flex-end; padding: 2px 4px 0; }
.list-tools .btn { height: 26px; font-size: 12px; padding: 0 8px; }

/* ---------- dikkat, git, palet */
@media (prefers-reduced-motion: no-preference) { .pulse.ask { animation: pulse 1s ease-in-out infinite; } }
.tag.ask { background: rgb(226 166 50 / .15); color: var(--warn); }
.term-tools .git { display: inline-flex; align-items: center; gap: 5px; flex: none; font: 12px "Geist Mono", ui-monospace, monospace; color: var(--text); }
.term-tools .git i { font-size: 14px; color: var(--muted); }
.term-tools .git b { font-weight: 500; color: var(--warn); }
.term-tools .git span { color: var(--muted); }
.term-tools .icon-btn { width: 28px; height: 28px; }
.palette-back { position: fixed; inset: 0; z-index: 50; background: rgb(10 10 10 / .35); display: grid; justify-items: center; align-items: start; padding-top: 12vh; }
.palette { width: min(620px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.palette .search { margin: 10px; height: 40px; }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 0 6px 6px; }
.pal-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.pal-item i { font-size: 16px; color: var(--muted); flex: none; }
.pal-item .pl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-item small { margin-left: 8px; color: var(--faint); font-size: 12px; }
.pal-item kbd { font: 11px "Geist Mono", ui-monospace, monospace; color: var(--faint); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.pal-item.on { background: var(--accent-soft); }
@media (prefers-reduced-motion: no-preference) { .palette { animation: pop .14s cubic-bezier(.2,.8,.3,1); transform-origin: top center; } }

/* ---------- tur 2: proje filtresi, onizleme */
.proj { margin: 0 12px 4px; }
.proj select { width: 100%; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); padding: 0 8px; font-size: 12.5px; color: var(--muted); }
/* Sol liste hizli suzgeci: Hepsi / Acik / Sabit / Sende / Bugun (sayilariyla). "Sende" doluysa vurgulu. */
.sfilt { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 12px 2px; }
.sfilt:empty { display: none; }
.sfilt button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.sfilt button span { font: 500 10.5px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.sfilt button:hover { color: var(--text); }
.sfilt button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.sfilt button.hot span { color: var(--warn); font-weight: 700; }
/* Sag tik menusu: ayirici ve yeniden adlandirma kutusu */
.menu-sep { height: 1px; margin: 4px 6px; background: var(--line); }
.menu .ren { display: grid; gap: 8px; padding: 6px 6px 4px; width: 300px; }
.menu .ren input { height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; }
.menu .ren input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.menu .ren-b { display: flex; align-items: center; gap: 6px; }
.menu .ren-b .sp { flex: 1; }
.menu .ren-b .btn { width: auto; height: 28px; padding: 0 10px; display: inline-flex; gap: 6px; }
.menu .ren-b .btn.primary { background: var(--accent); color: #fff; }
.menu .ren-b .btn.primary:hover { background: var(--accent); filter: brightness(1.1); }
.spin { animation: hub-spin 1s linear infinite; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
.item .snip { margin-top: 3px; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .snip mark { background: var(--accent-soft); color: var(--text); border-radius: 2px; }
.pin-ic { color: var(--accent); font-size: 12px; flex: none; }
.card.wide { width: min(760px, 100%); }
.meta-line { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.msgs { margin: 18px 0 0; display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; padding-right: 6px; }
.msg { display: grid; grid-template-columns: 54px 1fr; gap: 10px; }
.msg b { font-size: 12px; font-weight: 500; color: var(--faint); padding-top: 1px; }
.msg.claude b { color: var(--accent); }
.msg div { white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.msgs-skel { height: 120px; border-radius: 8px; background: linear-gradient(90deg, var(--panel-2), var(--panel), var(--panel-2)); background-size: 200% 100%; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) { .msgs-skel { animation: shimmer 1.2s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } } }

/* ---------- tur 3: kota cizelgesi */
.spark { position: relative; display: grid; gap: 4px; }
.spark-h { font-size: 12.5px; color: var(--muted); }
.spark svg { width: 100%; height: 64px; display: block; overflow: visible; }
.sp-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sp-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sp-limit { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sp-cross { stroke: var(--faint); stroke-width: 1; }
.sp-dot, .sp-hover { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--panel); pointer-events: none; }
.sp-plot { position: relative; }
.spark-x { display: flex; justify-content: space-between; font: 11px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.sp-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); padding: 6px 9px; border-radius: 8px; background: var(--text); color: var(--bg); font-size: 12px; line-height: 1.35; white-space: nowrap; pointer-events: none; z-index: 2; }
.sp-tip b { font-weight: 600; }
.sp-tip span { opacity: .75; }
.spark.hovering .sp-dot { opacity: .35; }

/* ---------- takip paneli */
.tab .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #1a1a1a; font: 600 11px "Geist Mono", ui-monospace, monospace; display: grid; place-items: center; }
.t-sec h2 { margin: 0 0 10px; font-size: 14px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.t-sec h2 span { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.t-list { display: grid; gap: 10px; }
.t-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px 16px; display: grid; gap: 10px; }
.t-item.acil { border-color: rgb(239 106 94 / .55); }
.t-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.t-head .t-title { font-weight: 600; flex: 1; min-width: 200px; }
.t-head .when { font-size: 12px; color: var(--faint); }
.badge { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.badge.acil { color: var(--bad); background: rgb(239 106 94 / .12); }
.badge.bugun { color: var(--warn); background: rgb(226 166 50 / .12); }
.t-sum { font-size: 13px; color: var(--muted); white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.t-sum.open { -webkit-line-clamp: unset; }
.t-reply { width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); padding: 8px 10px; font: 13px/1.45 "Geist", sans-serif; outline: 0; }
.t-reply:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.t-reply::placeholder { color: var(--faint); }
.t-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.t-acts .btn { height: 30px; font-size: 12.5px; padding: 0 10px; }
.t-acts .sp { flex: 1; }
.t-note { font-size: 12px; color: var(--warn); }
.badge.ok { color: var(--ok); background: rgb(31 157 85 / .12); }
.badge.run { color: var(--accent); background: var(--accent-soft); }
.k-new { display: grid; gap: 10px; }
.k-new .t-reply { min-height: 84px; }
/* Gorevler'in yeni gorev kutusu masaustunde biraz daha alcak (ilk gorunen alan, 18 Eki); telefonda ornek metin sigsin diye 84 px. */
.k-new.tk-new .t-reply { min-height: 64px; }
@media (max-width: 760px) { .k-new.tk-new .t-reply { min-height: 84px; } }
.k-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.k-row .field { flex: 1; min-width: 240px; }
.k-meta { font-size: 12px; color: var(--faint); display: flex; gap: 6px; flex-wrap: wrap; }
/* Zamanlanmis kart (schedules.js): bilgi satiri duz metin gibi akar, uzun klasor yolu kirilir; dar kartta cipler ve anahtar
   bir satirda, baslik kendi satirinda, dugmeler tek satirda esit genislikte. */
.t-item.sch { container-type: inline-size; min-width: 0; }
.t-item.sch .k-meta { display: block; line-height: 1.6; }
.t-item.sch .k-meta > span + span::before { content: " · "; }
.t-item.sch .k-meta .pth { overflow-wrap: anywhere; }
.sch-add { max-width: 100%; }
@container (max-width: 460px) {
  .t-item.sch .t-head .t-title { order: 5; flex-basis: 100%; min-width: 0; }
  /* Dugmeler kartin icinde: Simdi calistir tam genislik, Duzenle ve Sil esit iki sutun. */
  .t-item.sch .t-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .t-item.sch .t-acts .sp { display: none; }
  .t-item.sch .t-acts .btn { width: 100%; min-width: 0; height: 36px; justify-content: center; padding: 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .t-item.sch .t-acts .btn[data-sx="run"] { grid-column: 1 / -1; }
}
.k-err { font-size: 12px; color: var(--bad); }
.t-mini { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.t-mini div { display: flex; gap: 8px; }
.t-mini time { color: var(--faint); flex: none; font: 11.5px "Geist Mono", ui-monospace, monospace; padding-top: 1px; }
.t-set { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.t-set label { display: inline-flex; gap: 6px; align-items: center; }
.t-set input[type=number] { width: 56px; height: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); padding: 0 6px; }
.t-empty { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
/* Takip > Ayarlar: telefon bildirimi denemesi (public/ntfy-test.js). Gonderildi yesil + onay simgesi, gonderilemedi kirmizi + uyari simgesi. */
/* Kart Gelisim basligiyla ayni dil: hafif renkli isik, ince cerceve, derinlik. Renk yalniz simge ve kisa baslikta; aciklama normal metin. */
.nt-test, .nt-sub { --nt-ok-t: #166534; --nt-bad-t: #b3261e; --nt-warn-t: #8a5a00; --nt-a: rgb(47 111 228 / .10); --nt-b: rgb(124 92 214 / .07);
  position: relative; margin-top: 16px; max-width: 880px; padding: 16px; display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 14px;
  background: radial-gradient(120% 140% at 0% 0%, var(--nt-a), transparent 55%), radial-gradient(90% 120% at 100% 0%, var(--nt-b), transparent 60%), var(--panel);
  box-shadow: 0 1px 2px rgb(30 30 25 / .05), 0 8px 24px -12px rgb(30 30 25 / .14); }
@media (prefers-color-scheme: dark) { .nt-test, .nt-sub { --nt-ok-t: #3ccf7c; --nt-bad-t: #f07b70; --nt-warn-t: #e2a632; --nt-a: rgb(91 143 240 / .13); --nt-b: rgb(167 139 250 / .08);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .04), 0 10px 28px -14px rgb(0 0 0 / .6); } }
/* Ust satir: simge | baslik + aciklama | dugme. Dar ekranda simge yalniz basligin yaninda, aciklama ve dugme tam genislik. */
.nt-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic ttl btn" "ic desc btn"; align-items: center; gap: 2px 14px; }
.nt-h .nt-ic { grid-area: ic; }
.nt-ttl { grid-area: ttl; align-self: end; font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.nt-desc { grid-area: desc; align-self: start; margin: 0; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--text) 68%, var(--panel)); }
.nt-h .nt-btn { grid-area: btn; }
.nt-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; color: var(--accent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--panel)), color-mix(in srgb, var(--accent) 6%, var(--panel))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent); }
.nt-btn { flex: none; height: 34px; font-size: 13px; font-weight: 500; background: var(--panel); box-shadow: 0 1px 2px rgb(30 30 25 / .06); }
.nt-res { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text); min-width: 0; }
.nt-ri { flex: none; font-size: 18px; margin-top: 0; }
.nt-rb { display: grid; gap: 3px; min-width: 0; }
.nt-rb p { margin: 0; overflow-wrap: anywhere; }
.nt-rt { font-size: 13px; font-weight: 600; }
.nt-rt time { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
/* Ayarlar icinde alt gruplar (Hatirlatmalar / Bildirimler): ayni baslik dili ve aralik, kart ayri bir parca gibi durmaz. */
.nt-sec { margin: 22px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.nt-sec::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nt-sec.first { margin-top: 2px; }
.nt-sec + .nt-test, .nt-sec + .nt-sub { margin-top: 0; }
.nt-meta { color: color-mix(in srgb, var(--text) 72%, var(--panel)); font-size: 13px; }
.nt-link { color: var(--text); overflow-wrap: anywhere; }
.nt-more { font-size: 13px; color: color-mix(in srgb, var(--text) 80%, var(--panel)); margin-top: 2px; }
/* Acilir satir dugme gibi gorunur: cerceve, ok simgesi, ustune gelince belirginlesir. */
.nt-more summary { cursor: pointer; width: fit-content; list-style: none; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px 0 7px;
  border-radius: 7px; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent); background: color-mix(in srgb, var(--text) 5%, var(--panel));
  color: color-mix(in srgb, var(--text) 85%, var(--panel)); font-size: 13px; font-weight: 500; }
.nt-more summary::-webkit-details-marker { display: none; }
.nt-more summary i { font-size: 12px; }
@media (prefers-reduced-motion: no-preference) { .nt-more summary i { transition: transform .15s ease-out; } }
.nt-more[open] summary i { transform: rotate(90deg); }
.nt-more summary:hover { color: var(--text); border-color: color-mix(in srgb, var(--text) 30%, transparent); }
.nt-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nt-more > div { margin-top: 8px; line-height: 1.55; overflow-wrap: anywhere; }
.nt-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.nt-dl dt { color: color-mix(in srgb, var(--text) 62%, var(--panel)); }
.nt-dl dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.nt-more code { font: 12px "Geist Mono", ui-monospace, monospace; padding: 1px 6px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); overflow-wrap: anywhere; }
.nt-chip { display: inline-block; padding: 0 9px; border-radius: 99px; font-size: 12px; line-height: 22px; font-weight: 500; white-space: nowrap;
  background: color-mix(in srgb, var(--text) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); color: var(--text); }
.nt-res.idle { padding: 0 2px; color: var(--faint); }
.nt-res.ok { background: color-mix(in srgb, var(--ok) 7%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 28%, transparent), inset 3px 0 0 var(--ok); }
.nt-res.bad { background: color-mix(in srgb, var(--bad) 7%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent), inset 3px 0 0 var(--bad); }
.nt-res.ok .nt-ri, .nt-res.ok .nt-rt { color: var(--nt-ok-t); }
.nt-res.bad .nt-ri, .nt-res.bad .nt-rt { color: var(--nt-bad-t); }
.nt-res.warn { background: color-mix(in srgb, var(--warn) 8%, var(--panel)); }
.nt-res.warn .nt-ri { color: var(--nt-warn-t); }
@media (prefers-reduced-motion: no-preference) {
  .nt-res.ok, .nt-res.bad { animation: nt-in .2s cubic-bezier(.2, .8, .3, 1); }
  .nt-spin { animation: nt-spin .8s linear infinite; }
  @keyframes nt-in { from { opacity: 0; transform: translateY(3px); } }
  @keyframes nt-spin { to { transform: rotate(360deg); } }
}
/* Ayarlar > Hatirlatmalar alanlari bildirim kartiyla ayni kart dilinde (cerceve, yuvarlak kose, panel zemini). */
.t-set.nt-card { max-width: 880px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); gap: 12px 22px; font-size: 13px;
  box-shadow: 0 1px 2px rgb(30 30 25 / .05); }
@media (prefers-color-scheme: dark) { .t-set.nt-card { box-shadow: inset 0 1px 0 rgb(255 255 255 / .03); } }
@media (max-width: 520px) {
  .nt-test, .nt-sub { padding: 14px; gap: 12px; }
  .nt-h { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic ttl" "desc desc" "btn btn"; gap: 10px 12px; }
  .nt-ttl { align-self: center; }
  .nt-btn { width: 100%; justify-content: center; }
  .nt-dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .nt-dl dd { margin-bottom: 6px; }
}
/* Takip > Ayarlar: telefonda abone ol (public/ntfy-abone.js). QR beyaz karo uzerinde (her temada koyu-acik), altinda linkin metni;
   yaninda adimlar. Kart daralinca (pencere ya da yan panel) QR uste, adimlar alta gecer: kartin kendi genisligine bakilir. */
.nt-sub { container-type: inline-size; }
.nt-tabs { grid-area: btn; }
.nt-tabs button { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.nt-tabs button i { font-size: 15px; }
.nt-tabs button.on { box-shadow: 0 1px 2px rgb(30 30 25 / .08); }
.nt-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nt-sub-b { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.nt-qr { margin: 0; display: grid; gap: 8px; justify-items: center; min-width: 0; }
.nt-qr-tile { width: 196px; aspect-ratio: 1; padding: 6px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgb(30 30 25 / .10), 0 1px 2px rgb(30 30 25 / .06), 0 10px 24px -14px rgb(30 30 25 / .35); }
.nt-qr-svg { display: block; width: 100%; height: 100%; border-radius: 8px; }
.nt-qr figcaption { display: grid; gap: 2px; width: 100%; text-align: center; }
.nt-qr-cap { font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--faint); }
.nt-qr-link { font: 12px/1.45 "Geist Mono", ui-monospace, monospace; color: var(--text); user-select: all; }
.nt-sub-how { display: grid; gap: 10px; min-width: 0; padding-top: 2px; font-size: 13px; line-height: 1.55; }
.nt-lead { margin: 0; color: color-mix(in srgb, var(--text) 80%, var(--panel)); }
.nt-steps { margin: 0; padding: 0; list-style: none; counter-reset: nt; display: grid; gap: 9px; }
.nt-steps li { counter-increment: nt; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--text); overflow-wrap: anywhere; }
.nt-steps li::before { content: counter(nt); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.nt-sub-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 2px; }
.nt-copy { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); }
.nt-topic { font-size: 12.5px; color: var(--muted); min-width: 0; overflow-wrap: anywhere; }
.nt-topic code { font: 12px "Geist Mono", ui-monospace, monospace; padding: 1px 6px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text); }
.nt-note { margin: 0; display: flex; gap: 7px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--muted); }
.nt-note i { flex: none; font-size: 14px; margin-top: 1px; }
@media (prefers-color-scheme: dark) { .nt-qr-tile { box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 12px 28px -14px rgb(0 0 0 / .7); } }
@container (max-width: 560px) {
  .nt-sub .nt-h { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic ttl" "desc desc" "btn btn"; gap: 10px 12px; }
  .nt-sub .nt-ttl { align-self: center; }
  .nt-tabs { display: flex; width: 100%; }
  .nt-tabs button { flex: 1; justify-content: center; }
  .nt-sub-b { grid-template-columns: minmax(0, 1fr); }
  .nt-qr { justify-self: center; max-width: 260px; }
}
.t-head-sum { font-weight: 500; }
.t-why { font-size: 12.5px; color: var(--muted); }
.t-why b { font-weight: 500; color: var(--text); }

/* ---------- mesaj kuyrugu */
.menu.wide { width: 380px; display: grid; gap: 8px; padding: 10px; }
.menu.wide .menu-h { margin: 0; padding: 0 2px 8px; }
.q-row-item { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.q-row-item span { flex: 1; white-space: pre-wrap; word-break: normal; overflow-wrap: anywhere; max-height: 4.5em; overflow: hidden; }
.term-tools .qadd { height: 28px; font-size: 12.5px; }
.menu.wide button.btn { width: auto; display: inline-flex; padding: 0 12px; height: 30px; }
.menu.wide button.icon-btn { width: 24px; height: 24px; padding: 0; display: grid; place-items: center; flex: none; }
.menu.wide .t-reply { min-height: 70px; }

/* ---------- yan yana */
.term-wrap.side { border-left: 1px solid var(--line); }

/* ---------- izgara (public/app-izgara.js): 1, 2, 4, 8 bolme; konum JS'te yuzdeyle (left/right/top/bottom) */
.term-wrap.pane { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.term-wrap.pane.c0 { border-left: 0; }
.term-wrap.pane.r0 { border-top: 0; }
/* Etkin bolme: klavye buraya gider. Ince cerceve ve baslikta sekmedeki gibi ust cizgi. */
.term-wrap.pane-on::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--accent); pointer-events: none; z-index: 4; }
.term-wrap.pane-on .term-tools { box-shadow: inset 0 2px 0 var(--accent); }
.term-wrap.pane:not(.pane-on) .term-tools { background: var(--panel); }
.term-wrap.pane .term-tools, .term-wrap.rpane .term-tools { gap: 6px; padding: 5px 8px; }
.term-wrap.pane .term { padding: 6px 2px 2px 8px; }

/* Bolme basligi: ad (izgarada; tiklayinca bu bolmede baska oturum), durum rozeti, nerede calistigi */
.pname { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 42%; height: 26px; padding: 0 6px; margin-left: -4px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; flex: 0 1 auto; }
/* Tek oturumda ad tiklaninca ad ve renk kutusu acar; bolme degistirme oku yalniz izgarada. */
.term-wrap:not(.pane):not(.rpane) .pname i { display: none; }
.pname .pn-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pname i { font-size: 12px; color: var(--faint); flex: none; }
.pname:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pst { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 7px; border-radius: 999px; background: var(--panel-2); color: var(--muted); font-size: 12px; white-space: nowrap; flex: none; }
.pst b { font-weight: 500; color: var(--text); }
.pst small { font: 11px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.pst small:empty { display: none; }
.pst[data-st="busy"] { background: var(--accent-soft); }
.pst[data-st="busy"] b { color: var(--accent); }
.pst[data-st="ask"], .pst[data-st="wait"] { background: rgb(226 166 50 / .16); }
.pst[data-st="ask"] b, .pst[data-st="wait"] b { color: var(--warn); }
.pst[data-st="done"] { background: rgb(31 157 85 / .13); }
.pst[data-st="done"] b { color: var(--ok); }
.pst[data-st="dead"] b { color: var(--faint); font-weight: 400; }
.ploc { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; color: var(--muted); white-space: nowrap; flex: none; }
.ploc i { font-size: 13px; }
.ploc.far { border-color: transparent; background: var(--far-soft); color: var(--far); font-weight: 500; }
.r-eye { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.term-wrap.rpane .term { background: var(--term-bg); }
.term-wrap.rpane .term-tools { background: var(--far-soft); }
.term-tools .lastcode, .term-tools .copyb { height: 28px; padding: 0 9px; font-size: 12.5px; }
.term-tools .lastcode { color: var(--accent); }
/* Bolme daraldikca baslik sadelesir: once yazilar, sonra klasor ve git, en son ikincil araclar. */
@container (max-width: 1020px) {
  .term-tools .tl, .term-tools label[for^="sw-"] { display: none; }
  .term-tools .lastcode, .term-tools .copyb, .term-tools .close, .term-tools .restart { padding: 0 7px; }
}
@container (max-width: 780px) {
  .term-tools .path, .term-tools .git, .term-tools .qcount, .term-tools .edit, .term-tools .finder, .term-tools .r-eye { display: none; }
}
@container (max-width: 560px) {
  .term-tools .sw, .term-tools .pl-t, .term-tools .pst small, .term-tools .notice { display: none; }
  .ploc { padding: 0 5px; }
}
@container (max-width: 400px) {
  .term-tools .qadd, .term-tools .splitb, .term-tools .lastcode { display: none; }
  .pst b { display: none; }
  .pst { padding: 0 7px; }
}

/* Sekme seridindeki izgara dugmesi ve gorunen ama etkin olmayan sekme */
.tabs-grid { display: inline-flex; gap: 6px; width: auto; padding: 0 8px; font: 500 12px "Geist Mono", ui-monospace, monospace; }
.tabs-grid.on { color: var(--accent); }
.tab.vis { color: var(--text); background: color-mix(in srgb, var(--term-bg) 60%, transparent); box-shadow: inset 0 2px 0 color-mix(in srgb, var(--accent) 40%, transparent); }
.gglyph { display: grid; grid-template-columns: repeat(var(--c), 1fr); grid-template-rows: repeat(var(--r), 1fr); gap: 2px; width: 20px; height: 15px; flex: none; }
.gglyph i { border: 1.4px solid currentColor; border-radius: 2px; }

/* Izgara secimi ve bolmeye oturum secme menusu */
.menu.grid-menu { width: 300px; }
.grid-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px 4px 8px; }
.menu .grid-pick button { display: grid; justify-items: center; gap: 6px; padding: 10px 0 7px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; color: var(--muted);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease; }
.menu .grid-pick button:hover { border-color: var(--accent); color: var(--text); }
.menu .grid-pick button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.menu .grid-pick button:active { transform: scale(.97); }
.menu .grid-pick .gglyph { width: 26px; height: 19px; }
.grid-gr { border-top: 1px solid var(--line); margin-top: 4px; padding: 6px 4px 4px; }
.grid-gr-h { padding: 2px 4px 6px; font-size: 12px; color: var(--muted); }
.grid-gr-r { display: flex; align-items: center; gap: 4px; }
.menu .grid-gr-r .ggo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
.grid-gr-r .ggo .gglyph { width: 20px; height: 14px; flex: none; }
.grid-gr-r .ggo b { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-gr-r .ggo span:last-child { margin-left: auto; font-size: 12px; color: var(--faint); flex: none; }
.menu .grid-gr-r .gdel { flex: none; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; color: var(--faint); }
.menu .grid-gr-r .gdel:hover { color: var(--text); }
.menu .grid-gr .gsave { display: flex; align-items: center; gap: 7px; padding: 6px 4px; color: var(--muted); }
.grid-gr-f { display: flex; gap: 6px; padding: 2px 4px; }
.grid-gr-f input { flex: 1; min-width: 0; height: 28px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
.grid-gr-f input:focus { outline: 0; border-color: var(--accent); }
.grid-note { display: flex; gap: 7px; align-items: flex-start; padding: 6px 8px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.grid-note i { font-size: 14px; margin-top: 1px; flex: none; }
.grid-note.warn { color: var(--warn); }
.menu.pane-menu { width: 320px; max-height: min(70vh, 520px); overflow-y: auto; }
.pane-menu .pulse { margin: 0 2px; }
.pane-menu .pm-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-menu .pm-s { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.pane-menu .pm-v { color: var(--accent); }
.pane-menu button.cur { background: var(--accent-soft); }
.pm-g { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pm-g span { margin-left: auto; font-weight: 400; color: var(--faint); }
.pm-g.far { color: var(--far); }

/* Bos hucre: acik oturum bolme sayisindan azsa */
.grid-add { position: absolute; display: grid; place-items: center; padding: 14px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: var(--term-bg); }
.ga-in { display: grid; justify-items: center; gap: 8px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.ga-in > i { font-size: 22px; color: var(--faint); }
.ga-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

/* Terminal sag tik menusu ve kopyala menusu */
.menu button kbd { margin-left: auto; padding-left: 12px; font: 11px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.menu.copy-menu { width: 460px; max-height: min(72vh, 600px); overflow-y: auto; }
.cb { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cb-h { display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; background: var(--panel-2); font-size: 12px; color: var(--muted); }
.cb-h .sp { flex: 1; }
.cb-l { font: 500 11.5px "Geist Mono", ui-monospace, monospace; color: var(--text); }
.cb-at { color: var(--faint); }
.menu.wide .cb-h .btn { height: 26px; padding: 0 9px; font-size: 12px; gap: 5px; }
.menu.wide .cb-h .btn.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.cb pre { margin: 0; padding: 8px 10px; max-height: 10em; overflow: auto; font: 12px/1.45 "Geist Mono", ui-monospace, monospace; white-space: pre; color: var(--text); background: var(--term-bg); }
.cb-empty { padding: 10px 4px; font-size: 12.5px; color: var(--muted); }
.cb-foot { display: flex; justify-content: flex-end; }
/* Ekrandaki kod blogunun yanindaki tek tikla kopyala (app-izgara.js codeLayerUpdate); katman fareyi gecirir, dugme yakalar. */
.code-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.code-copy { position: absolute; right: 18px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; margin-top: -3px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--muted); font: 500 11.5px "Geist", system-ui, sans-serif;
  cursor: pointer; pointer-events: auto; box-shadow: 0 1px 2px rgb(0 0 0 / .08); transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.code-copy i { font-size: 13px; }
.code-copy:hover { color: var(--accent); border-color: var(--accent); }
.code-copy:active { transform: scale(.97); }
.code-copy.done { background: var(--ok); border-color: var(--ok); color: #fff; }
@container (max-width: 560px) { .code-copy span { display: none; } .code-copy { padding: 0 6px; } }
/* Secince kopyalandi isareti: farenin yaninda kisa sure */
.copy-chip { position: fixed; z-index: 45; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-size: 12px; font-weight: 500; pointer-events: none; box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .copy-chip { animation: copy-chip 1.3s var(--ease-out) both; }
  @keyframes copy-chip { 0% { opacity: 0; transform: translateY(4px) scale(.96); } 12% { opacity: 1; transform: none; } 78% { opacity: 1; } 100% { opacity: 0; } }
}

/* cagrilar */
.t-call { font-size: 12px; color: var(--bad); display: flex; gap: 6px; align-items: center; }
.c-list { display: grid; gap: 8px; margin-bottom: 12px; }
.c-row { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer; font: inherit; transition: border-color .15s, background-color .15s; }
.c-row:hover { border-color: var(--accent); }
.c-row:active { transform: scale(.995); }
.c-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.c-title { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.c-meta { font-size: 12px; color: var(--faint); }
.c-text { font-size: 12.5px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.c-side { flex: none; display: grid; justify-items: end; gap: 2px; font-size: 12px; color: var(--muted); }
.c-side b { font: 600 13px "Geist Mono", ui-monospace, monospace; color: var(--bad); }
.c-h3 { margin: 4px 0 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.c-h3 span { color: var(--faint); font-weight: 400; }
.t-mini a { color: var(--text); text-decoration: none; }
.t-mini a:hover { text-decoration: underline; }
/* Takip > Cagrilar (public/cagrilar.js): bu makine + ayni kisinin diger makineleri tek kartta. Satir yapisi her genislikte ayni
   (tur + baslik | sure; makine + oturum | push; uzaksa salt okunur satiri; metin). Diger makinenin satiri: duz kenar, biraz soluk
   zemin ve kilit. Adlar "cl-" ile baslar; eski .c-title / .c-meta ekipler ekraninda da kullaniliyor, onlara dokunulmaz. */
.cl-card { position: relative; border: 1px solid rgb(47 111 228 / .26); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgb(47 111 228 / .075), rgb(47 111 228 / 0) 140px), var(--panel);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 1px 2px rgb(30 30 25 / .04), 0 8px 24px -12px rgb(30 60 140 / .2); }
.cl-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 12px; }
.cl-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--accent);
  background: linear-gradient(160deg, rgb(47 111 228 / .22), rgb(47 111 228 / .07)); box-shadow: 0 0 0 1px rgb(47 111 228 / .22) inset; }
.cl-ttl { min-width: 0; flex: 1; }
.cl-ttl h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.cl-ttl p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.cl-sums { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.cl-sum { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cl-sum i { font-size: 14px; color: var(--muted); }
.cl-sum b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cl-sumsep { color: var(--faint); }
.cl-count { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding-left: 12px; margin-top: -2px; }
.cl-count b { font: 600 24px/1 "Geist", sans-serif; color: var(--bad); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.cl-count span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cl-note { margin: 0 18px 12px; padding: 8px 11px; display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--text);
  border-radius: 9px; background: rgb(226 166 50 / .1); box-shadow: 0 0 0 1px rgb(201 138 18 / .24) inset; }
.cl-note i { font-size: 15px; color: var(--warn); flex: none; margin-top: 1px; }
.cl-empty { margin: 0 18px 14px; font-size: 13px; color: var(--muted); }
.cl-list { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 6px; }
.cl-row { width: 100%; display: grid; gap: 7px; text-align: left; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel);
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.cl-row.far { background: color-mix(in srgb, var(--panel) 50%, var(--bg)); }
.cl-row:active { transform: scale(.995); }
@media (hover: hover) and (pointer: fine) { .cl-row:hover { border-color: var(--accent); } .cl-row.far:hover { border-color: var(--faint); } }
.cl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cl-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-tt { flex: 0 1 auto; min-width: 0; font-size: 13.5px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.cl-age { flex: none; display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; font-size: 12.5px; color: color-mix(in srgb, var(--text) 70%, var(--muted)); font-variant-numeric: tabular-nums; }
.cl-age b { font: 600 13px "Geist Mono", ui-monospace, monospace; color: var(--bad); }
.cl-l2 { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: color-mix(in srgb, var(--text) 70%, var(--muted)); }
.cl-where { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-mach { flex: none; display: inline-flex; align-items: center; gap: 4px; max-width: 55%; height: 20px; padding: 0 8px 0 6px; border-radius: 99px;
  background: var(--panel-2); box-shadow: 0 0 0 1px var(--line) inset; color: var(--muted); font-size: 11.5px; font-weight: 500; line-height: 1; white-space: nowrap; }
.cl-mach > span { overflow: hidden; text-overflow: ellipsis; }
.cl-mach i { font-size: 13px; flex: none; }
.cl-mach.me { color: var(--text); background: var(--accent-soft); box-shadow: 0 0 0 1px rgb(47 111 228 / .22) inset; }
.cl-mach.me i { color: var(--accent); }
.cl-mach.sm { height: 18px; font-size: 11px; }
.cl-ro { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: 99px; font-size: 11.5px; font-weight: 500;
  color: var(--text); background: rgb(226 166 50 / .12); box-shadow: 0 0 0 1px rgb(201 138 18 / .3) inset; white-space: nowrap; }
.cl-ro i { font-size: 13px; flex: none; color: var(--warn); }
.cl-text { font-size: 13.5px; line-height: 1.5; color: color-mix(in srgb, var(--text) 88%, var(--muted)); margin-top: 1px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-donebox { border-top: 1px solid var(--line); padding: 12px 18px 14px; }
.cl-donebox h3 { margin: 0 0 10px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.cl-donebox h3 span { color: var(--faint); font-weight: 400; }
.cl-done { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cl-di { display: grid; gap: 4px; min-width: 0; }
.cl-d1 { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.cl-dlink { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; font-weight: 500; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.cl-dlink:hover { text-decoration: underline; }
.cl-dlink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.cl-d1 time { flex: none; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cl-d2 { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
.cl-d2 > span:last-child { flex: 1; min-width: 0; }
@media (prefers-color-scheme: dark) {
  .cl-card { border-color: rgb(91 143 240 / .24); background: linear-gradient(180deg, rgb(91 143 240 / .08), rgb(91 143 240 / 0) 140px), var(--panel);
    box-shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 10px 30px -14px rgb(0 0 0 / .6); }
}
/* Dar pencere: kart kendi genisligine bakar (container), ekrana degil; Mac'te Atolye menusu acikken de dar pencerede devreye girer.
   520 px alti: bosluklar ve simge kuculur, bekleme ve push tur etiketinin yaninda, baslik altta tam satir, meta satiri sarar.
   380 px alti: salt okunur rozeti kendi satirinda, aciklama satiri gizli, cozulenlerde zaman basligin altinda. */
.cl { container-type: inline-size; }
@container (max-width: 520px) {
  .cl-head { padding: 14px 14px 10px; gap: 10px; }
  .cl-ic { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
  .cl-count b { font-size: 20px; }
  .cl-note { margin: 0 12px 10px; }
  .cl-list { padding: 0 6px 6px; gap: 5px; }
  .cl-row { padding: 9px 11px; gap: 6px; }
  /* Tur etiketi ile bekleme ve push ayni satirda; baslik altinda tam satir. */
  .cl-l1 { flex-wrap: wrap; row-gap: 4px; }
  .cl-age { order: 1; }
  .cl-tt { order: 2; flex: 1 1 100%; }
  .cl-l2 { flex-wrap: wrap; row-gap: 4px; }
  .cl-mach { max-width: 100%; }
  .cl-donebox { padding: 12px 14px 14px; }
}
@container (max-width: 380px) {
  .cl-ttl p { display: none; }
  /* Meta satiri: makine ve oturum yan yana, salt okunur rozeti kendi satirinda. */
  .cl-l2 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; }
  .cl-ro { grid-column: 1 / -1; justify-self: start; }
  .cl-d1 { flex-wrap: wrap; row-gap: 2px; }
  .cl-d1 time { width: 100%; }
}

/* ekipler / mcp */
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; }
.m-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.m-switch input { accent-color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; margin-left: auto; }
.link-btn:hover { text-decoration: underline; }
#mcp-form .t-reply { min-height: 64px; }
.field select { appearance: auto; }
.ag-list { display: grid; gap: 6px; }
.ag-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.ag-row > .k-new { flex-basis: 100%; }
.ag-main { flex: 1; min-width: 200px; display: grid; gap: 2px; }
.ag-acts { display: flex; gap: 6px; align-items: center; }
.ag-acts .btn { height: 28px; font-size: 12px; padding: 0 9px; }
/* zamanlanmis gorevler */
.sf-in { height: 32px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--text); padding: 0 8px; font: inherit; }
#sf-hours { width: 72px; }
.sf-days { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.sf-day { display: inline-flex; }
.sf-day input { position: absolute; opacity: 0; pointer-events: none; }
.sf-day span { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; color: var(--muted); cursor: pointer; user-select: none; transition: background-color .15s, color .15s, border-color .15s; }
.sf-day input:checked + span { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.sf-day input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
/* hazir ekipler ve ekip isleri */
.tp-panel { gap: 12px; }
.tp-chips { gap: 6px; }
.tp-chip { height: 28px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.tp-chip:hover { color: var(--text); }
.tp-chip.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tp-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tp-card { display: grid; gap: 6px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s; }
.tp-card:hover { border-color: var(--faint); }
.tp-card.sug { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tp-card .btn { justify-self: start; height: 28px; font-size: 12.5px; }
.tp-roles { display: flex; flex-wrap: wrap; gap: 4px; }
.tp-roles span { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); }
.wk-plan { gap: 8px; }
.wk-prompt { white-space: pre-wrap; max-height: 5.4em; overflow: hidden; }
.wk-row { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.vf-sum { border-left: 2px solid var(--warn); padding-left: 8px; }
/* sabah ozeti */
.rep-card { border-color: var(--accent); }
.rep-text { white-space: pre-wrap; font-size: 13px; line-height: 1.55; color: var(--text); }
.mcp-auth { display: grid; gap: 8px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel-2); }
.mcp-auth select { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 0 8px; }
.mcp-acc { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.dev-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.dev-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: transparent; font-size: 12px; color: var(--muted); cursor: pointer; }
.dev-chip span { font-size: 11px; opacity: .7; }
.dev-chip.on { color: var(--text, inherit); border-color: var(--accent); background: rgb(80 140 255 / .12); }
.dev-chip.mach i { font-size: 13px; }
.remote { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; }
.remote .r-head { display: flex; align-items: flex-start; gap: 10px; }
.remote .r-head h1 { font-size: 16px; margin: 0 0 2px; }
.remote .r-head .sp { flex: 1; }
.remote .r-note { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.remote .r-term { flex: 1; min-height: 200px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 6px; background: var(--panel); }
.remote .r-keys { display: flex; gap: 6px; flex-wrap: wrap; }
.remote .r-say { display: flex; gap: 8px; align-items: stretch; }
.remote .r-say textarea { flex: 1; resize: vertical; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 8px; font: inherit; color: inherit; }
.bell { position: relative; }
.bell-n { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--warn); color: #111; font-size: 10px; line-height: 16px; text-align: center; }
.bell-pop { width: min(420px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
.bell-pop .menu-h span { display: block; font-size: 11.5px; margin-top: 2px; }
.bell-list { display: grid; gap: 2px; }
.bell-it { display: grid; gap: 3px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.bell-it:hover { background: var(--panel-2); }
.bell-it.new { box-shadow: inset 3px 0 0 var(--accent); }
.bell-it.dim { opacity: .65; }
.bell-t { display: flex; gap: 8px; justify-content: flex-start; align-items: center; font-size: 13px; }
.bell-t b { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bell-t .when { font-size: 11px; color: var(--muted); flex: none; }
.bell-m { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bell-f { display: flex; gap: 8px; align-items: center; font-size: 11px; flex-wrap: wrap; color: var(--muted); }
.icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.bell-pop .bell-it { display: grid; gap: 4px; justify-items: stretch; align-items: start; height: auto; white-space: normal; }
.bell-pop .bell-it > div { min-width: 0; }
.bell-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bell-chips { padding: 8px 6px 4px; }
.bell-tabs { padding: 8px 6px 0; gap: 6px; }
.bell-tabs .dev-chip { gap: 6px; }
/* ntfy sekmesi: mesajin tamami, satir sonlari korunur, adresler tiklanir */
.bell-rm { font-size: 12px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.bell-url { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.bell-raw:not([data-ntfy]) { cursor: default; }
.bell-sec { padding: 10px 10px 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bell-sec span { opacity: .7; }
.bell-f .sp { flex: 1; }
.bell-go { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.bell-why { margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); font-size: 12px; color: var(--text); display: grid; gap: 8px; }
.bell-why .row { display: flex; gap: 6px; }
.bell-pop .dev-chip { display: inline-flex; width: auto; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; }
.bell-pop .dev-chip.on { border-color: var(--accent); background: rgb(80 140 255 / .12); }
.bell-pop .link-btn { width: auto; padding: 2px 6px; flex: none; }
.bell-h > div { min-width: 0; }
/* ---------------------------------------------------------------- ekipler v2: sikistirilmis kart + is akisi */
.tm-card { min-width: 0; position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px 14px; display: grid; gap: 10px; overflow: hidden; }
.tm-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--tc); opacity: .85; }
.tm-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 18%, transparent); }
.tm-dot.busy { animation: hub-pulse 1.6s ease-in-out infinite; }
.tm-id { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tm-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.tm-ic { color: var(--ok); font-size: 14px; }
.tm-sub { display: flex; gap: 0; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; min-width: 0; }
.tm-sub > span { flex: none; }
.tm-sub > span + span::before { content: "·"; margin: 0 7px; }
.tm-sub .tm-note { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tm-crew { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .16s var(--ease-out); }
.ag-chip:active { transform: scale(0.97); }
.ag-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.ag-chip.busy { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.ag-chip.add { width: 32px; padding: 0; justify-content: center; color: var(--muted); border-style: dashed; }
@media (hover: hover) and (pointer: fine) { .ag-chip:hover { border-color: var(--faint); } .ag-chip.on:hover { border-color: var(--accent); } }
.ag-nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av { position: relative; flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
  color: hsl(var(--h) 70% 92%); background: linear-gradient(140deg, hsl(var(--h) 62% 52%), hsl(calc(var(--h) + 35) 58% 40%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .18); }
.av.lg { width: 36px; height: 36px; font-size: 13px; }
.av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.av.xs { width: 18px; height: 18px; font-size: 8px; }
.av.you { background: var(--panel-2); color: var(--muted); font-size: 13px; box-shadow: none; }
.av-crown { position: absolute; top: -7px; right: -5px; font-size: 11px; color: #e2a632; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .4)); }
.av.xs .av-crown, .av.sm .av-crown { display: none; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 5px; vertical-align: 1px; animation: hub-pulse 1.4s ease-in-out infinite; }
.ag-chip .live-dot { margin: 0 0 0 -2px; }
@keyframes hub-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* ajan ayrintisi */
.ag-panel { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.ag-panel-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ag-recent { display: grid; gap: 4px; }
.ag-rt { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.ag-rt > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-rt:disabled { cursor: default; }
@media (hover: hover) and (pointer: fine) { .ag-rt:not(:disabled):hover { background: var(--panel-2); } }
.tm-more { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 10px; }
/* yazma kutusu (ekler) */
.cmp { display: grid; gap: 6px; padding: 8px 8px 6px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease; }
.cmp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cmp.sm { background: var(--panel); }
.cmp-in { width: 100%; min-height: 22px; max-height: 260px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); font: 13px/1.5 "Geist", sans-serif; padding: 4px 0 0; }
.cmp-in::placeholder { color: var(--faint); }
.cmp-bar { display: flex; align-items: center; gap: 6px; }
.cmp-bar .sp { flex: 1; }
.cmp-bar .btn { height: 30px; font-size: 12.5px; padding: 0 12px; }
.cmp-hint { font-size: 11.5px; opacity: 0; transition: opacity .15s ease; }
.cmp:focus-within .cmp-hint { opacity: 1; }
.att-chips, .msg-files { display: flex; flex-wrap: wrap; gap: 6px; }
.att-chips:empty { display: none; }
.att { display: inline-flex; align-items: center; gap: 6px; max-width: 240px; height: 30px; padding: 0 4px 0 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: 12px; color: var(--muted); }
.att img { width: 22px; height: 22px; object-fit: cover; border-radius: 5px; }
.att > i { font-size: 15px; padding-left: 3px; }
.att > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att.busy { opacity: .55; }
.att-x { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 5px; background: transparent; color: var(--faint); cursor: pointer; }
.att-x:hover { color: var(--text); background: var(--panel-2); }
.msg-files .att { padding-right: 8px; }
.att-drag { outline: 2px dashed var(--accent); outline-offset: 2px; }
.term.att-drag { outline-offset: -4px; }
/* is listesi ve konusma akisi */
.wk-list { display: grid; gap: 6px; }
.wk { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.wk.open { background: var(--panel); }
.wk-top { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; border-radius: 10px; }
.wk-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-avs { display: inline-flex; }
.wk-avs .av { margin-left: -5px; box-shadow: 0 0 0 2px var(--bg); }
.wk.open .wk-avs .av { box-shadow: 0 0 0 2px var(--panel); }
.wk-prog { width: 54px; height: 4px; border-radius: 2px; background: var(--panel-2); overflow: hidden; flex: none; }
.wk-prog span { display: block; height: 100%; background: var(--accent); border-radius: 2px; }
.wk-when { font-size: 11.5px; flex: none; }
.wk-caret { color: var(--faint); transition: transform .2s var(--ease-out); }
.wk.open .wk-caret { transform: rotate(180deg); }
.wk-thread { position: relative; display: grid; gap: 12px; padding: 4px 14px 14px; }
.wk-thread::before { content: ""; position: absolute; left: 26px; top: 8px; bottom: 22px; width: 1px; background: var(--line); }
.wm { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.wm > .av { margin-top: 1px; box-shadow: 0 0 0 3px var(--panel); }
.wm.reply { margin-left: 30px; }
.wm.reply::before { content: ""; position: absolute; left: -18px; top: -6px; width: 14px; height: 16px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 8px; }
.msg-b { flex: 1; min-width: 0; display: grid; gap: 5px; }
.msg-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; }
.msg-h .link-btn { margin-left: 0; display: inline-flex; align-items: center; gap: 3px; }
.msg-title { color: var(--muted); }
.msg-text { font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.msg-text.muted { color: var(--muted); }
.msg-text code { font: 12px "Geist Mono", ui-monospace, monospace; padding: 0 4px; border-radius: 4px; background: var(--panel-2); }
.msg-text.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--l, 5); overflow: hidden; }
.msg-text.live { color: var(--muted); }
.wm .more { margin-left: 0; justify-self: start; }
.wm.final .msg-b { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--tc) 9%, var(--panel)); border: 1px solid color-mix(in srgb, var(--tc) 28%, var(--line)); }
.wm.is-live .msg-b { padding: 8px 10px; border-radius: 10px; background: var(--accent-soft); }
.tool-line { display: flex; align-items: center; gap: 6px; font: 11.5px "Geist Mono", ui-monospace, monospace; color: var(--muted); min-width: 0; }
.tool-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool-line .spin { animation: hub-spin 1.6s linear infinite; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
.asg-mini { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--muted); }
.asg-mini > span { display: inline-flex; align-items: center; gap: 5px; }
.asg-mini b { color: var(--text); font-weight: 500; }
.asg { display: grid; gap: 6px; }
.asg-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.asg-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.asg-main .msg-text { font-size: 12.5px; color: var(--muted); }
.wk-wait { display: flex; align-items: center; gap: 4px; margin-left: 32px; font-size: 12px; color: var(--muted); }
/* yeni gelen mesaj: bir kez, kisa */
.wm.in { animation: msg-in .24s var(--ease-out) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mcp-fold { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.mcp-fold .muted { font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) {
  .wm.in { animation: msg-fade .2s ease both; }
  .live-dot, .tm-dot.busy, .tool-line .spin { animation: none; }
}
@keyframes msg-fade { from { opacity: 0; } to { opacity: 1; } }
/* ekip sayfasi, son 2 is, devam kutusu */
.tm-link { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .tm-link:hover { color: var(--accent); } }
.tm-open { height: 28px; font-size: 12px; padding: 0 10px; flex: none; }
.tm-head.big { align-items: flex-start; }
.tm-head.big .tm-dot { margin-top: 9px; }
.tm-head.big h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.tm-sub.wrap { white-space: normal; flex-wrap: wrap; row-gap: 2px; font-size: 12.5px; }
.tm-sub.wrap .tm-note { flex-basis: 100%; overflow: visible; }
.tm-sub.wrap .tm-note::before { content: none; }
.wk-more { display: flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 1px dashed var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
@media (hover: hover) and (pointer: fine) { .wk-more:hover { color: var(--text); border-color: var(--faint); } }
.wk-reply { margin-left: 36px; }
.tpg { gap: 16px; }
.tpg-head { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tpg-main { display: grid; gap: 12px; min-width: 0; }
.tpg-side { display: grid; gap: 10px; position: sticky; top: 12px; }
.tpg-h { margin: 6px 0 0; font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; }
.tpg-h span { font-weight: 400; color: var(--muted); font-size: 12px; }
.mb-list { display: grid; gap: 4px; }
.mb-row { display: grid; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.mb-row.on { border-color: var(--accent); }
.mb-main { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.mb-txt { display: grid; min-width: 0; font-size: 12.5px; }
.mb-txt b { font-weight: 500; }
.mb-txt .muted { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-st { display: flex; align-items: center; gap: 4px; margin-left: 35px; font-size: 11.5px; min-width: 0; border: 0; background: none; padding: 0; font-family: inherit; text-align: left; }
.mb-st.live { color: var(--accent); cursor: pointer; }
.mb-st.live span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .tpg-grid { grid-template-columns: 1fr; } .tpg-side { position: static; } }
/* promptla taslagi ve plan onayi */
.cmp.pd { padding: 10px 10px 8px 12px; background: color-mix(in srgb, var(--tc, var(--accent)) 6%, var(--panel)); border-color: color-mix(in srgb, var(--tc, var(--accent)) 30%, var(--line)); }
.pd-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.pd-h .sp { flex: 1; }
.pd-h .btn { height: 28px; font-size: 12px; }
.pd-in { min-height: 140px; max-height: 420px; resize: vertical; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.pd-q { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 8px; background: rgb(226 166 50 / .08); }
.pd-q b { color: var(--warn); font-weight: 500; }
.pd-note { width: 100%; min-height: 34px; max-height: 260px; resize: none; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); padding: 7px 10px; font: 13px/1.45 "Geist", sans-serif; outline: 0; }
.pd-qa { display: grid; gap: 4px; margin-top: 6px; cursor: text; }
.pd-qa > span { color: var(--text); font-size: 12.5px; }
.pd-note:focus { border-color: var(--accent); }
.asg-row.off { opacity: .45; }
.asg-row.off .msg-text { text-decoration: line-through; }
.wk-stop { margin-left: 36px; }
.pd-notes { display: grid; gap: 3px; font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 8px; background: rgb(31 157 85 / .08); }
.pd-notes b { color: var(--ok); font-weight: 500; }
.pd-notes i { color: var(--ok); margin-right: 6px; }
.perm-row { display: grid; gap: 6px; padding-top: 4px; }
.perm-cmd { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--term-bg); border: 1px solid var(--line); font: 11.5px/1.5 "Geist Mono", ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; color: var(--text); }
.perm-all { display: grid; gap: 6px; margin-left: 36px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgb(226 166 50 / .45); background: rgb(226 166 50 / .07); }
.perm-all .pd-h i { color: var(--warn); }
.perm-li { display: flex; align-items: center; gap: 6px; font-size: 12px; min-width: 0; }
.perm-li .mono { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bell-perm { display: flex; gap: 6px; margin-top: 6px; }
.bell-perm .btn { height: 28px; font-size: 12px; padding: 0 10px; }
/* akis sohbet gibi: sabit yukseklik, en yeni altta, devam kutusu altta sabit */
.wk-thread[data-w] { max-height: min(72vh, 820px); overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 80px; padding-top: 8px; }
.wk-thread[data-w]::before { display: none; }
.wk-thread .wk-reply { position: sticky; top: 0; z-index: 2; box-shadow: 0 10px 18px var(--panel); margin-left: 0; }
.wk-thread .perm-all, .wk-thread .wk-wait, .wk-thread .wk-stop { margin-left: 0; }
.wm.flash .msg-b { animation: wm-flash 1.6s var(--ease-out); }
@keyframes wm-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--accent); border-radius: 10px; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* uyeler: izin bekleyen */
.mb-row.need { border-color: rgb(226 166 50 / .6); background: rgb(226 166 50 / .06); }
.mb-main .badge { margin-left: auto; }
.mb-need { display: flex; align-items: center; gap: 6px; margin-left: 35px; font-size: 11.5px; color: var(--warn); }
.mb-need .sp { flex: 1; }
.btn.sm { height: 26px; font-size: 12px; padding: 4px 9px; }
/* uye penceresi */
.mm-bg { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .45); animation: mm-fade .16s ease-out; }
.mm { width: min(680px, 100%); max-height: 86vh; overflow-y: auto; display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shadow); animation: mm-in .2s var(--ease-out); }
@keyframes mm-fade { from { opacity: 0; } }
@keyframes mm-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.mm-h { display: flex; align-items: center; gap: 12px; }
.mm-mode { display: grid; gap: 4px; font-size: 12.5px; }
.mm-mode select { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); padding: 0 8px; justify-self: start; }
.mm-mode .muted { font-size: 11.5px; }
.mm-sec { display: grid; gap: 8px; }
.mm-task { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.mm-task.need { border-color: rgb(226 166 50 / .6); }
.mm-task .msg-h .sp { flex: 1; }
@media (prefers-reduced-motion: reduce) { .mm-bg, .mm { animation: none; } }
/* zil: bekleyis e-postasi ayari (listenin altinda, kayarken gorunur kalir) */
.bell-foot { position: sticky; bottom: -1px; margin-top: 6px; border-top: 1px solid var(--line); background: var(--panel); }
.bell-mail { padding: 10px 10px 8px; background: var(--panel); display: grid; gap: 6px; font-size: 12px; }
/* Hub sesleri (app-bildirim.js bellSes): ac/kapat, duzey, Dinle; e-posta satirinin ustunde, ayni dipte. */
.bell-ses { padding: 10px 10px 8px; display: grid; gap: 6px; font-size: 12px; border-bottom: 1px solid var(--line); }
.bell-ses .bm-h { display: flex; align-items: center; gap: 8px; }
.bell-ses .bm-h .sp { flex: 1; }
.bell-ses .toggle { color: var(--text); font-size: 13px; }
.bell-ses .bm-t { color: var(--muted); line-height: 1.45; }
.bell-ses .bs-duzey { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.bell-ses .bs-duzey input { flex: 1; min-width: 0; accent-color: var(--accent); }
.bell-ses .bs-duzey output { min-width: 4ch; text-align: right; font: 11.5px "Geist Mono", ui-monospace, monospace; color: var(--text); font-variant-numeric: tabular-nums; }
.bell-mail .bm-h { display: flex; align-items: center; gap: 8px; }
.bell-mail .bm-h .sp { flex: 1; }
.bell-mail .toggle { color: var(--text); font-size: 13px; }
.bell-mail .bm-t { color: var(--muted); line-height: 1.45; }
.bell-mail .bm-t b { color: var(--text); font-weight: 500; }
.bell-mail select { height: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); padding: 0 4px; font-size: 12px; color: var(--text); }
.bell-mail .bm-warn { color: var(--warn); }
.bell-mail .bm-last { color: var(--muted); }
.bell-mail .bm-last.bad { color: var(--bad); }
.bell-mail .link-btn:disabled { opacity: .4; cursor: default; }
/* yapilacaklar */
.todo-box { display: grid; gap: 2px; margin: 0 12px 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.todo-box.side { margin: 0; background: var(--panel); }
.todo-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 2px 2px 4px; }
.todo-parts { display: grid; gap: 2px; padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.todo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 4px 2px; border-radius: 6px; font-size: 13px; min-width: 0; }
.todo.part { font-size: 12px; color: var(--muted); align-items: center; }
.todo.part .todo-text b { color: var(--text); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .todo:not(.part):hover { background: var(--panel-2); } .todo .todo-acts { opacity: 0; transition: opacity .12s ease; } .todo:hover .todo-acts, .todo:focus-within .todo-acts { opacity: 1; } }
.todo-cb { flex: none; display: grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; padding: 0; border: 1.5px solid var(--faint); border-radius: 5px; background: transparent; color: #fff; cursor: pointer; transition: background-color .12s ease, border-color .12s ease, transform .12s var(--ease-out); }
.todo-cb:active { transform: scale(.92); }
.todo-cb i { font-size: 11px; }
.todo.done .todo-cb, .todo.part.done .todo-cb { background: var(--ok); border-color: var(--ok); }
.todo-cb.ro { cursor: default; width: 15px; height: 15px; }
.todo-cb.ro .live-dot { margin: 0; width: 6px; height: 6px; }
.todo-text { flex: 1; min-width: 0; line-height: 1.45; overflow-wrap: anywhere; }
.todo-text code { font: 11.5px "Geist Mono", ui-monospace, monospace; padding: 0 4px; border-radius: 4px; background: var(--panel-2); }
.todo.done .todo-text { color: var(--faint); text-decoration: line-through; }
.todo-w { display: block; margin: 1px 0 0; font-size: 11.5px; color: var(--muted); text-align: left; }
.todo-own { flex: none; font-size: 11px; padding: 1px 7px; border-radius: 99px; margin-top: 1px; }
.todo-own.me { color: var(--warn); background: rgb(226 166 50 / .14); }
.todo-own.team { color: var(--accent); background: var(--accent-soft); }
.todo-acts { flex: none; display: flex; align-items: center; gap: 8px; }
.todo-acts .link-btn { margin: 0; font-size: 11.5px; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.todo-x { width: 22px; height: 22px; }
.todo-more { margin: 2px 0 0 25px; justify-self: start; font-size: 11.5px; }
.todo-add { margin-top: 4px; height: 30px; border: 1px dashed var(--line); border-radius: 8px; background: transparent; color: var(--text); padding: 0 10px; font: inherit; font-size: 12.5px; outline: 0; }
.todo-add:focus { border-style: solid; border-color: var(--accent); }
.todo.flash { animation: wm-flash 1.6s var(--ease-out); }
.todo-n { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); flex: none; }
.tpg-side .todo-box.side { max-height: 46vh; overflow-y: auto; }
.todo-box.side .todo { flex-wrap: wrap; }
.todo-box.side .todo-acts { display: none; flex-basis: 100%; padding-left: 25px; opacity: 1; }
.todo-box.side .todo:hover .todo-acts, .todo-box.side .todo:focus-within .todo-acts { display: flex; }
/* karar sorulari: oneri + cevap */
.todo-q { flex-basis: 100%; display: grid; gap: 5px; margin: 2px 0 4px 25px; }
.todo-hint { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--muted); padding: 6px 8px; border-radius: 8px; background: var(--accent-soft); }
.todo-hint > i { color: var(--accent); margin-top: 2px; }
.todo-hint > span { flex: 1; min-width: 0; }
.todo-hint b { color: var(--text); font-weight: 500; }
.todo-hint .link-btn { margin: 0; flex: none; font-size: 11.5px; }
.todo-ans { width: 100%; min-height: 32px; max-height: 200px; resize: none; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--text); padding: 6px 9px; font: 12.5px/1.45 "Geist", sans-serif; outline: 0; }
.todo-ans:focus { border-color: var(--accent); }
.todo-ok { font-size: 11.5px; color: var(--ok); }
.todo-ok.ask { color: var(--warn); }
/* soruya soruyla cevap ve "Acikla" */
.todo-asked, .todo-exp { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.5; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); }
.todo-asked > i, .todo-exp > i { margin-top: 2px; color: var(--muted); }
.todo-asked > span, .todo-exp > span { flex: 1; min-width: 0; }
.todo-asked b { font-weight: 500; }
.todo-exp { background: var(--panel); color: var(--text); }
.todo-exp > span { white-space: pre-line; }
.todo-exp p { margin: 0 0 4px; }
.todo-exp p:last-child, .todo-exp ol:last-child, .todo-exp ul:last-child { margin-bottom: 0; }
.todo-exp ol, .todo-exp ul { margin: 0 0 4px; padding-left: 18px; }
.todo-expr { display: flex; }
.todo-expr .link-btn { margin: 0; font-size: 11.5px; display: inline-flex; align-items: center; gap: 4px; }
.todo-h .sp { flex: 1; }
/* ilerleme paneli */
.mx { display: flex; gap: 14px; align-items: center; margin: 0 12px 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.mx-ring { --p: 0; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--panel-2) 0); }
.mx-ring::before { content: ""; grid-area: 1 / 1; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); }
.mx-ring span { grid-area: 1 / 1; position: relative; font: 600 13px "Geist", sans-serif; font-variant-numeric: tabular-nums; }
.mx-ring.live { box-shadow: 0 0 0 3px var(--accent-soft); }
.mx-main { flex: 1; min-width: 0; display: grid; gap: 8px; }
.mx-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.mx-eta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--accent); }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; }
.mx-c { display: grid; gap: 1px; min-width: 0; }
.mx-c span { font-size: 11px; color: var(--faint); }
.mx-c b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-c em { font-style: normal; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx-tag { font-size: 11px; color: var(--muted); padding: 0 6px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
.wk-pct { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; width: 34px; flex: none; }
.mm-row2 { display: flex; gap: 14px; flex-wrap: wrap; }
.mm-hint { font-size: 11.5px; margin-top: -6px; }

/* Otonom is: ekibe is verme kutusundaki secim ve is akisinin ustundeki onizleme karti */
.oto-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 6px 2px 0; }
.oto-in { flex: 1 1 220px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; font-size: 12px; }
.oto-in.sm { flex: 0 1 170px; }
.oto-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; display: grid; gap: 8px; }
.oto-card.ok { border-left-color: var(--ok); }
.oto-card.bad { border-left-color: var(--bad); }
.oto-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.oto-br { margin-left: auto; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.oto-p { display: flex; gap: 12px; align-items: flex-start; }
.oto-shot { width: 96px; border-radius: 8px; border: 1px solid var(--line); display: block; }
.oto-pt { display: grid; gap: 4px; min-width: 0; font-size: 12.5px; }
.oto-pt a { word-break: break-all; }
.oto-ok { color: var(--ok); }
.oto-bad { color: var(--bad); }
.oto-iss { margin: 0; padding-left: 16px; font-size: 11px; color: var(--muted); }
.oto-iss li { word-break: break-all; }
.oto-hint { font-size: 11.5px; }

/* 16 Eki toparlama: tek sutunlu gridler icerikle sismesin (uzun is basligi ana sutunu Uyeler'in altina itiyordu) */
.q-wrap, .t-list, .t-item, .tpg-main, .tpg-side, .wk-list, .wk-thread, .msg-b, .cmp, .todo-box, .mx-main, .asg, .asg-main,
.oto-card, .tm-card, .mb-list, .mb-row, .ag-panel, .k-new { grid-template-columns: minmax(0, 1fr); }
.wk, .wk-top, .wk-zone { min-width: 0; }
.tm-desc { display: grid; gap: 2px; max-width: 72ch; }
.tm-desc .msg-text { font-size: 12.5px; color: var(--muted); }
@media (max-width: 1560px) {
  .acc .meter { display: none; }
  #btn-add-acc .lbl { display: none; }
  .bar-right .btn.ghost#btn-add-acc { padding: 0 9px; }
  .bar-right { gap: 8px; }
}

/* ---------------------------------------------------------------- 16 Eki: Takip yeni duzen */
.tk-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -10px; }
.tk-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s ease, transform .16s var(--ease-out); }
.tk-pill b { font: 600 15px "Geist", sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.tk-pill.me { border-color: rgb(226 166 50 / .5); background: rgb(226 166 50 / .08); }
.tk-pill.me b { color: var(--warn); }
.tk-pill.run b { color: var(--accent); }
.tk-pill.ok b { color: var(--ok); }
.tk-pill:active:not(:disabled) { transform: scale(.97); }
.tk-pill:disabled { cursor: default; opacity: .6; }
@media (hover: hover) and (pointer: fine) { .tk-pill:not(:disabled):hover { border-color: var(--faint); } }
.rep-fold { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.rep-top { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.rep-top b { color: var(--text); font-weight: 500; flex: none; }
.rep-top .rep-line { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep-top .when { flex: none; font-size: 12px; color: var(--faint); }
.rep-fold.open .wk-caret { transform: rotate(180deg); }
.rep-body { display: grid; gap: 10px; padding: 0 14px 12px 40px; }
.t-sec { scroll-margin-top: 16px; }
.tk-grp { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.tk-grp-h { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.tk-grp-h .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tc); flex: none; }
.tk-grp-h b { color: var(--text); font-weight: 600; font-size: 13px; flex: none; }
.tk-grp-h > span:not(.sp):not(.dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tk-grp-h .mono { font-size: 11.5px; color: var(--faint); }
.tk-grp-h .tk-n { flex: none; }
.tk-grp-h .sp { flex: 1; }
.tk-it { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px 16px; }
.tk-it + .tk-it { border-top: 1px solid var(--line); }
.tk-it.acil { box-shadow: inset 3px 0 0 var(--bad); }
.tk-q { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.tk-q .badge { margin-top: 2px; flex: none; }
.tk-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; color: var(--faint); }
.tk-meta .badge { flex: none; }
.tk-ctx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Takip: WhatsApp ve e-posta (public/takip-kaynak.js) */
.tk-quote { margin: 6px 0 0; padding: 6px 10px; border-left: 3px solid var(--line); color: var(--muted); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.t-set.nt-card.tkk { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.t-set.nt-card.tkk > label { align-self: flex-start; }
.t-set.nt-card.tkk > .t-auto-n { margin: 0; line-height: 1.45; }
.tkk .tkk-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.tkk .tkk-h b { display: inline-flex; align-items: center; gap: 6px; color: var(--text, inherit); }
.tkk .tkk-h .sp { flex: 1; }
.tkk .tkk-list, .tkk .tkk-pick ul { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 4px; }
.tkk .tkk-list li, .tkk .tkk-pick li { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 30px; padding: 0 4px; border-radius: 6px; }
.tkk .tkk-pick li:hover { background: var(--bg); }
.tkk .tkk-list li > span:first-of-type, .tkk .tkk-pick li > span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tkk .tkk-pick { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-top: 6px; }
.tkk .tkk-pick ul { max-height: 260px; overflow: auto; }
.tkk .tkk-pick .t-auto-n { margin: 8px 0 0; }
.tkk .tkk-pick input[type=search], .tkk .tkk-add input, .tkk .tkk-add select { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: inherit; padding: 0 8px; font: inherit; }
.tkk .tkk-pick input[type=search] { width: 100%; box-sizing: border-box; margin-bottom: 6px; }
.tkk .tkk-add { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tkk .tkk-add input[type=email] { flex: 1; min-width: 180px; }
.tkk code { font-size: 11.5px; overflow-wrap: anywhere; }
.tk-meta .when { flex: none; margin-left: auto; }
.tk-sum { -webkit-line-clamp: 2; font-size: 12.5px; cursor: pointer; }
.tk-ans { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tk-ans > span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-ans > span i { color: var(--accent); margin-right: 6px; }
.tk-ans > span b { font-weight: 500; }
.tk-ans .btn { height: 28px; font-size: 12.5px; padding: 0 10px; }
.tk-it .t-acts .icon-btn, .tk-ans .icon-btn { width: 28px; height: 28px; }
.tk-more { width: 100%; height: 38px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--accent); font: inherit; font-size: 12.5px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .tk-more:hover { background: var(--panel-2); } }
@media (max-width: 1100px) { .tk-ans { flex-wrap: wrap; } .tk-ans > span { flex-basis: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } }

/* ---------------------------------------------------------------- 16 Eki: Ekipler satirlari */
.tm-rows { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; container-type: inline-size; }
.tm-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.tm-row + .tm-row { border-top: 1px solid var(--line); }
.tm-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tc); opacity: .85; }
.tr-main { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 12px 14px 12px 20px; }
.tr-n { display: grid; grid-template-columns: auto auto 1fr; align-items: center; column-gap: 6px; min-width: 0; }
.tr-n .tm-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.tr-n .mono { grid-column: 1 / -1; font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-w { display: grid; gap: 3px; min-width: 0; padding: 4px 6px; margin: -4px -6px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .tr-w:hover { background: var(--panel-2); } }
.tr-l1 { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; }
.tr-l1 .badge { flex: none; }
.tr-l1 .tr-t, .tr-l1 .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tr-l2 { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tr-me { color: var(--warn); }
.tr-avs { display: inline-flex; padding-left: 6px; }
.tr-avs .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--panel); }
.tr-acts { display: flex; align-items: center; gap: 6px; }
.tr-acts .btn { height: 30px; font-size: 12.5px; padding: 0 10px; }
.btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tr-cmp { padding: 0 14px 14px 20px; }
.tm-row > .tm-more, .tm-row > .t-item, .tm-row > .ag-panel { margin: 0 14px 14px 20px; }
@media (max-width: 1180px) { .tr-avs { display: none; } .tr-main { grid-template-columns: minmax(130px, 190px) minmax(0, 1fr) auto; } }
/* Dar alanda (dar pencere, telefon genisligi; .tm-rows kapsayici) durum satiri adin ve dugmelerin altina iner; rozet dugmelerin altinda kalmasin. */
@container (max-width: 620px) {
  .tr-main { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .tr-main > .tr-w { grid-column: 1 / -1; grid-row: 2; margin: 0 -6px -4px; }
  .tr-main > .tr-avs { display: none; }
}

/* ---------------------------------------------------------------- 16 Eki: ekip sayfasi */
.q-wrap.wide { max-width: 1400px; }
.tpg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.tm-head.big > .btn { flex: none; }
/* senden bekleyen kararlar */
.dc-box { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid rgb(226 166 50 / .45); border-radius: 12px; background: var(--panel); overflow: hidden; }
.dc-h { display: flex; align-items: center; gap: 8px; padding: 11px 16px; font-size: 13px; }
.dc-h i { color: var(--warn); font-size: 16px; }
.dc-h b { font-weight: 600; }
.dc-w { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--muted); }
.dc-wt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-w .badge { flex: none; }
.dc-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.dc-list > .todo { padding: 12px 16px; border-top: 1px solid var(--line); border-radius: 0; }
.dc-list > .todo > .todo-text { font-size: 13.5px; font-weight: 500; }
.dc-list .todo-q { margin-bottom: 0; }
@media (hover: hover) and (pointer: fine) { .dc-list > .todo:not(.part):hover { background: transparent; } }
/* is kutusu: icteki kutular duz, bolumler cizgiyle ayrilir */
.wk.open > .mx-s, .wk.open > .todo-box, .wk.open > .wk-thread { border-top: 1px solid var(--line); }
.wk.open > .todo-box { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; padding: 10px 14px; }
.mx-s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-s > span { white-space: nowrap; }
.mx-s b { color: var(--text); font-weight: 600; margin-right: 4px; }
.mx-pct { display: inline-flex; align-items: center; gap: 8px; }
.mx-pct i { --p: 0; width: 16px; height: 16px; border-radius: 50%; flex: none; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--panel-2) 0); -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px); mask: radial-gradient(circle, transparent 4.5px, #000 5px); }
.mx-pct b { margin-right: 0; }
.wk-steps { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
.wk-step { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; height: 26px; padding: 0 10px 0 6px; border-radius: 99px; background: var(--bg); font-size: 12px; color: var(--text); min-width: 0; }
.wk-step > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.wk-step > i { font-size: 14px; color: var(--faint); flex: none; }
.wk-step.done { color: var(--muted); }
.wk-step.done > i { color: var(--ok); }
.wk-step .live-dot { margin: 0 2px; }
/* uyeler: kutusuz liste */
.tpg-side .mb-list { gap: 0; }
.tpg-side .mb-row { padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.tpg-side .mb-row:last-child { border-bottom: 0; }
.tpg-side .mb-row.on { background: var(--accent-soft); border-radius: 8px; }
.tpg-side .mb-row.need { background: rgb(226 166 50 / .07); border-radius: 8px; border-bottom-color: transparent; }
.tpg-side > .btn { justify-self: start; }
.tm-desc .more { justify-self: start; margin-left: 0; }
.dc-list .todo-own.me { display: none; }

/* ---------------------------------------------------------------- 16 Eki: duraklat / devam / otonoma devret */
.jobs-btn .n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--panel-2); color: var(--muted); font: 600 11px "Geist Mono", ui-monospace, monospace; display: grid; place-items: center; }
.jobs-btn .n:empty { display: none; }
.jobs-btn.resume { border-color: rgb(226 166 50 / .55); background: rgb(226 166 50 / .1); color: var(--warn); }
.jobs-btn.resume .n { background: rgb(226 166 50 / .2); color: var(--warn); }
.wk-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.wk-ctl .sp { flex: 1; }
.wk-ctl.paused { padding: 8px 10px; border-radius: 10px; background: rgb(226 166 50 / .09); border: 1px solid rgb(226 166 50 / .35); color: var(--text); }
.wk-ctl.paused > i { color: var(--warn); font-size: 16px; }
.hand-p { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 10px; background: var(--accent-soft); font-size: 12.5px; }
.hand-p > b { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.hand-p ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--muted); }
.hand-files { max-height: 120px; overflow: auto; padding: 6px 8px; border-radius: 6px; background: var(--panel); font-size: 11.5px; color: var(--muted); }
.hand-p .k-row { gap: 6px; }
.hand-p .oto-in { flex: 1 1 260px; }
.badge > i.ph { margin-right: 4px; vertical-align: -1px; }

/* ---------------------------------------------------------------- 16 Eki: devam kutusu her zaman, madde durumu */
.wk-busy { display: flex; align-items: center; gap: 4px; padding: 2px 2px 2px; font-size: 11.5px; color: var(--muted); }
.todo-own.team.ok { color: var(--ok); background: rgb(31 157 85 / .12); }
.todo-own.team.q { color: var(--muted); background: var(--panel-2); }
.todo-own.team .live-dot { width: 6px; height: 6px; margin-right: 4px; vertical-align: 1px; }
@media (max-width: 1560px) { .jobs-btn .lbl { display: none; } .jobs-btn { padding: 0 9px; } }

/* Hizli is: Ekipler sekmesinin en ustundeki tek kutu */
.qk { margin: 0 0 18px; }
.qk-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.qk-head h1 { margin: 0; font-size: 22px; }
.qk-head .muted { font-size: 13px; max-width: 720px; }
.qk-box { margin-bottom: 12px; }
.qk-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 2px 0; }
.qk-accs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 2px 0; font-size: 12px; }
.qk-accs .chip { border: 1px solid var(--line); background: transparent; color: inherit; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.qk-accs .chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.qk-hint { font-size: 11.5px; }
.adv-fold { margin: 8px 0 12px; }

/* Takip: Senin adimlarin (public/adimlar.js). Plan dosyalarindan okunur, isaretleme dugmesi yok. */
.ys-card { position: relative; border: 1px solid rgb(201 138 18 / .32); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgb(226 166 50 / .085), rgb(226 166 50 / 0) 120px), var(--panel);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 1px 2px rgb(30 30 25 / .04), 0 8px 24px -12px rgb(150 100 10 / .18); }
.ys-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 12px; }
.ys-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--warn);
  background: linear-gradient(160deg, rgb(226 166 50 / .22), rgb(226 166 50 / .08)); box-shadow: 0 0 0 1px rgb(201 138 18 / .2) inset; }
.ys-ttl { min-width: 0; flex: 1; }
.ys-ttl h2 { margin: 0; font-size: 15px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; letter-spacing: -.005em; }
.ys-ttl p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.ys-count { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; padding-left: 12px; margin-top: -2px; }
.ys-count b { font: 600 24px/1 "Geist", sans-serif; color: var(--warn); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ys-count span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ys-list { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; }
.ys-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px; border-top: 1px solid var(--line); min-width: 0; }
.ys-item:first-child { border-top-color: rgb(201 138 18 / .18); }
.ys-key { flex: none; min-width: 30px; height: 22px; padding: 0 7px; margin-top: -1px; border-radius: 6px; display: inline-grid; place-items: center;
  font: 500 11.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--text); background: rgb(226 166 50 / .16); box-shadow: 0 0 0 1px rgb(201 138 18 / .22) inset; }
.ys-key.dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.ys-body { flex: 1; min-width: 0; display: flex; gap: 6px 14px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.ys-text { flex: 1 1 320px; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; text-wrap: pretty; }
.ys-file { flex: none; display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 22px; padding: 0 8px; border-radius: 99px;
  font: 11.5px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.ys-file .ph { font-size: 13px; color: var(--faint); }
.ys-fn { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ys-ln { color: var(--faint); }
/* Iki kaynak varken alt basliklar: Plan dosyalarindan / Ekip islerinden. Ekip satiri tek dugme, Ekipler'de maddeyi acar. */
.ys-sub { display: flex; align-items: center; gap: 7px; margin: 0; padding: 12px 18px 6px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; min-width: 0; }
.ys-sub + .ys-list .ys-item:first-child { border-top-color: var(--line); }
.ys-list + .ys-sub { margin-top: 2px; border-top: 1px solid rgb(201 138 18 / .18); padding-top: 14px; }
.ys-sub .ph { font-size: 14px; color: var(--warn); }
.ys-sub b { font: 600 11px/18px "Geist Mono", ui-monospace, monospace; min-width: 20px; padding: 0 6px; border-radius: 99px; text-align: center;
  color: var(--text); background: rgb(226 166 50 / .16); }
.ys-sub small { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ys-item.ys-tm { padding: 0; }
.ys-go { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: flex-start; width: 100%; min-width: 0; padding: 10px; border-radius: 9px; cursor: pointer;
  transition: background-color .16s var(--ease-out); }
.ys-go:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ys-go:active { background: rgb(226 166 50 / .12); }
/* Ekip satirinin isareti: ekibin bas harfi, ekibin renginde (Ekipler'deki uye avatarlari gibi). */
.ys-key.tm { --tc: var(--warn); font: 600 12px/1 "Geist", sans-serif; color: color-mix(in srgb, var(--tc) 78%, var(--text));
  background: color-mix(in srgb, var(--tc) 15%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tc) 32%, transparent) inset; }
/* Tur etiketi her ekip satirinda ayni yerde ve ayni genislikte: metinler ayni hizadan baslar. */
.ys-tag { display: inline-block; min-width: 76px; box-sizing: border-box; margin-right: 8px; padding: 1px 7px; border-radius: 99px; vertical-align: 1px; text-align: center;
  font-size: 11px; font-weight: 600; line-height: 16px; color: var(--muted); background: var(--panel-2); box-shadow: 0 0 0 1px var(--line) inset; }
.ys-tag.ask { color: var(--warn); background: rgb(226 166 50 / .14); box-shadow: 0 0 0 1px rgb(201 138 18 / .22) inset; }
.ys-tag.ok { color: var(--ok); background: rgb(31 157 85 / .1); box-shadow: 0 0 0 1px rgb(31 157 85 / .22) inset; }
/* Baglanti: hangi ekip ve is, sonda "Ekipler'de ac" ve ok; durgunken de baglanti oldugu belli. */
.ys-job { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 26px; padding: 0 4px 0 10px; border-radius: 8px;
  font-size: 12px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(30 30 25 / .05); white-space: nowrap;
  transition: border-color .16s var(--ease-out), box-shadow .16s var(--ease-out); }
.ys-tn { flex: none; font-weight: 600; color: var(--text); max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.ys-wt { min-width: 0; max-width: 20em; overflow: hidden; text-overflow: ellipsis; }
.ys-wt::before { content: "·"; margin-right: 6px; color: var(--faint); }
.ys-open { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; margin-left: 2px; border-radius: 6px;
  font-weight: 500; color: var(--accent); background: var(--accent-soft); }
.ys-open .ph { font-size: 12px; transition: transform .16s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .ys-go:hover { background: var(--panel-2); }
  .ys-go:hover .ys-job { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 2px 6px -2px rgb(47 111 228 / .25); }
  .ys-go:hover .ys-open .ph { transform: translateX(2px); }
}
@media (prefers-color-scheme: dark) {
  .ys-card { border-color: rgb(226 166 50 / .26); background: linear-gradient(180deg, rgb(226 166 50 / .07), rgb(226 166 50 / 0) 120px), var(--panel);
    box-shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 10px 30px -14px rgb(0 0 0 / .6); }
}
@media (max-width: 560px) {
  .ys-head { padding: 14px 14px 10px; gap: 10px; }
  .ys-ic { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
  .ys-list { padding: 0 4px 6px; }
  .ys-item { gap: 10px; padding: 9px 10px; }
  .ys-key { min-width: 30px; padding: 0 5px; }
  .ys-body { gap: 3px 10px; }
  .ys-text { flex-basis: 100%; }
  /* Telefonda dosya etiketi kucuk, metnin hemen altinda: satir kisa kalir, daha cok madde ilk ekrana sigar. */
  .ys-file { height: 18px; padding: 0 6px; font-size: 10.5px; }
  .ys-file .ph { font-size: 11px; }
  .ys-count b { font-size: 20px; }
  .ys-sub { flex-wrap: wrap; padding: 10px 14px 4px; }
  .ys-list + .ys-sub { padding-top: 12px; }
  .ys-sub small { flex-basis: 100%; margin-left: 21px; white-space: normal; }
  .ys-item.ys-tm { padding: 0; }
  .ys-go { gap: 10px; padding: 9px 10px; }
  .ys-tag { min-width: 0; }
  .ys-job { gap: 5px; }
  .ys-wt { max-width: none; }
}

/* Takip: Loop'lar (public/donguler.js). Yalniz izler. Satir: ad, son hareket ve durum ust satirda; makine ve uygulama; notlar;
   tek eylem "Windows'ta devam" (icinde not, komut, kopyala ve oturumu ac). Durumun rengi yalniz sol cizgide ve rozette.
   Dar kartta (karta gore, pencereye degil) saat ve durum adin altina iner, ad kesilmez. */
.lp-card { position: relative; container-type: inline-size; border: 1px solid rgb(47 111 228 / .28); border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, rgb(47 111 228 / .075), rgb(47 111 228 / 0) 120px), var(--panel);
  box-shadow: 0 1px 0 rgb(255 255 255 / .6) inset, 0 1px 2px rgb(30 30 25 / .04), 0 8px 24px -12px rgb(30 70 160 / .2); }
.lp-head { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px 12px; }
.lp-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: var(--accent);
  background: linear-gradient(160deg, rgb(47 111 228 / .2), rgb(47 111 228 / .07)); box-shadow: 0 0 0 1px rgb(47 111 228 / .2) inset; }
.lp-hd { min-width: 0; flex: 1; }
.lp-hd h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.lp-hd p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); text-wrap: pretty; }
.lp-count { flex: none; display: inline-flex; align-items: baseline; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px;
  font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.lp-count b { font: 600 12.5px/20px "Geist", sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.lp-list { list-style: none; margin: 0; padding: 0 8px 8px; display: grid; }
.lp-it { --lc: var(--off); position: relative; display: grid; gap: 6px; padding: 12px 10px 12px 16px; border-top: 1px solid var(--line); min-width: 0; }
.lp-it:first-child { border-top-color: rgb(47 111 228 / .16); }
.lp-it::before { content: ""; position: absolute; left: 2px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--lc); }
.lp-run { --lc: var(--ok); }
.lp-wait { --lc: var(--accent); }
.lp-ask { --lc: var(--warn); }
.lp-late { --lc: var(--bad); }
.lp-top { display: flex; gap: 6px 10px; align-items: baseline; min-width: 0; }
.lp-ttl { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.lp-side { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.lp-last { font-size: 12px; color: color-mix(in srgb, var(--text) 78%, var(--muted)); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-st { flex: none; height: 22px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  color: color-mix(in srgb, var(--lc) 82%, var(--text)); background: color-mix(in srgb, var(--lc) 12%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--lc) 26%, transparent) inset; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-off .lp-st { color: var(--muted); }
.lp-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; color: var(--muted); min-width: 0; }
.lp-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--panel-2);
  border: 1px solid var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-chip .ph { font-size: 12px; color: var(--faint); }
.lp-note, .lp-why { margin: 0; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; text-wrap: pretty; }
.lp-note { display: flex; gap: 6px; align-items: baseline; color: var(--text); }
.lp-note .ph { flex: none; position: relative; top: 2px; color: var(--muted); }
.lp-why { color: var(--faint); }
.lp-why .lp-lbl { margin-right: 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--faint); }
.lp-why q { font-style: italic; }
.lp-more { min-width: 0; font-size: 12.5px; }
.lp-more summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; list-style: none; color: var(--accent); }
.lp-more summary .ph { font-size: 13px; }
.lp-more summary::-webkit-details-marker { display: none; }
.lp-more summary::after { content: "›"; font-size: 14px; line-height: 1; transition: transform .16s var(--ease-out); }
.lp-more[open] summary::after { transform: rotate(90deg); }
.lp-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.lp-more-b { margin-top: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); display: grid; gap: 8px; color: var(--muted); }
.lp-more-b p { margin: 0; text-wrap: pretty; }
.lp-winn { color: var(--text); }
.lp-ho { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.lp-ho code, .lp-cmd { font: 11.5px/1.5 "Geist Mono", ui-monospace, monospace; color: var(--text); overflow-wrap: anywhere; }
.lp-cmd { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); white-space: pre-wrap; max-height: 9.5em; overflow: auto; }
.lp-fine { font-size: 11.5px; color: var(--faint); }
.lp-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lp-empty { margin: 0; padding: 4px 18px 16px 64px; font-size: 12.5px; color: var(--muted); }
.t-set .t-auto { flex-basis: 100%; align-items: flex-start; line-height: 1.45; }
.t-auto input { margin-top: 2px; flex: none; }
.t-auto-n { flex-basis: 100%; margin: -4px 0 0 24px; font-size: 12px; color: var(--faint); text-wrap: pretty; }
@media (prefers-color-scheme: dark) {
  .lp-card { border-color: rgb(91 143 240 / .26); background: linear-gradient(180deg, rgb(91 143 240 / .07), rgb(91 143 240 / 0) 120px), var(--panel);
    box-shadow: 0 1px 0 rgb(255 255 255 / .03) inset, 0 10px 30px -14px rgb(0 0 0 / .6); }
}
/* Dar kart: ad tek basina ust satirda (kesilmez), saat ve durum altinda; basligin ikonu kuculur, iki dugme yan yana esit. */
@container (max-width: 520px) {
  .lp-head { padding: 14px 14px 10px; gap: 10px; }
  .lp-ic { width: 30px; height: 30px; font-size: 16px; border-radius: 9px; }
  .lp-list { padding: 0 4px 6px; }
  .lp-it { padding: 11px 10px 11px 14px; }
  .lp-top { flex-wrap: wrap; }
  .lp-ttl { flex-basis: 100%; }
  .lp-acts .btn { flex: 1 1 0; justify-content: center; min-width: 0; }
  .lp-empty { padding: 2px 14px 14px; }
}

/* Ekran okuyucu icin gorunmez baslik (index.html: sayfanin ana basligi "Claude Hub"). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Yeni oturum penceresi (app-oturum.js): komut paleti duzeni. Klasor arama + liste, makine/izin modu segmentli, istege bagli ilk mesaj. */
.dlg.nsd { width: min(640px, calc(100vw - 32px)); border-radius: 14px; overflow: hidden; }
.nsd form { padding: 0; gap: 0; }
.nsd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; }
.nsd-head h2 { font-size: 15px; letter-spacing: -.01em; }
.nsd-search { display: flex; align-items: center; gap: 10px; margin: 0 18px; padding: 0 12px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.nsd-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nsd-search i { font-size: 17px; color: var(--faint); }
.nsd-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: 0; font-size: 14px; color: var(--text); }
.nsd-search input::placeholder { color: var(--faint); }
.nsd-list { margin: 8px 8px 0; padding: 0 2px 6px; height: min(336px, 42vh); overflow-y: auto; overscroll-behavior: contain; scroll-padding: 28px 0 6px; }
.nsd-sec { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 6px; width: 100%; padding: 10px 10px 4px; background: var(--panel); border: 0; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.nsd-tog { cursor: pointer; position: static; margin-top: 4px; border-radius: 6px; }
.nsd-tog:hover { color: var(--text); }
.nsd-tog i { font-size: 11px; transition: transform .16s var(--ease-out); }
.nsd-tog[aria-expanded="true"] i { transform: rotate(90deg); }
.nsd-cnt { padding: 0 6px; border-radius: 999px; background: var(--panel-2); font-size: 10.5px; letter-spacing: 0; }
.nsd-hint { margin-left: auto; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.nsd-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.nsd-row:hover:not(.on) { background: var(--panel-2); }
.nsd-row.on { background: var(--accent-soft); }
.nsd-row.on::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--accent); }
.nsd-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--panel-2); color: var(--muted); font-size: 16px; }
.nsd-row.on .nsd-ic { color: var(--accent); background: var(--panel); }
.nsd-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.nsd-txt b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsd-path { font: 11.5px/1.35 "Geist Mono", ui-monospace, monospace; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nsd-meta { flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nsd-live { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--ok); font-variant-numeric: tabular-nums; }
.nsd-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.nsd-pin { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; opacity: 0; transition: opacity .12s, background-color .12s; }
.nsd-row:hover .nsd-pin, .nsd-row.on .nsd-pin, .nsd-pin.on, .nsd-pin:focus-visible { opacity: 1; }
.nsd-pin:hover { background: var(--panel-2); color: var(--text); }
.nsd-pin.on { color: var(--accent); }
.nsd-empty { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.nsd-empty i { font-size: 26px; color: var(--faint); }
.nsd-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 12px 18px; border-top: 1px solid var(--line); }
.nsd-opt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.nsd-opt select { height: 30px; max-width: 220px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); padding: 0 8px; outline: 0; font-size: 12.5px; }
.nsd-opt select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nsd-seg { display: inline-flex; padding: 2px; gap: 2px; border-radius: 8px; background: var(--panel-2); }
.nsd-seg button { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; white-space: nowrap; transition: background-color .12s, color .12s; }
.nsd-seg button:hover { color: var(--text); }
.nsd-seg button.on { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .12), 0 0 0 1px var(--line); }
.nsd-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nsd-prompt { display: block; width: calc(100% - 36px); margin: 0 18px 12px; min-height: 40px; max-height: 160px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  color: var(--text); font: inherit; font-size: 13px; resize: vertical; outline: 0; field-sizing: content; }
.nsd-prompt:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.nsd-prompt::placeholder { color: var(--faint); }
.nsd .status-line { margin: -4px 18px 10px; }
.nsd-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2); }
.nsd-keys { margin-right: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--faint); }
.nsd-keys span { margin-right: 6px; }
.nsd-pick { margin-right: auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.nsd-pick[hidden], .nsd-keys[hidden] { display: none; }
.nsd-pick i { color: var(--accent); flex: none; }
.nsd-pick b { color: var(--text); font-weight: 600; flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; }
.nsd-pick span { overflow: hidden; text-overflow: ellipsis; color: var(--faint); }
.nsd-keys kbd { min-width: 18px; padding: 0 4px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--panel); text-align: center; font: 10.5px/16px "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.nsd-foot .btn { height: 32px; }
#new-start.busy { cursor: progress; opacity: .7; }
@media (max-width: 560px) {
  .nsd-keys, .nsd-meta, .nsd-hint { display: none; }
  .nsd-opts { align-items: flex-start; flex-direction: column; }
  .nsd-seg { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .dlg.nsd[open] { animation: nsd-in .18s var(--ease-out); }
  .dlg.nsd[open]::backdrop { animation: nsd-fade .18s ease-out; }
  @keyframes nsd-in { from { opacity: 0; transform: translateY(6px) scale(.985); } }
  @keyframes nsd-fade { from { opacity: 0; } }
}

/* Oturum rengi (public/app-sekme.js termColor): sekmede, sol listede ve bolme basliginda ayni renk; --sc satir uzerinde gelir. */
.tab.rk { box-shadow: inset 0 3px 0 var(--sc); background: color-mix(in srgb, var(--sc) 7%, transparent); }
.tab.rk.on { box-shadow: inset 0 3px 0 var(--sc); background: color-mix(in srgb, var(--sc) 12%, var(--term-bg)); }
.item.rk, .item.rk.cur { box-shadow: inset 3px 0 0 var(--sc); }
.item.rk.cur { background: color-mix(in srgb, var(--sc) 14%, var(--panel)); }
.pdot { flex: none; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: var(--sc, var(--line)); cursor: pointer;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc, var(--line)) 22%, transparent); }
.pdot:hover { transform: scale(1.15); }
.pdot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.term-wrap.rpane .pdot { display: none; }
.term-wrap.rk .term-tools, .term-wrap.pane.rk:not(.pane-on) .term-tools { box-shadow: inset 0 3px 0 var(--sc); background: color-mix(in srgb, var(--sc) 9%, var(--panel)); }
.term-wrap.pane.rk:not(.pane-on) .term-tools { background: color-mix(in srgb, var(--sc) 5%, var(--panel)); }
/* Renk secici (sekme ve liste menusu, ad kutusu): hazir renkler, istedigin renk, otomatik. */
.rk-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rk-sw { position: relative; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: var(--sc); cursor: pointer; flex: none; }
.rk-sw:hover { transform: scale(1.12); }
.rk-sw.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--sc); }
.rk-sw:focus-visible, .rk-oto:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rk-ozel { display: inline-grid; place-items: center; background: var(--sc, conic-gradient(#e5484d, #f5b400, #46a758, #0090ff, #6e56cf, #d6409f, #e5484d)); color: #fff; }
.rk-ozel i { font-size: 11px; filter: drop-shadow(0 0 1px rgb(0 0 0 / .6)); }
.rk-ozel input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.rk-oto { height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 11.5px; cursor: pointer; }
.rk-oto.on { border-color: var(--accent); color: var(--accent); }
.menu-rk { padding: 8px 10px 6px; }
.ren-rk { display: flex; align-items: center; gap: 10px; margin: 10px 0 2px; }
.ren-rk .muted { font-size: 12px; flex: none; }
/* Sol liste: izgarada su an ekranda olan oturumlar bir kutuda, bolme numarasiyla. */
.ek-kutu { margin: 4px 6px 8px; padding: 2px 0 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); overflow: hidden; }
.ek-h { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ek-h .n { font: 500 11px "Geist Mono", ui-monospace, monospace; color: var(--faint); }
.ek-kutu .item { border-radius: 0; }
.ek-no { flex: none; display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 4px; background: var(--sc, var(--line)); color: #fff;
  font: 600 10.5px "Geist Mono", ui-monospace, monospace; }
/* Oturum gruplari (public/app-grup.js): Ekranda basligindaki kaydet/guncelle, grup formu, Gruplar bolumundeki kartlar. */
.ek-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.ek-deg { flex: none; font-size: 10.5px; font-weight: 500; padding: 0 5px; border-radius: 4px; line-height: 16px; background: rgb(226 166 50 / .15); color: var(--warn); }
.ek-acts { margin-left: auto; display: inline-flex; gap: 2px; flex: none; }
.ek-b { display: inline-grid; place-items: center; width: 24px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; font-size: 14px; }
.ek-b:hover, .ek-b:focus-visible { background: var(--panel); color: var(--text); }
.ek-h.kayitli > .ph-squares-four { color: var(--accent); }
.ek-acik { padding: 0 10px 6px 30px; font-size: 12px; line-height: 1.4; color: var(--muted); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.grp-f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 4px 8px 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.grp-f input[name="ad"], .grp-f textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; font-size: 13px; padding: 6px 8px; }
.grp-f input[name="ad"] { font-weight: 600; }
.grp-f textarea { resize: vertical; min-height: 44px; font-size: 12.5px; line-height: 1.4; }
.grp-f input[name="ad"]:focus, .grp-f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.grp-cb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.grp-fb { display: flex; align-items: center; gap: 6px; }
.grp-fk { margin-right: auto; min-width: 0; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grp-fb .btn { flex: none; height: 26px; padding: 0 10px; font-size: 12px; }
.grp-list { display: grid; gap: 2px; padding: 0 2px 4px; }
.grp { position: relative; border-radius: var(--r); }
.grp:hover { background: var(--panel-2); }
.grp.on { box-shadow: inset 3px 0 0 var(--accent); }
.grp-ac { display: grid; gap: 3px; width: 100%; padding: 8px 8px 9px; border: 0; border-radius: var(--r); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.grp-ac:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.grp-t { display: flex; align-items: center; gap: 7px; min-width: 0; }
.grp:hover .grp-t, .grp:focus-within .grp-t, .grp.sil .grp-t { padding-right: 52px; }
.grp-t .gglyph { width: 16px; height: 12px; color: var(--faint); }
.grp.on .grp-t .gglyph { color: var(--accent); }
.grp-t b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.grp-t .when { margin-left: auto; flex: none; font-size: 12px; color: var(--faint); }
.grp-t .tag { margin-left: auto; }
.grp:hover .grp-t .when, .grp:focus-within .grp-t .when, .grp.sil .grp-t .when, .grp:hover .grp-t .tag, .grp:focus-within .grp-t .tag, .grp.sil .grp-t .tag { visibility: hidden; }
.grp-d { padding-left: 23px; font-size: 12px; line-height: 1.4; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-s { display: flex; align-items: center; gap: 8px; padding-left: 23px; min-width: 0; font-size: 11.5px; color: var(--faint); }
.grp-dots { display: inline-flex; gap: 4px; flex: none; }
.grp-dots .pulse { width: 6px; height: 6px; }
.grp-dots .pulse.off { background: transparent; box-shadow: inset 0 0 0 1.4px var(--off); }
.grp-dots .pulse.ask, .grp-dots .pulse.done { box-shadow: none; }
.grp-o { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-o b { font-weight: 500; }
.grp-o b.ask { color: var(--warn); }
.grp-o b.done { color: var(--accent); }
.grp-act { position: absolute; top: 5px; right: 5px; display: inline-flex; gap: 2px; opacity: 0; }
.grp:hover .grp-act, .grp:focus-within .grp-act, .grp.sil .grp-act { opacity: 1; }
.grp-act button { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 4px; border: 0; border-radius: 6px; background: transparent; color: var(--faint); cursor: pointer; font: inherit; font-size: 13px; }
.grp-act button:hover, .grp-act button:focus-visible { background: var(--panel); color: var(--text); }
.grp-act .grp-sil-ok { padding: 0 8px; font-size: 12px; font-weight: 600; color: #fff; background: var(--bad, #d64545); }
.grp-act .grp-sil-ok:hover { color: #fff; background: var(--bad, #d64545); filter: brightness(1.08); }
.grp.ed { padding: 6px 0 2px; background: var(--panel-2); }
.grp-eh { display: flex; align-items: center; gap: 7px; padding: 2px 10px 0; font-size: 12px; color: var(--muted); }
.grp-eh .gglyph { width: 16px; height: 12px; }
@media (hover: none) { .grp-act { opacity: 1; } .grp-t { padding-right: 56px; } }
@media (prefers-reduced-motion: no-preference) { .grp-act { transition: opacity .12s ease; } .ek-b, .grp-act button { transition: background-color .12s ease, color .12s ease; } }
@media (prefers-reduced-motion: no-preference) { .pdot, .rk-sw { transition: transform .12s ease; } }
/* Izgara bolmesinin basligi sikisik: ad oncelikli, hesap secici kucuk (cok darda gizli; o zaman sekmeye sag tik > Hesap). "Bu Mac" yalniz baska makinede gorunur. */
.term-wrap.pane .term-tools { overflow: hidden; }
.term-wrap.pane .pname { flex: 0 1 auto; min-width: 64px; max-width: none; }
.term-wrap.pane .ploc:not(.far) { display: none; }
@container (max-width: 900px) {
  .term-wrap.pane .term-tools label[for^="sw-"], .term-wrap.pane .term-tools .qadd,
  .term-wrap.pane .term-tools .splitb, .term-wrap.pane .term-tools .lastcode, .term-wrap.pane .term-tools .vk .tl { display: none; }
  .term-wrap.pane .term-tools .vk button { padding: 0 6px; }
  .term-wrap.pane .term-tools .sw { flex: 0 1 auto; width: auto; max-width: 92px; min-width: 56px; height: 24px; padding: 0 2px 0 4px; font-size: 12px; }
  .term-wrap.pane .term-tools .close, .term-wrap.pane .term-tools .copyb, .term-wrap.pane .term-tools .restart { padding: 0 6px; }
}
@container (max-width: 640px) {
  .term-wrap.pane .pst small, .term-wrap.pane .term-tools .copyb { display: none; }
  .term-wrap.pane .term-tools { gap: 4px; }
}
/* Sol listede ad etiketten once kisalmasin ("C..." olmasin). */
.item-t > span:not([class]) { flex: 1 1 auto; min-width: 4.5em; }
.item-t .tag { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Sekme ve liste menusunde hesap secimi (public/app-sekme.js hesapSatiri). */
.menu-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 10px 8px; }
.menu-acc .muted { font-size: 12px; margin-right: 4px; }
#menu .menu-acc .ma-b { display: inline-flex; align-items: center; gap: 4px; width: auto; height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
#menu .menu-acc .ma-b.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); opacity: 1; }
#menu .menu-acc .ma-b.full { color: var(--warn); }
/* Menu icindeki renk dugmeleri genel .menu button kuralindan (tam genislik, dolgu, hover zemini) etkilenmesin. */
#menu .rk-sw { display: inline-block; width: 20px; height: 20px; padding: 0; border-radius: 50%; background: var(--sc); }
#menu .rk-ozel { display: inline-grid; background: var(--sc, conic-gradient(#e5484d, #f5b400, #46a758, #0090ff, #6e56cf, #d6409f, #e5484d)); }
#menu .rk-oto { display: inline-flex; width: auto; padding: 0 8px; border-radius: 999px; }
#menu .rk-oto:hover { background: var(--panel-2); }

/* Hesaplar ekraninda MCP sunuculari ve gizliler (kota kartlarinin altinda). */
#hesap-mcp:not(:empty) { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 20px; }
