/* Human-first visual comfort: calmer hierarchy, legible sizes, clickable error cards, zero sidebar glitches. */

/* 1. Comfortable typography — eliminate eye-straining 8.5px–11px helper text */
#app-shell .field-hint,
#app-shell .form-field .field-hint,
#workspace .field-hint {
  font-size: 13px;
  line-height: 1.65;
  color: #6e6e73;
}
#app-shell .field-error,
#workspace .field-error {
  font-size: 13px;
  line-height: 1.6;
}
#workspace .source-meta,
#workspace .source-origin {
  font-size: 12.5px;
  line-height: 1.6;
  color: #6e6e73;
}
#workspace .source-state {
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
#workspace .page-description {
  font-size: 14.5px;
  line-height: 1.65;
  color: #515154;
  max-width: 68ch;
}

/* 2. Remove bureaucratic visual clutter at the bottom of every page */
#workspace .transfer-scope {
  display: none !important;
}
#workspace .footer-hint {
  font-size: 12.5px;
  color: #6e6e73;
}

/* 3. Fix sidebar dropdown double-arrow & wrapping, and V2 entry clipping */
#app-shell .picker-row select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 40px;
  padding: 0 32px 0 12px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  background-size: 12px 12px !important;
}
#app-shell select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px 12px !important;
  padding-right: 30px !important;
}
#stage-nav {
  padding-top: 4px;
}
#stage-nav .v2-nav-entry {
  margin: 2px 0 12px;
}

/* 4. Calm, actionable guidance card (#workflow-guidance) */
#workflow-guidance {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid #eadbb6 !important;
  border-radius: 14px !important;
  background: #fffbf2 !important;
  color: #4a3b18 !important;
  font-size: 13.5px;
  line-height: 1.6;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
}
#workflow-guidance[data-tone="info"] {
  border-color: #cfe0fc !important;
  background: #f4f8ff !important;
  color: #1e4273 !important;
}
#workflow-guidance > strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
#workflow-guidance .workflow-guidance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
#workflow-guidance .workflow-guidance-list li {
  margin: 0;
}
#workflow-guidance .workflow-guidance-link,
.human-error-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: #1d1d1f;
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
#workflow-guidance .workflow-guidance-link:hover:not(:disabled),
.human-error-jump:hover:not(:disabled) {
  background: #ffffff;
  border-color: rgba(0, 113, 227, 0.35);
  color: #1d1d1f;
  transform: translateY(-1px);
}
.human-action-pill,
#workflow-guidance .workflow-guidance-arrow {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.1);
  color: #0066cc;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
#workflow-guidance .workflow-guidance-more,
.human-error-more {
  padding: 4px 4px 0;
  font-size: 12.5px;
  color: #6e6e73;
}

/* 5. Clickable stage error box styling */
#workspace .collection-feedback {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.65;
}
.human-error-head {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.human-error-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.human-error-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* 6. Softer inline notices (less visual screaming) */
#workspace .source-notice {
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid rgba(154, 91, 0, 0.14);
  background: #fffaf0;
  color: #6e4c18;
  font-size: 13px;
  line-height: 1.6;
}

/* 7. Gentle pulse when clicking an error jumps straight to the target field */
@keyframes humanFocusPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.16); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}
.workflow-focus {
  outline: 2px solid #0071e3 !important;
  outline-offset: 3px;
  border-radius: 10px;
  animation: humanFocusPulse 1.4s ease-out 1;
}
