/* Fieldwork → Bot workspace. Tokens scoped here so other pages stay unchanged. */

.is-fieldwork-bot-page {
  --fw-bot-page: #10100f;
  --fw-bot-shell: #121211;
  --fw-bot-card: #191917;
  --fw-bot-inset: #20201c;
  --fw-bot-border: #36332a;
  --fw-bot-gold: #c7aa6c;
  --fw-bot-text: #f3f0e9;
  --fw-bot-muted: #b0aea4;
  --fw-bot-active: rgba(199, 170, 108, 0.1);
  --fw-bot-hover: rgba(199, 170, 108, 0.07);
  --fw-bot-gold-border: rgba(199, 170, 108, 0.36);
  --fw-bot-radius: 10px;
  font-family: Inter, "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--fw-bot-text);
}

.is-fieldwork-bot-page .oa-page,
.oa-page.is-fieldwork-bot-page {
  background: var(--fw-bot-page);
}

.is-fieldwork-bot-page .oa-command-shell.is-fieldwork-bot-shell {
  padding: 20px 24px 32px;
}

.is-fieldwork-bot-page .oa-command {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 22vw, 360px);
  gap: 20px;
  align-items: stretch;
}

.is-fieldwork-bot-page .oa-command.is-sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.is-fieldwork-bot-page .oa-engagement-sidebar {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-width: none;
  overflow: hidden;
  border: 1px solid var(--fw-bot-border);
  background: var(--fw-bot-shell);
  border-radius: var(--fw-bot-radius);
}

.is-fieldwork-bot-page .oa-engagement-sidebar .oa-sidebar-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.is-fieldwork-bot-page .oa-wp-body .oa-fw-bot-workspace select:not([disabled]),
.is-fieldwork-bot-page .oa-wp-body .oa-fw-bot-workspace textarea:not([readonly]),
.is-fieldwork-bot-page .oa-wp-body .oa-fw-bot-workspace input:not([disabled]):not([type="hidden"]),
.is-fieldwork-bot-page .oa-wp-body .oa-fw-bot-workspace button:not([disabled]) {
  pointer-events: auto;
  opacity: 1;
}

.oa-fw-bot-workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 920px;
}

.oa-fw-bot-step-head p {
  margin: 0 0 4px;
  color: var(--fw-bot-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.oa-fw-bot-step-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.oa-fw-bot-notice,
.oa-fw-bot-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--fw-bot-gold-border);
  background: var(--fw-bot-active);
  color: var(--fw-bot-text);
}

.oa-fw-bot-error {
  border-color: #8a4d4d;
  background: rgba(138, 77, 77, 0.16);
}

.oa-fw-bot-card {
  padding: 20px;
  border: 1px solid var(--fw-bot-border);
  border-radius: var(--fw-bot-radius);
  background:
    radial-gradient(ellipse at right top, rgba(199, 170, 108, 0.1) 0%, rgba(199, 170, 108, 0.03) 42%, transparent 72%),
    var(--fw-bot-card);
}

.oa-fw-bot-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.oa-fw-bot-symbol {
  color: var(--fw-bot-gold);
}

.oa-fw-bot-card-head h3,
.oa-fw-bot-preview h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.oa-fw-bot-card-head p,
.oa-fw-bot-preview p,
.oa-fw-bot-empty,
.oa-fw-bot-dest,
.oa-fw-bot-signoff {
  margin: 0;
  color: var(--fw-bot-muted);
  font-size: 14px;
  line-height: 1.5;
}

.oa-fw-bot-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.oa-fw-bot-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--fw-bot-muted);
  font-size: 13px;
}

.oa-fw-bot-apply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.oa-fw-bot-field select,
.oa-fw-bot-field textarea,
.oa-fw-bot-modify textarea,
.oa-fw-bot-modify input {
  width: 100%;
  border: 1px solid var(--fw-bot-border);
  border-radius: 8px;
  background: var(--fw-bot-inset);
  color: var(--fw-bot-text);
  padding: 10px 12px;
  font: inherit;
}

.oa-fw-bot-field select {
  appearance: auto;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.oa-fw-bot-field select:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.oa-fw-bot-task {
  position: relative;
}

.oa-fw-bot-task.is-locked textarea {
  padding-left: 36px;
}

.oa-fw-bot-lock {
  position: absolute;
  left: 10px;
  top: 12px;
  color: var(--fw-bot-gold);
}

.oa-fw-bot-dropzone {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--fw-bot-gold-border);
  border-radius: 8px;
  background: transparent;
  color: var(--fw-bot-muted);
  cursor: pointer;
}

.oa-fw-bot-dropzone:hover:not(:disabled) {
  background: var(--fw-bot-hover);
  color: var(--fw-bot-text);
}

.oa-fw-bot-attach-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.oa-fw-bot-attach-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--fw-bot-text);
  font-size: 13px;
}

.oa-fw-bot-rail-copy,
.oa-fw-bot-cta-help {
  margin: 0 0 12px;
  color: var(--fw-bot-muted);
  font-size: 13px;
  line-height: 1.45;
}

.oa-fw-bot-cta-help {
  text-align: center;
}

.oa-fw-bot-cta {
  display: flex;
  justify-content: center;
}

.oa-fw-bot-cta.is-split,
.oa-fw-bot-review-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.oa-fw-bot-progress {
  margin-top: 16px;
}

.oa-fw-bot-progress p {
  margin: 0 0 8px;
  color: var(--fw-bot-muted);
}

.oa-fw-bot-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #2a2823;
  overflow: hidden;
}

.oa-fw-bot-progress-bar {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--fw-bot-gold);
}

.oa-fw-bot-progress-bar.is-running {
  animation: oa-fw-bot-progress 1.2s ease-in-out infinite;
}

@keyframes oa-fw-bot-progress {
  0% { transform: translateX(-40%); }
  100% { transform: translateX(180%); }
}

.oa-fw-bot-queue-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.oa-fw-bot-queue-tab {
  border: 1px solid var(--fw-bot-border);
  background: transparent;
  color: var(--fw-bot-muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.oa-fw-bot-queue-tab.is-active {
  color: var(--fw-bot-gold);
  border-color: var(--fw-bot-gold-border);
  background: var(--fw-bot-active);
}

.oa-fw-bot-modify {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}

.oa-fw-bot-success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--fw-bot-gold-border);
  background: var(--fw-bot-active);
  color: var(--fw-bot-text);
}

.oa-fw-bot-publish-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--fw-bot-muted);
  font-size: 13px;
}

.oa-sidebar-panel--fw-bot {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.oa-fw-bot-lifecycle {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oa-fw-bot-lifecycle li {
  display: flex;
  gap: 10px;
  color: var(--fw-bot-muted);
}

.oa-fw-bot-lifecycle li.is-active {
  color: var(--fw-bot-gold);
}

.oa-fw-bot-lifecycle li.is-complete {
  color: var(--fw-bot-text);
}

.oa-fw-bot-step-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
}

.oa-fw-bot-lifecycle strong,
.oa-fw-bot-lifecycle small {
  display: block;
}

.oa-fw-bot-lifecycle small {
  font-size: 12px;
  color: var(--fw-bot-muted);
}

.oa-fw-bot-passes {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.oa-fw-bot-passes li {
  flex: 1;
  border: 1px solid var(--fw-bot-border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--fw-bot-muted);
  font-size: 13px;
}

.oa-fw-bot-passes li.is-active {
  color: var(--fw-bot-gold);
  border-color: var(--fw-bot-gold-border);
  background: var(--fw-bot-active);
}

.oa-fw-bot-passes li.is-done {
  color: var(--fw-bot-text);
}

.oa-fw-bot-passes small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--fw-bot-muted);
}

.oa-fw-bot-quality {
  margin: 0 0 10px;
  color: var(--fw-bot-muted);
  font-size: 13px;
}

.oa-fw-bot-quality.is-reviewed {
  color: var(--fw-bot-gold);
}

.oa-fw-bot-review-block {
  margin: 14px 0;
}

.oa-fw-bot-review-block h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.oa-fw-bot-residuals,
.oa-fw-bot-cites {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.oa-fw-bot-residuals li,
.oa-fw-bot-cites li {
  padding: 8px 10px;
  border: 1px solid var(--fw-bot-border);
  border-radius: 8px;
  background: var(--fw-bot-inset);
}

.oa-fw-bot-residuals li.is-blocker,
.oa-fw-bot-residuals li.is-blocking {
  border-color: #8a3d3d;
}

.oa-fw-bot-residuals strong,
.oa-fw-bot-residuals span,
.oa-fw-bot-residuals p,
.oa-fw-bot-residuals small {
  display: block;
}

.oa-fw-bot-residuals p {
  margin: 4px 0 0;
}

.oa-fw-bot-ack {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  color: var(--fw-bot-text);
  font-size: 13px;
}

@media (max-width: 820px) {
  .oa-fw-bot-apply-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .oa-fw-bot-passes {
    flex-direction: column;
  }
}
