/* Zemin ortak katmandan; sabit koyu deger acik temada bozuyordu. */
html, body { background: var(--bg); margin: 0; }

/**
 * Token DEGERLERI burada DEGIL: /theme.css ortak katmani tasiyor (panel ve bu
 * ekran ayni paleti konusur). Adlar bilerek ayni, o yuzden `:root`tan miras
 * geliyor. Buraya deger yazmak iki ekrani yeniden ayirir.
 */
.fw {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  padding: 28px clamp(20px, 4vw, 64px) 48px;
  font-variant-numeric: tabular-nums;
}

.fw, .fw * { box-sizing: border-box; }
.fw ::-webkit-scrollbar { height: 10px; width: 10px; }
.fw ::-webkit-scrollbar-track { background: transparent; }
.fw ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.fw ::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

.fw button, .fw input { font-family: inherit; }
.fw button:focus-visible, .fw input:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .fw *, .fw *::before, .fw *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.icon { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: block; }
.icon-sm { width: 11px; height: 11px; stroke-width: 1.8; }
.icon-fill { fill: currentColor; stroke: none; }

/* Header */
.fw-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.fw-logo {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(63, 208, 255, .2), rgba(63, 208, 255, .03));
  border: 1px solid rgba(63, 208, 255, .3); display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.fw-logo .icon { width: 19px; height: 19px; }
.fw-title { font-size: 17px; font-weight: 700; letter-spacing: -.2px; color: var(--text); }
.fw-subtitle { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
/* Panele donus: baslikla ayni satirda, saga yapisik. */
.fw-back { margin-left: auto; text-decoration: none; }

/* Toolbar */
.fw-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar-left { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; padding: 8px 14px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); transition: border-color .15s, background .15s, transform .08s;
}
.btn:hover { border-color: var(--border-strong); background: var(--surface-raised); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: #5fd8ff; border-color: #5fd8ff; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-danger:hover { border-color: rgba(251,113,133,.5); color: var(--fail); background: rgba(251,113,133,.08); }

.facet-row { display: flex; flex-wrap: wrap; gap: 6px; }
.facet-pill {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.facet-pill:hover { border-color: var(--accent); color: var(--text); }
.facet-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }

.search-box {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface);
  border-radius: 10px; padding: 0 10px; color: var(--text-faint);
}
.search-box .icon { width: 14px; height: 14px; flex-shrink: 0; }
.search-input {
  border: none; background: transparent; outline: none; color: var(--text); font-size: 12.5px;
  padding: 8px 0; width: 160px;
}
.search-input::placeholder { color: var(--text-faint); }
.fw .search-input:focus, .fw .search-input:focus-visible { outline: none; box-shadow: none; }

.view-switch { position: relative; display: inline-flex; gap: 2px; margin-left: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; }
.view-switch button {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; border: none; background: transparent;
  color: var(--text-muted); font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 9px; cursor: pointer;
  transition: color .2s;
}
.view-switch button.active { color: var(--accent-on); }
.vs-indicator {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 9px; background: var(--accent);
  transition: left .25s cubic-bezier(.4,0,.2,1), width .25s cubic-bezier(.4,0,.2,1); z-index: 0;
}

/* Content transition */
@keyframes fwFadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.fw-content { animation: fwFadeIn .25s ease; }

/* Telemetry / progress */
.fw-progress { margin: 0 0 22px; }
.stat-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat-tile { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; overflow: hidden; }
.stat-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tile-color); }
.stat-num { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 22px; font-weight: 700; color: var(--tile-color); line-height: 1; }
.stat-label { font-size: 10.5px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: .5px; }
.stat-tile .icon { position: absolute; right: 12px; top: 13px; width: 15px; height: 15px; color: var(--tile-color); opacity: .55; }

.progress-track { height: 5px; border-radius: 999px; overflow: hidden; background: var(--surface-raised); border: 1px solid var(--border); }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--good), #6ee7b7); transition: width .6s cubic-bezier(.4,0,.2,1); }
.progress-caption { font-size: 11px; color: var(--text-muted); margin-top: 7px; font-family: ui-monospace, monospace; }

/* Dropdown chips shared across views */
.chip {
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--border); background: var(--surface-raised);
  color: var(--text-muted); border-radius: 999px; padding: 4px 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase; cursor: pointer; transition: border-color .15s, color .15s;
}
.chip .icon { width: 12px; height: 12px; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip-status { text-transform: none; font-weight: 600; }
.chip-status.status-ok { color: var(--good); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.35); }
.chip-status.status-warn { color: var(--warn); background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.35); }
.chip-status.status-fail { color: var(--fail); background: rgba(251,113,133,.12); border-color: rgba(251,113,133,.35); }
.chip-status.status-todo { color: var(--text-muted); background: rgba(135,147,171,.10); border-color: rgba(135,147,171,.28); }
.chip-status.status-progress { color: var(--progress); background: rgba(96,165,250,.14); border-color: rgba(96,165,250,.4); }
.chip-status-auto { cursor: default; }
.chip-status-auto:hover { border-color: inherit; color: inherit; }

.dd-menu {
  position: fixed; z-index: 1000; min-width: 172px; background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 5px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(-4px) scale(.97); transform-origin: top left;
  transition: opacity .14s ease, transform .14s ease;
}
.dd-menu.open { opacity: 1; transform: translateY(0) scale(1); }
.dd-item {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; background: transparent;
  color: var(--text); font-size: 12.5px; font-weight: 500; padding: 7px 9px; border-radius: 8px; cursor: pointer;
}
.dd-item .icon { color: var(--text-muted); }
.dd-item:hover { background: var(--accent-dim); }
.dd-item.selected { color: var(--accent); }
.dd-item.selected .icon { color: var(--accent); }
.dd-item .dd-check { margin-left: auto; color: var(--accent); }
.dd-item-empty { color: var(--text-faint); cursor: default; }
.dd-item-empty:hover { background: transparent; }

/* Icon buttons (add / delete) */
.row-actions { display: flex; gap: 2px; }
.icon-btn { border: 1px solid transparent; background: transparent; color: var(--text-muted); padding: 5px; border-radius: 8px; cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: var(--surface-raised); color: var(--text); }
.icon-btn-danger:hover { background: rgba(251,113,133,.12); color: var(--fail); }
.icon-btn-active { color: #c4b5fd; }
.icon-btn-active:hover { background: rgba(167,139,250,.14); color: #c4b5fd; }

/* Search highlight */
.search-hit { outline: 2px solid var(--accent); outline-offset: -1px; }
.diag-dim { opacity: .22; filter: saturate(.4); }

/* Bulk selection */
.select-checkbox { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin-right: 2px; flex-shrink: 0; }
.bulk-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px;
}
.bulk-bar-label { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.bulk-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.bulk-bar .icon-btn { margin-left: 2px; }

/* Tree view */
.node { margin: 10px 0 10px 24px; }
.node.root { margin-left: 0; margin-top: 0; }
.node:not(.root) { border-left: 1px solid var(--border); padding-left: 16px; }

.node-row {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--row-color, var(--border));
  border-radius: 12px; padding: 9px 11px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.node-row:hover { border-color: var(--border-strong); box-shadow: 0 6px 20px rgba(0,0,0,.35); transform: translateY(-1px); }
.node-row.is-stale { border-left-style: dashed; border-left-color: rgba(251,191,36,.6); }

/* "Devam Ediyor" durumu, worst-status rollup sayesinde üst öğelere de yansır (effectiveStatus) —
   bu yüzden bu stil hem devam eden öğeye hem de onun tüm ata dallarına otomatik uygulanır.
   Spotlight modu: ağaçta en az bir "Devam Ediyor" varken diğer tüm satırlar soluklaşır, devam
   eden dal(lar) büyür/parlar/üzerinde bir ışık taraması akar — tüm dikkat oraya çekilir. */
.tree-has-progress .node-row:not(.status-progress) {
  opacity: .38; filter: saturate(.45); transform: scale(.99);
  transition: opacity .35s ease, filter .35s ease, transform .35s ease;
}
.tree-has-progress .node-row:not(.status-progress):hover { opacity: .85; filter: saturate(.8); transform: scale(1); }

.node-row.status-progress {
  position: relative; overflow: hidden;
  border-left-width: 5px; border-color: var(--progress);
  background: linear-gradient(90deg, rgba(96,165,250,.28), var(--surface) 75%);
  box-shadow: 0 0 0 2px rgba(96,165,250,.5), 0 0 34px rgba(96,165,250,.4), 0 14px 34px rgba(0,0,0,.45);
  transform: scale(1.025);
  z-index: 2;
  animation: progress-pulse 1.6s ease-in-out infinite;
}
.node-row.status-progress:hover {
  box-shadow: 0 0 0 2.5px rgba(96,165,250,.75), 0 0 44px rgba(96,165,250,.55), 0 14px 34px rgba(0,0,0,.45);
}
.node-row.status-progress::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  background-size: 240% 100%;
  animation: progress-shimmer 2.4s linear infinite;
}
@keyframes progress-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(96,165,250,.4), 0 0 24px rgba(96,165,250,.26), 0 14px 30px rgba(0,0,0,.4); }
  50% { box-shadow: 0 0 0 3px rgba(96,165,250,.85), 0 0 48px rgba(96,165,250,.6), 0 14px 34px rgba(0,0,0,.45); }
}
@keyframes progress-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .node-row.status-progress { animation: none; }
  .node-row.status-progress::after { display: none; }
  .tree-has-progress .node-row:not(.status-progress) { transition: none; }
}

.caret { border: none; background: transparent; color: var(--text-faint); padding: 3px; cursor: pointer; display: inline-flex; transition: transform .18s; border-radius: 6px; }
.caret:hover { color: var(--text); }
.caret:not(.open) { transform: rotate(-90deg); }
.caret-spacer { width: 20px; flex-shrink: 0; }

.name-input { flex: 1; border: none; background: transparent; font-size: 13.5px; font-weight: 500; color: var(--text); padding: 5px 7px; border-radius: 7px; min-width: 60px; }
.name-input:focus { background: var(--surface-raised); outline: 1px solid var(--border-strong); }
.name-input::placeholder { color: var(--text-faint); }

.jira-prompt { padding: 12px; min-width: 220px; }
.jira-prompt-label { font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.jira-prompt-input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 13px; font-family: ui-monospace, monospace; padding: 7px 9px; border-radius: 8px;
}
.jira-prompt-input:focus { outline: 1px solid var(--accent); }
.jira-prompt-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.jira-prompt-actions .btn { padding: 6px 12px; font-size: 12px; }
.jira-prompt-actions .btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.jira-prompt-error { font-size: 11px; color: var(--fail); margin-top: 6px; line-height: 1.4; }

/* Detail drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(3, 5, 10, .55); z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 92vw);
  background: var(--surface); border-left: 1px solid var(--border-strong);
  box-shadow: -16px 0 44px rgba(0,0,0,.5); z-index: 301;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.drawer-panel.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; gap: 10px; padding: 18px 16px 16px 20px;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.drawer-header .icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.drawer-title-group { flex: 1; min-width: 0; }
.drawer-title { font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-subtitle { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.drawer-close {
  border: none; background: transparent; color: var(--text-muted); cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.drawer-close:hover { background: var(--surface-raised); color: var(--text); }
.drawer-close .icon { width: 14px; height: 14px; }
.drawer-copy-link-btn {
  border: none; background: transparent; color: var(--text-muted); cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.drawer-copy-link-btn:hover { background: var(--surface-raised); color: var(--text); }
.drawer-copy-link-btn.copied { color: var(--good); }
.drawer-copy-link-btn .icon { width: 14px; height: 14px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer-placeholder {
  font-size: 12.5px; color: var(--text-faint); text-align: center;
  padding: 48px 12px; border: 1px dashed var(--border); border-radius: 12px;
}

.drawer-section { margin-bottom: 22px; }
.drawer-section-label {
  display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin-bottom: 8px;
}
.drawer-section-label .icon { width: 13px; height: 13px; }
.drawer-section-label-danger { color: var(--fail); }
.qa-analysis-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

.qa-scope-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; }
.qa-scope-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.qa-scope-pill {
  border: 1px solid var(--border); background: var(--surface-raised); color: var(--text-muted);
  border-radius: 999px; padding: 5px 11px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.qa-scope-pill:hover { border-color: var(--accent); color: var(--text); }
.qa-scope-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.qa-scope-pill-all { border-style: dashed; font-weight: 700; }
.qa-scope-pill-all.active { border-style: solid; }

.drawer-textarea {
  width: 100%; min-height: 110px; resize: vertical; box-sizing: border-box;
  border: 1px solid var(--border); background: var(--surface-raised); color: var(--text);
  font-family: inherit; font-size: 13px; line-height: 1.5; padding: 10px 12px; border-radius: 10px;
}
.drawer-textarea:focus { outline: 1px solid var(--border-strong); border-color: var(--border-strong); }
.drawer-textarea::placeholder { color: var(--text-faint); }

.drawer-input {
  width: 100%; box-sizing: border-box; border: 1px solid rgba(251,113,133,.3); background: rgba(251,113,133,.06);
  color: var(--text); font-family: ui-monospace, monospace; font-size: 13px; padding: 9px 12px; border-radius: 10px;
}
.drawer-input:focus { outline: none; border-color: rgba(251,113,133,.55); }
.drawer-input::placeholder { color: rgba(251,113,133,.6); }
.drawer-input-missing { border-color: rgba(251,113,133,.6); background: rgba(251,113,133,.1); }
.drawer-hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; }
.drawer-hint-warn { color: var(--warn); }
.drawer-hint-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.drawer-hint-link:hover { color: var(--text); }

.drawer-stale-interval { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; color: var(--text-muted); }
.drawer-stale-interval-input {
  width: 50px; box-sizing: border-box; border: 1px solid var(--border); background: var(--surface-raised);
  color: var(--text); font-size: 12px; padding: 4px 6px; border-radius: 6px; text-align: center;
}
.drawer-stale-interval-input:focus { outline: none; border-color: var(--border-strong); }

.drawer-status-history { display: flex; flex-direction: column; gap: 6px; }
.drawer-status-history-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px;
  color: var(--text-muted); background: var(--surface-raised); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px;
}
.drawer-status-history-change { display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-status-history-change .icon { width: 12px; height: 12px; flex-shrink: 0; }
.drawer-status-history-arrow { color: var(--text-faint); }
.drawer-status-history-time { font-size: 10px; color: var(--text-faint); white-space: nowrap; flex-shrink: 0; }

.drawer-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-tab {
  border: none; background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 600;
  padding: 10px 4px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: 6px;
}
.drawer-tab:hover { color: var(--text); }
.drawer-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.drawer-tab-count { background: var(--surface-raised); color: var(--text-muted); border-radius: 999px; padding: 1px 7px; font-size: 10.5px; }
.drawer-tab.active .drawer-tab-count { background: var(--accent-dim); color: var(--accent); }

.drawer-note-add { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.drawer-note-input { min-height: 64px; }
.drawer-note-add-btn { align-self: flex-end; }
.drawer-note-add-btn:disabled { opacity: .4; cursor: not-allowed; }

.note-field { display: flex; flex-direction: column; gap: 5px; }
.note-field-label { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.note-field-input { min-height: 52px; font-size: 12.5px; }

.drawer-note-list { display: flex; flex-direction: column; gap: 10px; }
.drawer-note-item { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.drawer-note-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.drawer-note-meta { font-size: 10.5px; color: var(--text-faint); font-family: ui-monospace, monospace; }
.drawer-note-header .icon-btn { padding: 3px; }
.drawer-note-header .icon-btn .icon { width: 12px; height: 12px; }
.drawer-note-text { font-size: 13px; color: var(--text); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

.testcase-title-input {
  flex: 1; min-width: 0; background: transparent; border: none; color: var(--text);
  font-size: 13px; font-weight: 600; padding: 2px 0;
}
.testcase-title-input:focus { outline: none; }
.testcase-title-input::placeholder { color: var(--text-faint); font-weight: 400; }
.testcase-meta { margin-bottom: 8px; }

.testcase-card-header { cursor: pointer; }
.testcase-card-chevron { display: flex; align-items: center; flex-shrink: 0; color: var(--text-faint); }
.testcase-card-chevron .icon { width: 14px; height: 14px; transition: transform .15s; }
.testcase-card-chevron.open .icon { transform: rotate(180deg); }
.testcase-card-summary { cursor: pointer; }
.testcase-item-open .testcase-card-summary { margin-bottom: 2px; }
.testcase-stale-badge { color: var(--warn); font-weight: 700; }

.testcase-steps-section { margin-bottom: 10px; }
.testcase-steps-label { margin-bottom: 8px; }
.testcase-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.testcase-steps-empty { padding: 10px; font-size: 12px; }

.testcase-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.testcase-step-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.testcase-step-num-badge {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 999px; background: var(--accent); color: var(--accent-on);
  font-size: 11.5px; font-weight: 800; font-family: ui-monospace, monospace;
}
.testcase-step-header-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text-faint);
}
.testcase-step-header .icon-btn { padding: 3px; margin-left: auto; }
.testcase-step-header .icon-btn .icon { width: 13px; height: 13px; }

.testcase-step-field { margin-bottom: 10px; }
.testcase-step-field:last-child { margin-bottom: 0; }
.testcase-step-field-label {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700;
  letter-spacing: .2px; margin-bottom: 5px; color: var(--text-muted);
}
.testcase-step-field-label .icon { width: 13px; height: 13px; }
.testcase-step-field-expected .testcase-step-field-label { color: var(--good); }

.testcase-step-textarea {
  display: block; width: 100%; box-sizing: border-box; resize: none; overflow: hidden;
  min-height: 36px; border: 1px solid var(--border); background: var(--surface-raised); color: var(--text);
  font-family: inherit; font-size: 13.5px; line-height: 1.55; padding: 9px 11px; border-radius: 9px;
  transition: border-color .15s, background .15s;
}
.testcase-step-textarea::placeholder { color: var(--text-faint); }
.testcase-step-textarea:focus { outline: none; border-color: var(--accent); }
.testcase-step-textarea-expected { border-left: 3px solid var(--good); background: rgba(52,211,153,.07); }
.testcase-step-textarea-expected:focus { border-left-color: var(--good); border-color: var(--good); }

.testcase-add-step-btn { padding: 7px 12px; font-size: 12px; }

.testcase-runs-section { border-top: 1px dashed var(--border); padding-top: 8px; margin-top: 4px; }
.testcase-runs-toggle {
  display: flex; align-items: center; gap: 5px; background: none; border: none; cursor: pointer;
  font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 2px 0; letter-spacing: .2px;
}
.testcase-runs-toggle:hover { color: var(--text); }
.testcase-runs-toggle .icon { width: 12px; height: 12px; transition: transform .15s; }
.testcase-runs-toggle.open .icon { transform: rotate(180deg); }
.testcase-runs-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.testcase-run-item { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.testcase-run-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.testcase-run-time { font-size: 10.5px; color: var(--text-faint); font-family: ui-monospace, monospace; flex-shrink: 0; }
.testcase-run-note { font-size: 12px; color: var(--text); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }

.drawer-jira-add { display: flex; gap: 8px; margin-bottom: 10px; }
.drawer-jira-add .drawer-input { flex: 1; }
.drawer-input-error { border-color: var(--fail); background: rgba(251,113,133,.18); animation: drawer-input-shake .3s; }
@keyframes drawer-input-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.drawer-jira-dup-error { font-size: 11px; color: var(--fail); margin: -4px 0 10px; }
.drawer-jira-list { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer-jira-empty {
  border: 1px dashed rgba(251,113,133,.4); color: var(--fail); font-size: 11.5px;
  padding: 8px 10px; border-radius: 8px; width: 100%; box-sizing: border-box;
}
.drawer-jira-chip {
  display: flex; flex-direction: column; gap: 2px; background: rgba(251,113,133,.1);
  border: 1px solid rgba(251,113,133,.35); color: var(--text);
  padding: 5px 6px 6px 10px; border-radius: 10px;
}
.drawer-jira-chip-main { display: flex; align-items: center; gap: 6px; font-family: ui-monospace, monospace; font-size: 12px; }
.drawer-jira-chip-date { font-size: 10.5px; color: var(--text-faint); }
.drawer-jira-chip-remove {
  border: none; background: transparent; color: var(--fail); cursor: pointer;
  width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  margin-left: auto;
}
.drawer-jira-chip-remove:hover { background: rgba(251,113,133,.25); }
.drawer-jira-chip-remove .icon { width: 10px; height: 10px; }
.drawer-jira-chip-remove:disabled { opacity: .3; cursor: not-allowed; }
.drawer-jira-chip-remove:disabled:hover { background: transparent; }
.drawer-jira-chip-link { color: var(--accent); text-decoration: none; }
.drawer-jira-chip-link:hover { text-decoration: underline; }

.drawer-jira-live-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 11px; color: var(--text-faint); }
.drawer-jira-refresh-btn {
  border: 1px solid var(--border); background: var(--surface-raised); color: var(--text-muted);
  width: 24px; height: 24px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.drawer-jira-refresh-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.drawer-jira-refresh-btn:disabled { opacity: .5; cursor: default; }
.drawer-jira-refresh-btn.spinning .icon { animation: jira-spin .9s linear infinite; }
@keyframes jira-spin { to { transform: rotate(360deg); } }
.drawer-jira-live-text.is-error { color: var(--fail); }

.drawer-jira-live-badge {
  font-family: var(--font-sans); font-size: 10.5px;
  padding: 2px 7px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.drawer-jira-live-badge.cat-new { color: var(--neutral); background: rgba(135,147,171,.14); border-color: rgba(135,147,171,.3); }
.drawer-jira-live-badge.cat-progress { color: var(--warn); background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.35); }
.drawer-jira-live-badge.cat-done { color: var(--good); background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.35); }
.drawer-jira-live-badge.cat-missing { color: var(--fail); background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.35); }

.drawer-jira-settings-btn {
  margin-left: auto; border: none; background: transparent; color: var(--text-faint); cursor: pointer;
  width: 20px; height: 20px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
.drawer-jira-settings-btn:hover { background: var(--surface-raised); color: var(--text-muted); }

.jira-analysis-group {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px; margin-bottom: 12px;
}
.jira-analysis-group-title {
  font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; color: #a78bfa;
  margin-bottom: 8px;
}
.jira-analysis-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.jira-analysis-empty { font-size: 11.5px; color: var(--text-faint); }
.jira-analysis-item { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; }
.jira-analysis-item.status-pending { border-color: rgba(251,191,36,.4); }
.jira-analysis-item.status-approved { border-color: rgba(52,211,153,.35); }
.jira-analysis-item.status-rejected { opacity: .6; }
.jira-analysis-item-status { margin-bottom: 6px; }
.jira-analysis-status-badge {
  display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; border: 1px solid transparent;
}
.jira-analysis-status-badge.status-pending { color: var(--warn); background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.35); }
.jira-analysis-status-badge.status-approved { color: var(--good); background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.35); }
.jira-analysis-status-badge.status-rejected { color: var(--text-faint); background: rgba(135,147,171,.12); border-color: rgba(135,147,171,.3); }
.jira-analysis-item-error { font-size: 11px; color: var(--fail); margin-top: 6px; line-height: 1.4; }
.jira-analysis-item-actions { display: flex; gap: 8px; margin-top: 10px; }
.jira-analysis-item-actions .btn { padding: 6px 11px; font-size: 11.5px; }
.jira-analysis-item-text { font-size: 12.5px; color: var(--text); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.jira-analysis-item-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px;
  font-size: 10.5px; color: var(--text-faint); font-family: ui-monospace, monospace;
}
.jira-analysis-item-remove {
  border: none; background: transparent; color: var(--text-faint); cursor: pointer;
  width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
}
.jira-analysis-item-remove:hover { background: rgba(251,113,133,.18); color: var(--fail); }
.jira-analysis-item-remove .icon { width: 10px; height: 10px; }
.jira-analysis-add { display: flex; gap: 8px; align-items: flex-end; }
.jira-analysis-add-input {
  flex: 1; min-height: 44px; resize: vertical; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px;
  font-family: inherit; box-sizing: border-box;
}
.jira-analysis-add-input:focus { outline: 1px solid var(--accent); }
.jira-analysis-add .btn { flex-shrink: 0; }

.drawer-link-chip {
  display: inline-flex; align-items: center; gap: 4px; background: rgba(167,139,250,.1);
  border: 1px solid rgba(167,139,250,.35); border-radius: 999px; padding: 3px 6px 3px 4px;
}
.drawer-link-chip-jump {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; cursor: pointer;
  color: #c4b5fd; font-size: 12px; font-weight: 600; padding: 3px 4px 3px 6px; border-radius: 999px;
}
.drawer-link-chip-jump:hover { background: rgba(167,139,250,.15); }
.drawer-link-chip-jump .icon { width: 12px; height: 12px; }

.drawer-resource-add { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.drawer-resource-add .drawer-resource-url-input { flex: 2 1 160px; }
.drawer-resource-add .drawer-resource-label-input { flex: 1 1 110px; }
.drawer-resource-error { font-size: 11px; color: var(--fail); margin: -4px 0 10px; }
.drawer-resource-list { display: flex; flex-direction: column; gap: 8px; }
.drawer-resource-chip {
  display: flex; align-items: flex-start; gap: 8px; background: rgba(167,139,250,.08);
  border: 1px solid rgba(167,139,250,.3); border-radius: 10px; padding: 8px 8px 8px 10px;
}
.drawer-resource-chip-icon { color: #c4b5fd; width: 15px; height: 15px; margin-top: 1px; flex-shrink: 0; }
.drawer-resource-chip-icon .icon { width: 15px; height: 15px; }
.drawer-resource-chip-main { flex: 1; min-width: 0; text-decoration: none; display: flex; flex-direction: column; gap: 1px; }
.drawer-resource-chip-label { font-size: 12.5px; color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-resource-chip-url { font-size: 10.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-resource-chip-main:hover .drawer-resource-chip-label { text-decoration: underline; }
.drawer-resource-chip-remove {
  border: none; background: transparent; color: var(--text-faint); cursor: pointer;
  width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.drawer-resource-chip-remove:hover { background: rgba(167,139,250,.2); color: var(--text); }
.drawer-resource-chip-remove .icon { width: 10px; height: 10px; }

.children { display: none; }
.children.open { display: block; }

/* Diagram view */
.diagram-wrap { position: relative; }
.diagram-scroll {
  overflow: auto; padding: 28px; border-radius: 16px; border: 1px solid var(--border);
  background-color: var(--canvas-bg);
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  height: min(70vh, 720px); min-height: 320px;
}
.diagram-sizer { position: relative; }
.diagram-canvas { position: absolute; top: 0; left: 0; transform-origin: top left; }
.diagram-lines { position: absolute; top: 0; left: 0; pointer-events: none; }
.diagram-edge { fill: none; stroke: rgba(63, 208, 255, .38); stroke-width: 1.6; }

.diagram-zoom-bar {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  display: flex; align-items: center; gap: 2px; background: var(--surface-raised);
  border: 1px solid var(--border-strong); border-radius: 10px; padding: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.zoom-btn {
  border: none; background: transparent; color: var(--text-muted); cursor: pointer;
  width: 26px; height: 26px; border-radius: 7px; font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.zoom-btn:hover { background: var(--surface); color: var(--text); }
.zoom-label {
  font-size: 11px; color: var(--text-muted); font-family: ui-monospace, monospace;
  min-width: 38px; text-align: center; user-select: none;
}
.zoom-fit { border: none; background: transparent; color: var(--text-muted); cursor: pointer; padding: 0 8px; height: 26px; border-radius: 7px; display: flex; align-items: center; }
.zoom-fit:hover { background: var(--surface); color: var(--accent); }
.zoom-fit .icon { width: 13px; height: 13px; }
.diagram-link-edge { fill: none; stroke: #a78bfa; stroke-width: 1.8; stroke-dasharray: 5 4; opacity: .8; }

@keyframes fwFlash {
  0%, 100% { box-shadow: 0 10px 28px rgba(0,0,0,.4); }
  50% { box-shadow: 0 0 0 4px rgba(167,139,250,.4), 0 10px 28px rgba(0,0,0,.4); }
}
.diag-card.flash { animation: fwFlash 1.3s ease; border-color: #a78bfa; }

.diag-card {
  position: absolute; background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 10px 10px 8px; box-shadow: 0 10px 28px rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 7px; transition: border-color .15s, box-shadow .15s;
}
.diag-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.5); }
.diag-card.status-ok { border-color: rgba(52,211,153,.55); }
.diag-card.status-warn { border-color: rgba(251,191,36,.55); }
.diag-card.status-fail { border-color: rgba(251,113,133,.55); }
.diag-card.status-todo { border-color: var(--border); }
.diag-card.is-stale { border-style: dashed; border-color: rgba(251,191,36,.6); }

/* Spotlight modu (diyagram): en az bir "Devam Ediyor" kart varken diğerleri soluklaşır, devam
   eden kart(lar) büyür/parlar/üzerinde ışık taraması akar. */
.tree-has-progress.diagram-wrap .diag-card:not(.status-progress) {
  opacity: .35; filter: saturate(.45);
  transition: opacity .35s ease, filter .35s ease;
}
.tree-has-progress.diagram-wrap .diag-card:not(.status-progress):hover { opacity: .8; filter: saturate(.8); }
.diag-card.status-progress {
  position: absolute; overflow: hidden;
  border-color: var(--progress); border-width: 2.5px;
  box-shadow: 0 0 0 2px rgba(96,165,250,.5), 0 0 34px rgba(96,165,250,.42), 0 14px 30px rgba(0,0,0,.45);
  transform: scale(1.06);
  z-index: 5;
  animation: progress-pulse 1.6s ease-in-out infinite;
}
.diag-card.status-progress::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  background-size: 240% 100%;
  animation: progress-shimmer 2.4s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .diag-card.status-progress { animation: none; }
  .diag-card.status-progress::after { display: none; }
}

.diag-top-row { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.diag-name-input { width: 100%; box-sizing: border-box; text-align: center; font-weight: 600; font-size: 13px; border: none; background: transparent; padding: 3px 4px; border-radius: 7px; color: var(--text); }
.diag-name-input:focus { background: var(--surface-raised); outline: 1px solid var(--border-strong); }
.diag-card .row-actions { justify-content: center; }

/* Board (kanban) view */
.board { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px; align-items: flex-start; }
.board-col {
  flex: 0 0 262px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px;
  display: flex; flex-direction: column; gap: 9px; min-height: 130px; transition: border-color .18s, box-shadow .18s;
}
.board-col.drag-over { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 26px rgba(63,208,255,.25); }
.board-col-head { display: flex; justify-content: space-between; align-items: center; padding: 0 2px 4px; font-size: 11.5px; font-weight: 700; color: var(--col-color); text-transform: uppercase; letter-spacing: .4px; }
.board-col-head-label { display: flex; align-items: center; gap: 6px; }
.board-col-head .icon { width: 13px; height: 13px; }
.board-col-count { background: var(--surface-raised); color: var(--text-muted); border-radius: 999px; padding: 1px 8px; font-size: 10.5px; font-family: ui-monospace, monospace; }
.board-col-list { display: flex; flex-direction: column; gap: 9px; }
.board-col-empty { font-size: 11.5px; color: var(--text-faint); text-align: center; padding: 18px 0; border: 1px dashed var(--border); border-radius: 10px; }

.board-card-auto { cursor: default; }
.board-card {
  background: var(--surface-raised); border: 1px solid var(--border); border-left: 3px solid var(--card-color);
  border-radius: 12px; padding: 10px 11px; cursor: grab; box-shadow: 0 3px 10px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .15s;
}
.board-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.board-card.is-stale { border-left-style: dashed; border-left-color: rgba(251,191,36,.6); }
.board-card.dragging { opacity: .4; }
.board-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.board-card-top-left { display: flex; align-items: center; gap: 6px; }
.board-card-path { font-size: 10px; color: var(--text-faint); margin: 7px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: ui-monospace, monospace; }
.board-name-input { width: 100%; box-sizing: border-box; border: none; background: transparent; font-size: 13px; font-weight: 600; padding: 2px 0; color: var(--text); }
.board-name-input:focus { outline: none; }
.board-card-bottom { margin-top: 8px; }

/* Sitemap (URL'den içe aktar) modal */
.sitemap-overlay {
  position: fixed; inset: 0; background: rgba(3, 5, 10, .6); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.sitemap-modal {
  width: min(480px, 100%); max-height: min(600px, 90vh); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
}
.sitemap-modal-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sitemap-modal-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.sitemap-modal-body { padding: 20px; overflow-y: auto; }

.sitemap-url-input { width: 100%; box-sizing: border-box; margin: 12px 0; }
.sitemap-field-row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.sitemap-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-muted); flex: 1; }
.sitemap-field input {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 7px 9px; font-size: 13px;
}
.sitemap-field input:focus { outline: 1px solid var(--accent); }
.sitemap-field-hint { font-size: 10.5px; color: var(--text-faint); line-height: 1.4; font-weight: 400; }

.sitemap-checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); cursor: pointer; margin-bottom: 4px; }
.sitemap-checkbox-row input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.sitemap-login-hint { margin-bottom: 16px; }
.sitemap-login-msg { font-size: 12.5px; color: var(--text); line-height: 1.6; margin-bottom: 16px; }
.sitemap-login-msg strong { color: var(--accent); }
.sitemap-start-btn { width: 100%; justify-content: center; }

.sitemap-spinner { display: flex; justify-content: center; margin: 8px 0 14px; }
.sitemap-spinner .icon { width: 22px; height: 22px; color: var(--accent); animation: jira-spin .9s linear infinite; }
.sitemap-progress-text { text-align: center; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.sitemap-progress-url {
  text-align: center; font-size: 11px; color: var(--text-faint); font-family: ui-monospace, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 16px;
}
.sitemap-error { font-size: 12.5px; color: var(--fail); margin-bottom: 14px; line-height: 1.5; }

.sitemap-summary { font-size: 13px; color: var(--text); margin-bottom: 12px; }
.sitemap-preview {
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 4px; max-height: 260px; overflow-y: auto;
  margin-bottom: 6px; font-size: 12px;
}
.sitemap-preview-row { display: flex; align-items: center; gap: 8px; padding: 3px 10px; color: var(--text); }
.sitemap-preview-type {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--text-faint);
  background: var(--surface-raised); border-radius: 999px; padding: 1px 7px; flex-shrink: 0; margin-left: auto;
}

/* AI Yardımı modal (Claude Code'a kopyalanacak istem) */
.ai-assist-overlay {
  position: fixed; inset: 0; background: rgba(3, 5, 10, .6); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.ai-assist-modal {
  width: min(560px, 100%); max-height: min(600px, 90vh); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
}
.ai-assist-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.ai-assist-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.ai-assist-title .icon { width: 16px; height: 16px; color: var(--accent); }
.ai-assist-body { padding: 20px; overflow-y: auto; }
.ai-assist-desc { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.ai-assist-textarea { font-family: ui-monospace, monospace; font-size: 12.5px; }

/* Bayat/Bekleyen Test Case'ler paneli (attention-panel.js) — ai-assist-* modal iskeletiyle
   aynı görsel dil ama kendi sınıfları: querySelector('.ai-assist-overlay') gibi genel
   seçicilerin (ai-assist.js::closeAiAssistModal) yanlış overlay'i kapatmasını önlemek için. */
.attention-overlay {
  position: fixed; inset: 0; background: rgba(3, 5, 10, .6); z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.attention-modal {
  width: min(640px, 100%); max-height: min(640px, 90vh); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
}
.attention-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 12px 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.attention-title-bar { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--text); }
.attention-title-bar .icon { width: 16px; height: 16px; color: var(--warn); }
.attention-body { padding: 20px; overflow-y: auto; }
.attention-desc { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.attention-list { display: flex; flex-direction: column; gap: 8px; }
.attention-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.attention-row:hover { border-color: var(--accent); background: var(--surface); }
.attention-badge {
  flex-shrink: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .4px; border-radius: 999px;
  padding: 4px 9px; white-space: nowrap;
}
.attention-badge-pending { color: var(--text-muted); background: rgba(135,147,171,.14); }
.attention-badge-stale { color: var(--warn); background: rgba(251,191,36,.14); }
.attention-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.attention-title { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-path { font-size: 10.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-meta { flex-shrink: 0; font-size: 10.5px; color: var(--text-faint); font-family: ui-monospace, monospace; }

/* Drawer: alt öğeler özeti (durum dağılımı, hata sayıları, log listesi) */
.subtree-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.subtree-stat-tile {
  position: relative; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 9px 8px 11px; overflow: hidden;
}
.subtree-stat-tile::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tile-color); }
.subtree-stat-tile .icon { width: 12px; height: 12px; color: var(--tile-color); opacity: .7; }
.subtree-stat-num { font-family: ui-monospace, monospace; font-size: 16px; font-weight: 700; color: var(--tile-color); line-height: 1.3; }
.subtree-stat-label { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }

.subtree-bug-row { display: flex; gap: 8px; margin-bottom: 18px; }
.subtree-bug-tile {
  flex: 1; display: flex; flex-direction: column; gap: 2px; border-radius: 10px; padding: 9px 12px;
  border: 1px solid var(--border);
}
.subtree-bug-open { background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.3); }
.subtree-bug-resolved { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); }
.subtree-bug-num { font-family: ui-monospace, monospace; font-size: 18px; font-weight: 700; }
.subtree-bug-open .subtree-bug-num { color: var(--fail); }
.subtree-bug-resolved .subtree-bug-num { color: var(--good); }
.subtree-bug-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }

.subtree-log-label { margin-bottom: 8px; }
.subtree-log-list { display: flex; flex-direction: column; gap: 8px; }
.subtree-log-item { background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; }
.subtree-log-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.subtree-log-node { font-size: 11.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subtree-log-date { font-size: 10px; color: var(--text-faint); font-family: ui-monospace, monospace; flex-shrink: 0; }
.subtree-log-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.subtree-log-empty {
  border: 1px dashed var(--border); color: var(--text-faint); font-size: 11.5px;
  padding: 10px; border-radius: 8px; text-align: center;
}
.subtree-log-toggle {
  border: none; background: transparent; color: var(--accent); font-size: 11.5px; font-weight: 600;
  cursor: pointer; padding: 4px 2px; text-align: left;
}
.subtree-log-toggle:hover { text-decoration: underline; }

.subtree-testcase-hint { font-size: 11px; color: var(--text-faint); margin-bottom: 8px; line-height: 1.4; }
.subtree-testcase-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.subtree-testcase-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 11px; cursor: pointer; font: inherit; color: var(--text); text-align: left;
  transition: border-color .15s, background .15s;
}
.subtree-testcase-row:hover { border-color: var(--accent); background: var(--surface); }
.subtree-testcase-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
