/* Keep the board's primary actions visible without repeating project metadata. */
.topbar {
  height: 68px;
  gap: 14px;
  padding: 0 34px;
}

.search {
  position: relative;
  max-width: 560px;
  height: 42px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.search:focus-within {
  border-color: #bdb2ec;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(115, 87, 234, .1);
}

.search input { width: 100%; }

.clear-search {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #e8e7ed;
  color: #676572;
  font-size: 18px;
  line-height: 1;
}

.clear-search:hover { background: #dedce5; color: #34313d; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-actions > * {
  min-height: 40px;
  white-space: nowrap;
}

.topbar-actions .project-link { gap: 7px; }

.topbar-actions .codex-btn {
  gap: 7px;
  margin-left: 0;
}

.topbar-actions .codex-btn span { margin: 0; }

.workspace { padding-top: 0; }

.workspace > .board { padding-top: 26px; }

.topbar button:focus-visible,
.topbar a:focus-visible,
.topbar input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.search input:focus-visible { outline: 0; }

@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .topbar-actions .project-link { padding-inline: 12px; }
  .topbar-actions .project-link .action-label { display: none; }
}

@media (max-width: 680px) {
  .topbar {
    height: 64px;
    gap: 8px;
    padding: 0 12px;
  }

  .search { height: 40px; min-width: 0; }
  .search > span { display: none; }
  .search input { min-width: 0; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .project-link { display: none; }
  .topbar-actions > button { min-width: 40px; padding: 8px 10px; }
  .topbar-actions .action-label { display: none; }
  .workspace { padding-top: 0; }
}
