.existing-screen-open {
  margin-left: 8px;
}
.existing-screen-workspace {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #4b3e2c;
  border-radius: 20px;
  background: #15120d;
}
.existing-screen-workspace[hidden] {
  display: none;
}
.existing-screen-workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.existing-screen-workspace-head span,
.existing-screen-detail-head span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #c7a34e;
}
.existing-screen-workspace-head h2,
.existing-screen-detail-head h3 {
  margin: 4px 0 6px;
}
.existing-screen-workspace-head p,
.existing-screen-detail-head p {
  margin: 0;
  color: #a89d8e;
  font-size: 12px;
  line-height: 1.45;
}
.existing-screen-workspace-head > strong {
  min-width: 74px;
  padding: 8px 10px;
  border: 1px solid #4a3d2c;
  border-radius: 999px;
  text-align: center;
  color: #ebc971;
  background: #100e0a;
}
.existing-screen-workspace-grid {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}
.existing-screen-workspace-grid > aside {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}
.existing-screen-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.existing-screen-filter-row input,
.existing-screen-add-form input,
.existing-screen-request textarea,
.existing-screen-request select,
.existing-screen-teaching textarea {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #3f3529;
  border-radius: 10px;
  background: #0f0d0a;
  color: #f3eee5;
  font: inherit;
}
.existing-screen-filter-row span {
  font-size: 10px;
  color: #918879;
}
.existing-screen-list {
  display: grid;
  gap: 7px;
  max-height: 520px;
  overflow: auto;
}
.existing-screen-item {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 1px solid #353027;
  border-radius: 12px;
  background: #11100d;
  color: #d8d1c7;
  text-align: left;
  cursor: pointer;
}
.existing-screen-item strong {
  font-size: 12px;
}
.existing-screen-item small {
  overflow: hidden;
  color: #8e867a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.existing-screen-item span {
  font-size: 9px;
  color: #a49063;
}
.existing-screen-item.is-active {
  border-color: #9b7828;
  background: #211b0f;
  box-shadow: inset 0 0 0 1px rgba(216, 177, 75, 0.14);
}
.existing-screen-list-note,
.existing-screen-empty {
  margin: 0;
  padding: 11px;
  border: 1px dashed #393229;
  border-radius: 10px;
  color: #8f877b;
  font-size: 11px;
  line-height: 1.45;
}
.existing-screen-add-form {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #373026;
  border-radius: 13px;
  background: #100e0b;
}
.existing-screen-add-form strong {
  font-size: 11px;
  color: #cabd9f;
}
.existing-screen-add-form button,
.existing-screen-agent-actions button,
.existing-screen-teaching button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #5a4726;
  border-radius: 10px;
  background: #241b0c;
  color: #e7c66d;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.existing-screen-add-form button:disabled,
.existing-screen-agent-actions button:disabled,
.existing-screen-teaching button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.existing-screen-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.existing-screen-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border: 1px solid #393128;
  border-radius: 14px;
  background: #11100d;
}
.existing-screen-detail-head > strong {
  padding: 6px 9px;
  border: 1px solid #3e3529;
  border-radius: 999px;
  color: #cbb985;
  font-size: 10px;
  white-space: nowrap;
}
.existing-screen-request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  gap: 10px;
  padding: 13px;
  border: 1px solid #453a2b;
  border-radius: 14px;
  background: #100e0b;
}
.existing-screen-request label,
.existing-screen-teaching label {
  display: grid;
  gap: 6px;
  color: #b6aa9a;
  font-size: 11px;
  font-weight: 700;
}
.existing-screen-request button {
  grid-column: 1/-1;
  justify-self: end;
}
.existing-screen-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}
.existing-screen-agent {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #383027;
  border-radius: 17px;
  background: #11100d;
}
.existing-screen-agent-ollama {
  border-color: rgba(48, 171, 147, 0.38);
  background: linear-gradient(
    180deg,
    rgba(14, 60, 52, 0.35),
    rgba(17, 16, 13, 0.96)
  );
}
.existing-screen-agent-professor {
  border-color: rgba(218, 180, 82, 0.35);
  background: linear-gradient(
    180deg,
    rgba(69, 53, 19, 0.26),
    rgba(17, 16, 13, 0.96)
  );
}
.existing-screen-agent > header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.existing-screen-agent > header > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  color: #f0ddab;
}
.existing-screen-agent > header div {
  display: grid;
  gap: 2px;
}
.existing-screen-agent > header strong {
  font-size: 12px;
  color: #f1ece4;
}
.existing-screen-agent > header small {
  font-size: 10px;
  color: #91887c;
}
.existing-screen-agent > p {
  margin: 0;
  color: #90887c;
  font-size: 10px;
  line-height: 1.45;
}
.existing-screen-local-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.existing-screen-local-model {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: #beb6aa;
  text-align: left;
  cursor: pointer;
}
.existing-screen-local-model strong,
.existing-screen-local-model small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.existing-screen-local-model strong {
  font-size: 10px;
}
.existing-screen-local-model small {
  font-size: 8px;
  color: #777167;
}
.existing-screen-local-model.is-selected {
  border-color: #2aa88e;
  background: rgba(27, 122, 103, 0.2);
  color: #a9e7da;
}
.existing-screen-current-task,
.existing-screen-professor-status {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.16);
}
.existing-screen-current-task strong {
  font-size: 10px;
  color: #aabfb7;
}
.existing-screen-current-task p {
  margin: 5px 0 0;
  color: #d9d4cc;
  font-size: 11px;
  line-height: 1.45;
}
.existing-screen-professor-status {
  color: #c5b892;
  font-size: 10px;
  line-height: 1.45;
}
.existing-screen-agent-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.existing-screen-agent-actions button:last-child {
  border-color: #785144;
  color: #e1a995;
  background: #2a1611;
}
.existing-screen-agent-professor .ai-recommender {
  border-radius: 14px;
}
.existing-screen-agent-professor .ai-recommender-targets {
  display: none;
}
.existing-screen-agent-professor .ai-recommender-header {
  padding: 11px;
}
.existing-screen-agent-professor .ai-recommender-header h2 {
  font-size: 14px;
}
.existing-screen-agent-professor .ai-recommender-header p {
  font-size: 10px;
}
.existing-screen-agent-professor .ai-recommender-models {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.existing-screen-agent-professor .ai-recommender-action-row,
.existing-screen-agent-professor .ai-recommender-footer {
  padding: 10px;
}
.existing-screen-teaching {
  display: grid;
  gap: 8px;
}
.existing-screen-teaching button {
  justify-self: end;
}
.existing-screen-timeline {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid #373027;
  border-radius: 14px;
  background: #100e0b;
}
.existing-screen-timeline > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.existing-screen-timeline > header strong {
  font-size: 11px;
  color: #d9c99d;
}
.existing-screen-timeline > header span {
  font-size: 9px;
  color: #7f786d;
}
.existing-screen-timeline > div {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow: auto;
}
.existing-screen-event {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}
.existing-screen-event strong {
  font-size: 9px;
  color: #b9a76f;
}
.existing-screen-event p {
  margin: 0;
  color: #c8c2b9;
  font-size: 10px;
  line-height: 1.4;
}
.existing-screen-event small {
  font-size: 9px;
  color: #706a62;
}
.existing-screen-safety {
  margin: 0;
  padding: 9px 10px;
  border: 1px dashed #4a3b28;
  border-radius: 10px;
  color: #8b8274;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}
@media (max-width: 1050px) {
  .existing-screen-workspace-grid {
    grid-template-columns: 1fr;
  }
  .existing-screen-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 320px;
  }
  .existing-screen-agent-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .existing-screen-workspace {
    padding: 12px;
  }
  .existing-screen-workspace-head,
  .existing-screen-detail-head,
  .existing-screen-timeline > header {
    flex-direction: column;
  }
  .existing-screen-list {
    grid-template-columns: 1fr;
  }
  .existing-screen-request {
    grid-template-columns: 1fr;
  }
  .existing-screen-request button {
    grid-column: auto;
    justify-self: stretch;
  }
  .existing-screen-local-models,
  .existing-screen-agent-professor .ai-recommender-models {
    grid-template-columns: 1fr;
  }
  .existing-screen-event {
    grid-template-columns: 1fr;
  }
  .existing-screen-teaching button {
    justify-self: stretch;
  }
  .existing-screen-open {
    display: block;
    margin: 8px 0 0;
  }
}
