/* Text Editor (gedit-flavoured) */

.gedit {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.gedit-head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--win-head);
  font-size: 13px;
}
.gedit-head .fname { font-weight: 700; }
.gedit-head .fpath { color: var(--text-dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gedit-head .save-btn { margin-left: auto; }

.gedit-readonly {
  flex: none;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 7px;
}
.gedit-readonly .icon { width: 13px; height: 13px; }

.gedit textarea {
  flex: 1;
  min-height: 0;
  border: none;
  outline: none;
  resize: none;
  background: var(--win-bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 14px 16px;
  white-space: pre;
  overflow: auto;
  tab-size: 4;
}
.gedit.dirty .save-btn { background: var(--accent); color: #fff; border-color: transparent; }

.gedit-status {
  flex: none;
  display: flex;
  gap: 18px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--text-dim);
  background: var(--win-head);
  border-top: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
