/* Dev-only Playbook page. Prefix: .pb- */

.pb-page {
  min-height: 100dvh;
  background: #ffffff;
  padding-left: var(--ai-sb-width);
}

@media (max-width: 900px) {
  .pb-page {
    padding-left: 0;
  }
}

.pb-main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

@media (max-width: 720px) {
  .pb-main {
    padding: 64px 16px 72px;
  }
}

.pb-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
}

.pb-kicker,
.pb-eyebrow {
  margin: 0;
  color: #86868b;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
}

.pb-hero h1 {
  margin: 0;
  color: #1d1d1f;
  font-size: 40px;
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -1px;
}

.pb-hero p {
  max-width: 680px;
  margin: 0;
  color: #515154;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

.pb-stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.pb-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.pb-section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 24px;
}

.pb-section-head h2 {
  margin: 0 0 8px;
  color: #1d1d1f;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
}

.pb-section-head p {
  margin: 0;
  color: #86868b;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.pb-surface {
  min-width: 0;
}

@media (max-width: 820px) {
  .pb-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .pb-section-head {
    position: static;
  }
}

.pb-nav-sample {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 0 16px;
  border-radius: 20px;
  background: #f5f5f7;
}

.pb-nav-sample strong {
  display: block;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
}

.pb-nav-sample p,
.pb-card-note,
.pb-modal-body-copy {
  margin: 4px 0 0;
  color: #86868b;
  font-size: 14px;
  line-height: 1.5;
}

.pb-inventory {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pb-inventory-item {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f5f7;
  min-width: 0;
}

.pb-inventory-item:hover {
  background: #f0f0f2;
}

.pb-inventory-item span {
  min-width: 0;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.pb-inventory-item strong {
  color: #86868b;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
}

.pb-nav-dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #1d1d1f;
  flex: 0 0 auto;
}

.pb-mini-logo {
  width: 20px;
  height: 20px;
  border-radius: 12px;
  background: #1d1d1f;
  flex: 0 0 auto;
}

.pb-control-stack,
.pb-upload-stack,
.pb-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.pb-filter-row,
.pb-chip-row,
.pb-button-row,
.pb-modal-trigger-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pb-filter-row .ft-filter-pill + .ft-filter-pill {
  margin-left: 0;
}

.pb-filter-row .ft-filter-pill {
  position: static;
  width: auto;
  min-width: 126px;
}

.pb-seg-button {
  appearance: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.pb-page .ft-seg-item:disabled,
.pb-page .ft-filter-pill:disabled,
.pb-page .bm-card-cta:disabled,
.pb-page .us-confirm-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.pb-page .ft-seg-item:disabled:hover,
.pb-page .ft-filter-pill:disabled:hover,
.pb-page .bm-card-cta:disabled:hover {
  background: transparent;
  color: #86868b;
  box-shadow: none;
}

.pb-page .bm-card-cta:disabled {
  background: #ffffff;
}

.pb-page .us-confirm-btn:disabled:hover {
  opacity: 0.48;
}

.pb-chip-row .t4-chip--funded {
  height: 30px;
}

.pb-button-row .bm-card-cta {
  width: auto;
}

.pb-state-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pb-state-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.pb-state-label {
  padding-top: 10px;
  color: #86868b;
  font-size: 13px;
  line-height: 1.4;
}

.pb-state-controls {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pb-state-controls > button {
  flex: 0 0 auto;
}

.pb-state-controls .bm-card-cta {
  width: auto;
  min-width: 120px;
}

.pb-state-controls .ap-btn {
  min-width: 96px;
}

@media (max-width: 720px) {
  .pb-inventory {
    grid-template-columns: 1fr;
  }

  .pb-state-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pb-state-label {
    padding-top: 0;
  }
}

.pb-is-selected {
  background: #f0f0f2 !important;
  border-color: #d2d2d7 !important;
}

.pb-is-busy {
  gap: 8px;
}

.pb-is-busy::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  animation: pb-spin 0.8s linear infinite;
}

@keyframes pb-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-is-busy::after {
    animation: none;
  }
}

.pb-team-card {
  width: min(100%, 420px);
  max-width: 420px;
  cursor: default;
}

.pb-team-card:hover {
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 14px 44px -10px rgba(0, 0, 0, 0.10);
  transform: none;
}

.pb-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d1d1f;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  box-shadow: inset 0 0 0 0.5px #efefef;
}

.pb-sample-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}

.pb-sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pb-team-static {
  pointer-events: none;
}

.pb-team-static:hover {
  opacity: 1;
}

.pb-list-sample {
  width: 100%;
}

.pb-upload-stack {
  width: 100%;
}

.pb-upload-stack .us-upload-card,
.pb-upload-stack .us-cv-row {
  width: 100%;
  max-width: 560px;
}

.pb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  color: #1d1d1f;
  font-size: 14px;
}

.pb-field span {
  color: #86868b;
}

.pb-field input,
.pb-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #1d1d1f;
  font: inherit;
  line-height: 1.5;
  padding: 11px 14px;
  outline: none;
}

.pb-field textarea {
  min-height: 96px;
  resize: vertical;
}

.pb-field input:focus,
.pb-field textarea:focus {
  border-color: #1d1d1f;
}

.pb-field input:disabled,
.pb-field textarea:disabled {
  cursor: not-allowed;
  color: #a1a1a6;
  background: #f5f5f7;
}

.pb-form-stack .us-modal-search {
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
}

.pb-modal-preview {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.pb-modal-card {
  width: 100%;
  max-width: 560px;
  height: auto;
  min-height: 320px;
  animation: none;
}

.pb-modal-card .ap-modal-body {
  min-height: 96px;
}

.pb-live-modal {
  max-height: calc(100dvh - 32px);
}

.pb-modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pb-modal-list {
  margin-top: 16px;
}

.pb-modal-list .jp-job-row {
  padding-left: 16px;
  padding-right: 16px;
}

.pb-page .tp-root {
  z-index: 220;
}

.pb-empty-sample {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pb-empty-sample .jp-empty {
  padding: 64px 24px;
  border-radius: 20px;
  background: #f5f5f7;
}

.pb-empty-sample .ft-foot {
  padding: 0;
}

.pb-backlink {
  margin-top: 72px;
}

.pb-backlink a {
  color: #1d1d1f;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
