/* Hesaplar, pencereler ve yeni grafik arayüzü. Renkler styles.css değişkenlerinden gelir (açık/koyu tema). */

/* --- Kullanım rehberi: büyük yazı, geniş dokunma alanları, iki temada ortak renkler. */
.help-entry { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); font-size: 16px; font-weight: 600; }
.help-entry.active { background: var(--accent-soft); }
.help { max-width: 1120px; margin: 12px auto 32px; font-size: 18px; line-height: 1.75; overflow-wrap: anywhere; }
.help h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.25; margin: 8px 0 16px; }
.help h2 { font-size: 25px; line-height: 1.4; margin: 0 0 16px; }
.help p { margin: 0 0 18px; }
.help-eyebrow { color: var(--accent); font-weight: 600; font-size: 16px; }
.help-intro { max-width: 850px; margin-bottom: 28px; }
.help-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.help-topics { display: grid; gap: 10px; }
.help-topics button { display: flex; gap: 12px; align-items: baseline; text-align: left; min-height: 56px; padding: 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; cursor: pointer; }
.help-topics button[aria-current] { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.help-topics button span { color: var(--accent); font-weight: 700; }
.help-lesson { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 28px; min-width: 0; }
.help-lesson ol { padding-left: 28px; margin: 24px 0; }
.help-lesson li { padding-left: 8px; margin-bottom: 20px; }
.help-lesson li::marker { color: var(--accent); font-weight: 700; }
.help-note { background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 4px; padding: 16px; }
.help .btn { font-size: 17px; height: auto; min-height: 48px; white-space: normal; padding: 10px 16px; line-height: 1.5; }
.help-paging { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; border-top: 1px solid var(--border); padding-top: 20px; }
.help-faq { margin-top: 36px; }
.help-faq details { border-bottom: 1px solid var(--border-strong); padding: 8px 0; }
.help-faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.help-faq details p { padding: 12px 0; max-width: 850px; }
.help :is(button, a, summary):focus-visible, .help-entry:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.help-lesson h2:focus { outline: none; }
@media (max-width: 760px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help-lesson { padding: 20px 16px; }
  .help-entry { margin-left: auto; }
}

/* --- Gerçek ekran üzerinde uygulamalı eğitim */
.tour-layer { position: fixed; inset: 0; width: 100vw; height: 100dvh; margin: 0; padding: 0; border: 0; overflow: visible; background: transparent; color: inherit; z-index: 1000; pointer-events: none; }
.tour-layer::backdrop { background: transparent; pointer-events: none; }
.tour-shade { position: fixed; background: rgba(0, 0, 0, .72); pointer-events: auto; }
.tour-ring { position: fixed; border: 3px solid #facc15; border-radius: 9px; box-shadow: 0 0 0 3px #111827; }
.tour-ring span { position: absolute; top: 100%; left: 0; margin-top: 8px; padding: 3px 10px; border-radius: 6px; color: #111827; background: #facc15; font-size: 16px; font-weight: 700; white-space: nowrap; }
.tour-ring[data-align="right"] span { left: auto; right: 0; }
.tour-ring[data-label="above"] span { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 8px; }
.tour-panel { position: fixed; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); width: min(480px, calc(100% - 24px)); margin-inline: auto; padding: 20px; background: var(--surface); color: var(--text); border: 2px solid #facc15; border-radius: 14px; box-shadow: 0 12px 48px #0008; pointer-events: auto; font-size: 18px; line-height: 1.6; max-height: 45dvh; overflow-y: auto; }
.tour-panel[data-place="bottom"] { bottom: max(12px, env(safe-area-inset-bottom)); }
.tour-panel[data-place="top"] { top: max(12px, env(safe-area-inset-top)); }
.tour-panel[data-place="center"] { top: 50%; transform: translateY(-50%); max-height: 85dvh; }
.tour-panel h2 { font-size: 23px; line-height: 1.3; margin: 0 0 12px; }
.tour-panel p { margin: 0 0 14px; }
.tour-panel .tour-count { font-size: 15px; font-weight: 700; color: var(--accent); }
.tour-panel .btn { font-size: 17px; min-height: 46px; height: auto; white-space: normal; padding: 8px 14px; }
.tour-wait:empty { display: none; }
.tour-running { scroll-behavior: auto; }
.tour-running #st-head .star { min-width: 44px; min-height: 44px; }
.tour-running #st-chart [data-role="range"] button, .tour-running #st-tabs button { min-width: 44px; min-height: 44px; }
.tour-running #search { min-height: 44px; }
.tour-running .lg-act { display: inline-flex; opacity: 1; }
.tour-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tour-panel [hidden] { display: none !important; }
.tour-panel .tour-wait { font-size: 15px; color: var(--text-2); }
.education { max-width: 1200px; }
.education-stats { font-weight: 600; color: var(--accent); }
.education-controls { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 8px; }
.education-controls label { display: grid; gap: 8px; font-size: 17px; font-weight: 600; }
.education-controls .input { width: 100%; height: 48px; font-size: 18px; }
.education-hint { font-size: 16px; color: var(--text-2); }
.education-groups { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.education-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.education-card { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); }
.education-card h2 { font-size: 23px; margin: 14px 0; }
.education-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; font-size: 14px; color: var(--accent); font-weight: 600; }
.education-card p { font-size: 17px; }
.education-card .education-notice { font-size: 15px; color: var(--text-2); padding: 10px; background: var(--surface-2); border-radius: 6px; }
.education-card .btn { margin-top: auto; align-self: flex-start; min-width: 140px; }
@media (max-width: 1000px) { .education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) {
  .education-grid, .education-controls { grid-template-columns: minmax(0, 1fr); }
  .tour-panel { font-size: 17px; padding: 16px; max-height: 48dvh; }
  .tour-panel h2 { font-size: 21px; }
  .tour-panel .btn { min-height: 44px; font-size: 16px; }
}

/* --- Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible, .pc-icon:focus-visible, .pc-btn:focus-visible, .pc-rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--down); }
.btn.danger:hover { background: var(--down-soft); border-color: var(--down); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.block { width: 100%; height: 40px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.loading { color: transparent; position: relative; }
.btn.loading::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.wa { border-color: #25d366; color: #128c4b; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); font-size: 15px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-3); }

/* --- Giriş ve davet ekranı */
body.auth-mode > :not(#auth-screen):not(script):not(#toasts) { display: none !important; }
.auth-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px 16px; background:
  radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.auth-card { width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px 26px 24px; box-shadow: 0 10px 40px rgba(16,24,40,.08); display: grid; gap: 14px; }
.auth-card h1 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.01em; text-wrap: balance; }
.auth-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.auth-brand svg { fill: var(--accent); }
.auth-note { margin: 0; color: var(--text-2); line-height: 1.55; }
.auth-hint, .auth-foot { margin: 0; font-size: 12px; color: var(--text-3); line-height: 1.5; text-align: center; }
.auth-form { display: grid; gap: 12px; }
.auth-error { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--down-soft); color: var(--down); font-size: 13px; }
.field { display: grid; gap: 5px; margin: 0; }
.field > span, .field > legend { font-size: 12px; font-weight: 600; color: var(--text-2); }
.field input:not([type=radio]) { height: 38px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; width: 100%; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.radio { border: 0; padding: 0; gap: 8px; }
.field.radio label { display: flex; gap: 8px; align-items: baseline; font-size: 13px; cursor: pointer; }
.pw { position: relative; display: block; }
.pw input { padding-right: 40px !important; }
.pw-peek { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; cursor: pointer; display: grid; place-items: center; color: var(--text-3); }
.pw-peek svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.pw-peek[aria-pressed=true] { color: var(--accent); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--down); transition: width .2s, background .2s; }
.pw-meter i[data-score="2"] { background: var(--warn); }
.pw-meter i[data-score="3"], .pw-meter i[data-score="4"] { background: var(--up); }

/* --- Hesap menüsü */
.account { position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; cursor: pointer; display: grid; place-items: center; letter-spacing: .02em; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; flex: none; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.16); padding: 6px; z-index: 50; display: grid; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: grid; gap: 2px; }
.menu-head span { font-size: 12px; color: var(--text-3); }
.menu a, .menu button { text-align: left; padding: 8px 10px; border-radius: 6px; border: 0; background: none; color: var(--text); font-size: 13px; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); text-decoration: none; }
.menu .danger { color: var(--down); }

/* --- Pencere (dialog) */
dialog.modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 24px); width: 440px; color: var(--text); }
dialog.modal.wide { width: 860px; }
dialog.modal::backdrop { background: rgba(10, 14, 20, .45); backdrop-filter: blur(2px); }
.modal-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.25); display: grid; max-height: calc(100vh - 48px); overflow: hidden; }
.modal-inner > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.modal-inner > header h2 { margin: 0; font-size: 16px; }
.modal-body { padding: 4px 16px 12px; display: grid; gap: 12px; overflow: auto; }
.modal-inner > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); }

/* --- Kişiler */
.share-state { margin-bottom: 12px; font-size: 13px; }
.share-state code { font-family: var(--mono); background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
.dot-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--up); margin-right: 4px; box-shadow: 0 0 0 3px var(--up-soft); }
.invite-card { margin-bottom: 12px; border-color: var(--accent); }
.invite-title { margin: 0 0 10px; }
.copy-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.copy-row .input { flex: 1 1 320px; min-width: 0; height: 34px; font-size: 12px; }
table.users td { vertical-align: middle; }
.who { display: flex; gap: 10px; align-items: center; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill.on { background: var(--up-soft); color: var(--up); }
.pill.wait { background: var(--accent-soft); color: var(--accent); }
.pill.off { background: var(--surface-2); color: var(--text-3); }

/* --- Grafik */
.pc { display: grid; }
.pc .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pc-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: thin; }
.pc-bar .grow, .pc-pop .grow { flex: 1; }
.pc-bar .seg { flex-wrap: nowrap; flex: none; }
.pc-bar .seg button { padding: 3px 8px; font-size: 12px; }
.pc-type button { padding: 3px 6px !important; display: grid; place-items: center; }
.pc-type .ic { width: 17px; height: 17px; }
.pc-select select { height: 28px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 12px; padding: 0 6px; cursor: pointer; }
.pc-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; flex: none; }
.pc-btn:hover, .pc-icon:hover:not(:disabled) { background: var(--surface-2); }
.pc-icon { width: 30px; height: 28px; border: 0; background: none; border-radius: 7px; color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.pc-icon:disabled { opacity: .35; cursor: default; }
.pc-icon.sm { width: 24px; height: 24px; }
.pc-sep { width: 1px; height: 18px; background: var(--border); flex: none; margin: 0 2px; }
.pc-main { display: grid; grid-template-columns: 40px 1fr; min-width: 0; }
.pc-rail { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-right: 1px solid var(--border); background: var(--surface); }
.pc-rail button { width: 32px; height: 32px; border: 0; border-radius: 7px; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.pc-rail button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.pc-rail button.on { background: var(--accent-soft); color: var(--accent); }
.pc-rail button:disabled { opacity: .3; cursor: default; }
.pc-rail button.armed { background: var(--down-soft); color: var(--down); }
.pc-rail-sep { width: 20px; height: 1px; background: var(--border); margin: 4px 0; }
.pc-stage { position: relative; min-width: 0; height: 560px; }
.pc-canvas { position: absolute; inset: 0; }
.pc-stage.dragging-pane { cursor: grabbing; }
.pc-draw-bar { position: absolute; top: 8px; right: 74px; z-index: 15; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; max-width: calc(100% - 90px); padding: 5px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.pc-draw-bar[hidden] { display: none; }
.pc-db-name { font-size: 11.5px; font-weight: 600; color: var(--text-2); margin-right: 2px; }
.pc-db-sw { width: 18px; height: 18px; border-radius: 999px; border: 2px solid transparent; background: var(--c); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.pc-db-sw.multi { background: conic-gradient(#ef4444, #f97316, #22c55e, #089981, #2962ff, #a855f7, #ef4444); }
.pc-db-sw.on { border-color: var(--text); transform: scale(1.12); }
.pc-db-btn { border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); border-radius: 6px; padding: 2px 7px; font-size: 11.5px; cursor: pointer; }
.pc-db-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pc-db-btn.danger { color: var(--down); }
.pc-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 13px; background: var(--surface); z-index: 3; }
.pc-hint { position: absolute; left: 50%; bottom: 40px; transform: translate(-50%, 6px); background: var(--text); color: var(--surface); padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 8; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.pc-hint.on { opacity: .92; transform: translate(-50%, 0); }
.pc-drop { position: absolute; left: 0; right: 60px; height: 4px; background: var(--accent); border-radius: 2px; z-index: 7; pointer-events: none; box-shadow: 0 0 0 3px var(--accent-soft); }

/* Lejantlar: grafiğin içinde; yalnız satırlar tıklanır, boşluk grafiğe geçer. */
.pc-legends { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.lg-pane { position: absolute; left: 8px; right: 70px; display: grid; gap: 1px; justify-items: start; font-size: 12px; font-variant-numeric: tabular-nums; }
.lg-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; color: var(--text-2); padding: 1px 4px; pointer-events: none; }
.lg-head b { color: var(--text); font-size: 13px; }
.lg-head [data-ohlc] { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.lg-head [data-ohlc] b { font-size: 12px; font-weight: 600; }
.lg-int { color: var(--text-3); font-size: 11px; }
.lg-row { pointer-events: auto; display: inline-flex; align-items: center; gap: 4px; padding: 1px 4px; border-radius: 6px; max-width: 100%; border: 1px solid transparent; }
.lg-row:hover { background: color-mix(in srgb, var(--surface) 88%, transparent); border-color: var(--border); }
.lg-row.off { opacity: .55; }
.lg-name { border: 0; background: none; padding: 0; color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lg-name i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lg-name em { font-style: normal; color: var(--text-3); }
.lg-vals { display: inline-flex; gap: 6px; font-weight: 600; white-space: nowrap; }
.lg-act { display: inline-flex; gap: 0; opacity: 0; transition: opacity .1s; }
.lg-row:hover .lg-act, .lg-row:focus-within .lg-act { opacity: 1; }
.lg-act button, .lg-grip { width: 22px; height: 20px; border: 0; background: none; color: var(--text-3); border-radius: 4px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lg-act button:hover { background: var(--surface-2); color: var(--text); }
.lg-act .ic, .lg-grip .ic, .lg-lock .ic { width: 14px; height: 14px; }
.lg-grip { cursor: grab; touch-action: none; margin-left: -2px; }
.lg-grip .ic { fill: currentColor; stroke: none; }
.lg-lock { width: 22px; display: grid; place-items: center; color: var(--text-3); }
/* Dokunmatikte satır sade kalır: dokununca açılan ayar kutusu gizle/kaldır/taşı işlerini de yapar. */
@media (hover: none) { .lg-act { display: none; } .lg-grip { width: 26px; height: 24px; } }

/* Açılır kutular (ayar, menü) */
.pc-pop { position: absolute; z-index: 20; width: min(300px, calc(100% - 16px)); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.2); padding: 10px 12px 12px; display: grid; gap: 10px; }
.pc-pop header { display: flex; align-items: center; justify-content: space-between; }
.pc-pop-info { margin: 0; font-size: 12px; color: var(--text-2); line-height: 1.45; max-height: 6.2em; overflow: auto; }
.pc-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pc-params label { display: grid; gap: 3px; font-size: 11px; color: var(--text-2); }
.pc-params input { height: 30px; width: 100%; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; padding: 0 8px; font-variant-numeric: tabular-nums; }
.pc-params input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pc-err { margin: -4px 0 0; font-size: 11px; color: var(--down); min-height: 0; }
.pc-err:empty { display: none; }
.pc-colors { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-colors button { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1px var(--border); cursor: pointer; padding: 0; }
.pc-colors button.on { box-shadow: 0 0 0 2px var(--text); }
.pc-pop footer { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pc-menu { width: 270px; gap: 0; padding: 6px; }
.pc-menu button { text-align: left; border: 0; background: none; color: var(--text); padding: 7px 10px 7px 28px; border-radius: 6px; font-size: 13px; cursor: pointer; position: relative; }
.pc-menu button:hover { background: var(--surface-2); }
.pc-menu button[aria-checked=true]::before { content: "✓"; position: absolute; left: 10px; color: var(--accent); font-weight: 700; }
.pc-menu button.danger { color: var(--down); }
.pc-menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 0; }
.pc-menu-t { margin: 6px 10px 2px; font-size: 11px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.pc-menu-keys { margin: 6px 10px 4px; font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* Gösterge penceresi */
.ind-dialog .modal-inner { grid-template-rows: auto auto auto 1fr; height: min(640px, calc(100vh - 48px)); }
.ind-search { padding: 0 16px 10px; display: grid; gap: 4px; }
.ind-search .input { height: 38px; font-size: 14px; }
.ind-on { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 16px 10px; border-bottom: 1px solid var(--border); }
.ind-on .chip button { border: 0; background: none; color: inherit; padding: 0 0 0 4px; cursor: pointer; font-size: 11px; }
.ind-body { display: grid; grid-template-columns: 190px 1fr; min-height: 0; }
.ind-nav { border-right: 1px solid var(--border); padding: 8px; display: grid; align-content: start; gap: 2px; overflow: auto; }
.ind-nav button { display: flex; justify-content: space-between; border: 0; background: none; color: var(--text-2); text-align: left; padding: 7px 10px; border-radius: 7px; font-size: 13px; cursor: pointer; }
.ind-nav button span { color: var(--text-3); font-size: 11px; }
.ind-nav button:hover { background: var(--surface-2); }
.ind-nav button.on { background: var(--accent-soft); color: var(--text); font-weight: 600; }
.ind-list { overflow: auto; padding: 6px 8px 12px; display: grid; align-content: start; gap: 2px; }
.ind-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: none; padding: 8px 10px; color: var(--text); cursor: pointer; font: inherit; }
.ind-item:hover, .ind-item.focus { background: var(--surface-2); border-color: var(--border); }
.ind-name { font-weight: 600; font-size: 13px; }
.ind-count { color: var(--up); font-weight: 600; font-size: 12px; }
.ind-desc { grid-column: 1; font-size: 12px; color: var(--text-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ind-where { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 11px; color: var(--text-3); white-space: nowrap; }

@media (max-width: 760px) {
  .pc-main { grid-template-columns: 36px 1fr; }
  .pc-rail button { width: 30px; height: 30px; }
  .pc-btn span { display: none; }
  .ind-body { grid-template-columns: 1fr; }
  .ind-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .ind-nav button { white-space: nowrap; }
  .lg-pane { right: 56px; }
  .row-actions { justify-content: flex-start; }
}

/* --- Gemini 4 Hydrogen AI Analiz paneli */
.ai-panel { display: grid; gap: 16px; }
.ai-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 16px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.ai-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-title h3 { margin: 0; font-size: 16px; }
.ai-disclaimer { margin: 6px 0 0; font-size: 12px; color: var(--text-3); max-width: 640px; line-height: 1.5; }
.ai-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ai-model-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.ai-model-select { height: 34px; font-size: 13px; }
.ai-empty { padding: 14px; border: 1px dashed var(--border-strong); border-radius: 10px; font-size: 13px; line-height: 1.6; }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.ai-box h4 { margin: 0 0 6px; font-size: 13px; color: var(--accent); }
.ai-box p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.ai-box-full { margin-top: 12px; }
.ai-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; line-height: 1.55; }
.ai-limits { margin: 10px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.5; }
.ai-limits-sm { margin: 6px 0 0; font-size: 11px; color: var(--text-3); }
.ai-meta { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 12px; color: var(--text-3); }
.ai-cov { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.ai-qa { border-top: 1px solid var(--border); padding-top: 14px; display: grid; gap: 10px; }
.ai-qa-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ai-qa-head h4 { margin: 0; font-size: 14px; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-thread { display: grid; gap: 10px; max-height: 440px; overflow-y: auto; padding-right: 2px; }
.ai-chat-empty { margin: 2px 0; font-size: 13px; }
.ai-msg { border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.6; border: 1px solid var(--border); }
.ai-msg p { margin: 0 0 6px; }
.ai-msg p:last-child { margin-bottom: 0; }
.ai-msg-user { background: var(--accent-soft); border-color: var(--accent); }
.ai-msg-assistant { background: var(--surface-2); }
.ai-msg-role { font-size: 11px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; }
.ai-ev { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.ai-form { display: flex; gap: 8px; }
.ai-form .input { flex: 1; min-width: 0; height: 36px; font-size: 13px; }
@media (max-width: 760px) {
  .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-controls { width: 100%; }
  .ai-controls .btn { flex: 1; }
  .ai-form { flex-direction: column; }
}
