/* Client V1 uses the same blue and white tokens as the main client workspace. */
.v1-root {
  color: var(--text, #303841);
  min-width: 0;
}
.v1-root h2 {
  color: #16365a;
  font-size: 24px;
}
.v1-root h3 {
  color: #1b3c61;
  font-size: 16px;
}
.v1-root h4 {
  color: #294665;
  font-size: 14px;
}
.v1-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.v1-heading > div:first-child {
  flex: 1 1 240px;
  min-width: 0;
}
.v1-heading p {
  color: var(--muted, #64748b);
  font-size: 13px;
  margin: 7px 0 0;
}
.v1-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.v1-link {
  color: var(--blue, #1677ff);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.v1-button {
  border: 1px solid #bcd8ff;
  border-radius: 8px;
  color: #146bdb;
  background: #fff;
  line-height: 1.4;
  min-height: 42px;
  padding: 10px 14px;
}
.v1-button:hover {
  background: #f0f7ff;
  border-color: var(--blue, #1677ff);
}
.v1-primary {
  background: #126fea;
  border-color: #126fea;
  color: #fff;
}
.v1-primary:hover {
  background: var(--blue-hover, #0864e7);
  color: #fff;
}
.v1-root :focus-visible {
  outline: 3px solid #6eb1ff;
  outline-offset: 3px;
}
.v1-button:disabled,
.v1-form fieldset:disabled {
  cursor: wait;
  opacity: .65;
}
.v1-small {
  font-size: 12px;
  min-height: 36px;
  padding: 7px 12px;
}
.v1-panel {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dce7f4);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow, 0 4px 20px rgb(54 103 167 / 4%));
  margin-bottom: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 22px;
}
.v1-panel > .v1-heading {
  margin-bottom: 12px;
}
.v1-muted {
  color: var(--muted, #64748b);
  font-size: 13px;
  line-height: 1.65;
}
.v1-prewrap {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.v1-feedback:empty {
  display: none;
}
.v1-feedback,
.v1-callout {
  background: #f0f7ff;
  border: 1px solid #cfe3fc;
  border-radius: 9px;
  color: #315d8a;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 18px;
  padding: 12px 16px;
}
.v1-error,
.v1-form-error {
  color: #a42e37;
}
.v1-error {
  background: #fff4f4;
  border-color: #f1c5ca;
}
.v1-form-error {
  font-size: 13px;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}
.v1-form-error:empty {
  margin: 0;
}
.v1-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.v1-toolbar .v1-field {
  flex: 0 1 220px;
  margin: 0;
}
.v1-toolbar .v1-search {
  flex: 1 1 260px;
}
.v1-field {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  min-width: 0;
}
.v1-field > span {
  color: #526b86;
  display: block;
  line-height: 1.5;
}
.v1-field input,
.v1-field select,
.v1-field textarea {
  border: 1px solid #c9dbee;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 400;
  margin: 6px 0 0;
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}
.v1-field textarea {
  min-height: 104px;
}
.v1-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}
.v1-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.v1-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}
.v1-form + .v1-form {
  border-top: 1px solid var(--line, #dce7f4);
  margin-top: 20px;
  padding-top: 20px;
}
.v1-sr-only {
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.v1-board {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-auto-columns: minmax(240px, 1fr);
  grid-auto-flow: column;
  margin: 0 0 20px;
  overflow-x: auto;
  padding: 3px 3px 16px;
  scroll-snap-type: x proximity;
}
.v1-column {
  background: #f4f8fe;
  border: 1px solid #dce8f6;
  border-radius: 12px;
  min-width: 0;
  padding: 12px;
  scroll-snap-align: start;
}
.v1-column-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.v1-column-title h3 {
  font-size: 13px;
}
.v1-count {
  align-items: center;
  background: #e2edfc;
  border-radius: 6px;
  color: #3b6799;
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  min-height: 24px;
  min-width: 26px;
  padding: 2px 6px;
}
.v1-column-empty {
  color: #7588a0;
  font-size: 12px;
  line-height: 1.6;
  min-height: 72px;
  padding: 10px 2px;
}
.v1-deal {
  background: #fff;
  border: 1px solid #d7e5f6;
  border-radius: 9px;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  padding: 15px;
}
.v1-deal:last-child {
  margin-bottom: 0;
}
.v1-need {
  color: #5b718d;
  font-size: 12px;
  line-height: 1.55;
  margin: 7px 0 12px;
}
.v1-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.v1-badge {
  background: #eaf3ff;
  border-radius: 6px;
  color: #266fc4;
  display: inline-flex;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 4px 8px;
}
.v1-success {
  background: #e5f5eb;
  color: #2d7951;
}
.v1-warning {
  background: #fff0d4;
  color: #94600f;
}
.v1-next {
  display: grid;
  font-size: 12px;
  gap: 3px;
  line-height: 1.6;
  margin: 16px 0 10px;
}
.v1-next strong {
  color: #73859b;
  font-size: 10px;
  font-weight: 600;
}
.v1-meta {
  color: #7588a0;
  font-size: 11px;
  line-height: 1.7;
  margin: 8px 0 14px;
}
.v1-deal > .v1-button {
  font-size: 12px;
  padding: 8px 12px;
  width: 100%;
}
.v1-deal .v1-form {
  border-top: 1px solid #e8eff8;
  margin-top: 12px;
  padding-top: 12px;
}
.v1-deal .v1-field select {
  font-size: 12px;
  min-height: 36px;
  padding: 8px;
}
.v1-deal .v1-small {
  margin-top: 8px;
  width: 100%;
}
.v1-journey-summary {
  border-left: 3px solid var(--blue, #1677ff);
}
.v1-journey-board .v1-column {
  border-top: 3px solid #9bc4fa;
}
.v1-journey-card .v1-next {
  min-height: 76px;
}
.v1-journey-actions {
  border-top: 1px solid #e8eff8;
  justify-content: space-between;
  padding-top: 12px;
}
.v1-journey-actions .v1-button {
  font-size: 12px;
  min-height: 36px;
  padding: 8px 12px;
}
.v1-journey-detail {
  background: #f5f9ff;
  border: 1px solid #dce8f6;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 18px;
}
.v1-journey-evidence {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.v1-journey-evidence > div {
  border-top: 1px solid #dce8f6;
  padding-top: 14px;
}
.v1-journey-evidence p {
  font-size: 13px;
  line-height: 1.6;
  margin: 7px 0;
}
.v1-sales-editor {
  border: 1px solid var(--line, #dce7f4);
  border-radius: 9px;
  margin-bottom: 20px;
  padding: 16px;
}
.v1-sales-editor summary {
  color: #315d8a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.v1-sales-editor[open] summary {
  margin-bottom: 16px;
}
.v1-journey-table {
  min-width: 900px;
}
.v1-journey-table .v1-actions {
  align-items: flex-start;
  flex-direction: column;
}
.v1-section-title {
  margin-top: 24px;
}
.v1-timeline {
  border-left: 2px solid #dceaff;
  list-style: none;
  margin: 16px 0 0 4px;
  padding: 0 0 0 18px;
}
.v1-timeline li {
  margin-bottom: 16px;
}
.v1-timeline p {
  font-size: 13px;
  margin: 0 0 4px;
  white-space: pre-wrap;
}
.v1-catalog {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.v1-product .v1-heading {
  align-items: start;
}
.v1-price {
  color: #126fea;
  font-size: 24px;
  font-weight: 700;
  margin: 16px 0 6px;
}
.v1-publish {
  align-items: center;
  border-top: 1px solid var(--line, #dce7f4);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
}
.v1-publish p {
  margin-bottom: 0;
}
.v1-code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}
.v1-table-wrap {
  overflow-x: auto;
  padding: 0;
}
.v1-table {
  min-width: 500px;
  width: 100%;
}
.v1-table tbody th {
  color: #294665;
  font-size: 13px;
}
.v1-notifications,
.v1-connections,
.v1-ai-pages {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.v1-notification,
.v1-connections li {
  align-items: start;
  border-top: 1px solid #e5edf6;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 0;
}
.v1-notification > div:first-child,
.v1-connections li > div:first-child {
  flex: 1 1 240px;
  min-width: 0;
}
.v1-notification:first-child,
.v1-connections li:first-child {
  border-top: 0;
}
.v1-notification p {
  font-size: 13px;
  margin: 7px 0;
}
.v1-notification .v1-button {
  font-size: 12px;
}
.v1-unread h4::before {
  background: var(--blue, #1677ff);
  border-radius: 50%;
  content: '';
  display: inline-block;
  height: 7px;
  margin-right: 8px;
  vertical-align: middle;
  width: 7px;
}
.v1-ai-pages li {
  border-top: 1px solid #e5edf6;
  padding: 14px 0;
}
.v1-ai-pages li:first-child {
  border-top: 0;
}
.v1-empty {
  background: #f8fbff;
  border: 1px dashed #c9def7;
  border-radius: 12px;
  color: #71869e;
  padding: 42px 24px;
  text-align: center;
}
.v1-empty p {
  font-size: 13px;
  margin: 10px auto 0;
  max-width: 480px;
}
.v1-loading {
  align-items: center;
  color: #637b97;
  display: flex;
  gap: 12px;
  justify-content: center;
  min-height: 180px;
}
.v1-spinner {
  animation: v1-spin .8s linear infinite;
  border: 2px solid #d6e8ff;
  border-radius: 50%;
  border-top-color: var(--blue, #1677ff);
  height: 20px;
  width: 20px;
}
@keyframes v1-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .v1-heading {
    align-items: flex-start;
  }
  .v1-heading > .v1-actions {
    width: 100%;
  }
  .v1-root h2 {
    font-size: 21px;
  }
  .v1-panel {
    padding: 18px;
  }
  .v1-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .v1-journey-evidence {
    grid-template-columns: minmax(0, 1fr);
  }
  .v1-toolbar .v1-field,
  .v1-toolbar .v1-search {
    flex: 1 1 100%;
  }
  .v1-board {
    grid-auto-columns: minmax(248px, 84vw);
  }
  .v1-field input,
  .v1-field select,
  .v1-field textarea {
    font-size: 16px;
  }
  .v1-publish > .v1-button,
  .v1-form-actions > .v1-button {
    width: 100%;
  }
  .v1-form-actions {
    width: 100%;
  }
  .v1-table-wrap {
    padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v1-spinner {
    animation: none;
  }
}

.v1-log {
 background: #f4f8ff;
 border: 1px solid #d7e6fa;
 border-radius: 12px;
 padding: 20px;
 max-height: 540px;
 overflow: auto;
 white-space: pre-wrap;
 overflow-wrap: anywhere;
 font-size: 13px;
}
