.project-header .page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}

.project-header {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.project-header .back-link {
  display: inline-block;
  color: var(--text);
  opacity: 0.85;
  text-decoration: none;
  font-size: 13px;
}

.project-header .back-link:hover {
  text-decoration: underline;
}

.error {
  margin: 0 0 12px 0;
  color: #8b0000;
  font-size: 13px;
}

.project-layout {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr;
  gap: 44px;
  align-items: start;
}

/* Panels */
.panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

/* Force panel typography down */
.panel,
.panel * {
  font-size: 13px;
  line-height: 1.45;
}

.panel-title {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.crumb {
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 13px;
}

/* File tree */
.tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.row a {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);

  /* Change this to adjust folder/file font size */
  font-size: 13px;
  line-height: 1.35;
  font-weight: 400;
}

/* Ensure the name text cannot inherit a bigger font from elsewhere */
.row a .name {
  font-size: 13px;   /* Change this to match .row a if you adjust sizes */
  line-height: 1.35;
  font-weight: 400;
  color: var(--muted);
}

/* Folder names bold */
.folder .name {
  font-weight: 600;
  color: var(--text);
}

/* File names normal */
.file .name {
  font-weight: 400;
  color: var(--muted);
}

/* Icons should not stretch row height */
/* .row a .icon { */
/*   font-size: 14px; */
/*   line-height: 1; */
/* } */

.row a .icon {
  font-size: 18px;          /* ← icon size */
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  /*background: var(--panel-5);*/
  border-radius: 6px;
}


.row a:hover {
  background: rgba(109, 71, 21, 0.06);
}

/* Right side panels */
.side {
  display: grid;
  gap: 14px;
}

.kv {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.kv li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.k {
  color: var(--muted);
  font-size: 13px;
}

.v {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 10px 0;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  color: var(--text);
  font-size: 12.5px;
}

@media (max-width: 1100px) {
  .project-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

