/* ── TAB: PROJECT OVERVIEW (v2 Staging) ────────────────────────── */
.field-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px;
  align-items: start;
  margin-bottom: 11px;
}

.field-label {
  font-size: 12px;
  color: var(--text3);
  padding-top: 4px;
}

.field-input, .field-textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  padding: 4px 11px;
  border-radius: var(--radius);
  width: 100%;
}

.field-input:focus, .field-textarea:focus { 
  outline: none; 
  border-color: var(--accent); 
}

.field-textarea { 
  resize: vertical; 
  min-height: 60px; 
}

.save-row {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 12px;
}

.project-list-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--border);
}

.project-list-tab {
  min-height: 32px;
  display: inline-grid;
  grid-template-columns: 28px minmax(0, auto);
  align-items: center;
  gap: 6px;
  padding: 2px 9px 2px 2px;
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text3);
  font-family: var(--font-ui);
  font-size: 12px;
  cursor: pointer;
}

.project-list-tab-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  color: var(--text2);
}

.project-list-tab-label {
  max-width: 180px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.project-list-tab:hover,
.project-list-tab.active {
  color: var(--text);
  border-color: var(--project-accent-border, var(--accent));
}

.project-list-tab.active .project-list-tab-icon {
  color: var(--project-accent-secondary, var(--accent));
}

.project-list-tab.map .project-list-tab-icon { 
  color: var(--blue); 
}

.project-map-meta,
.project-map-empty {
  color: var(--text3);
  font-size: 12px;
}

.project-list-title-input.readonly-title {
  display: block;
  line-height: 1.4;
  pointer-events: none;
}

.project-map-row .project-map-filepath {
  font-family: var(--font-mono);
  font-size: 12px;
}

.project-list-section {
  margin: 0 0 18px;
}

.project-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.project-list-title-input {
  font-size: 13px;
  letter-spacing: 6px;
  color: var(--text3);
  text-transform: uppercase;
  background: transparent;
  border: 1px solid transparent;
  outline: none;
  padding: 0;
  margin: 0;
  min-width: 0;
  width: min(34ch, 100%);
}

.project-list-title-input:focus {
  border-color: transparent;
  color: var(--text);
  caret-color: var(--text);
}

.project-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.outline-link {
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
}

.outline-link:hover { 
  color: var(--accent); 
}

.project-list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-list-row {
  display: grid;
  gap: 10px;
  align-items: start;
}

.project-list-row.numbered { 
  grid-template-columns: 26px minmax(0, 1fr); 
}

.project-list-row.named { 
  grid-template-columns: minmax(12ch, 15ch) minmax(0, 1fr); 
}

.project-list-index {
  width: 26px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text3);
  font-size: 12px;
}

.project-list-row .field-input,
.project-list-row .field-textarea {
  width: 100%;
  min-width: 0;
  background: var(--bg2);
}

.project-list-row .field-input { 
  min-height: 30px; 
}

.project-list-row .field-textarea {
  min-height: 3.2em;
  max-height: 4.8em;
  line-height: 1.35;
  resize: vertical;
  overflow-y: auto;
}

.project-list-row .field-textarea.project-list-numbered-text,
.project-list-row .field-textarea.project-list-description-text {
  min-height: 30px;
  max-height: 66px;
  line-height: 18px;
  resize: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
  scrollbar-width: none;
}

.project-list-row .field-textarea.project-list-numbered-text::-webkit-scrollbar,
.project-list-row .field-textarea.project-list-description-text::-webkit-scrollbar {
  display: none;
}