.agent-project-panel form { margin-bottom: 12px; }
.agent-project-list { display: flex; flex-wrap: wrap; gap: 6px; }
.agent-project-list a { overflow-wrap: anywhere; }
.agent-project-page { min-height: 100vh; display: grid; grid-template-rows: auto auto minmax(0, 1fr); padding: 0 20px 20px; gap: 12px; background: #f6f8fa; color: #182230; }
.agent-project-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; }
.agent-project-header h1 { font-size: 24px; overflow-wrap: anywhere; margin-bottom: 0; }
.agent-project-header p { font-size: 13px; color: #526071; margin: 0 0 4px; }
.agent-project-header p:empty { display: none; }
.agent-project-page #projectStatus { grid-row: 2; margin: 0; }
.agent-project-files { grid-row: 3; display: grid; grid-template-columns: minmax(180px, 24%) minmax(0, 1fr); gap: 12px; min-height: 0; }
.agent-project-files > nav, .agent-project-content { overflow: auto; min-width: 0; padding: 14px; border: 1px solid #d9e0e8; border-radius: 8px; background: #fff; }
.agent-project-tree { list-style: none; padding-left: 14px; margin: 0; }
#projectTree > .agent-project-tree { padding-left: 0; }
.agent-project-tree button { max-width: 100%; overflow-wrap: anywhere; }
.agent-project-tree button[aria-current="true"] { background: #e2edff; color: #123d83; }
.agent-project-content h2 { font-size: 16px; overflow-wrap: anywhere; }
.agent-project-content pre { margin: 0; overflow: auto; white-space: pre; font-size: 13px; }
@media (min-width: 651px) { .agent-project-page { height: 100vh; } }
@media (max-width: 650px) {
  .agent-project-files { grid-template-columns: minmax(0, 1fr); }
  .agent-project-files > nav { max-height: 40vh; }
}
