.intake {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-wrap: anywhere;
}
.intake *,
.intake *::before,
.intake *::after {
  box-sizing: border-box;
}
.intake button,
.intake input:not([type="checkbox"]),
.intake select {
  min-height: 48px;
  max-width: 100%;
}
.intake textarea,
.intake select,
.intake input:not([type="checkbox"]) {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid #9ba4af;
  border-radius: 4px;
}
.intake button {
  padding: 10px 14px;
  white-space: normal;
  cursor: pointer;
}
.intake button:disabled {
  cursor: default;
}
.intake [hidden] {
  display: none !important;
}
.intake-mic {
  min-height: 64px !important;
  font-size: 18px;
  font-weight: 700;
}
.intake-notice {
  padding: 10px;
  background: #fff1cd;
  color: #5b4100;
}
.intake-origin,
.intake small {
  color: #53606e;
}
.intake-context {
  display: flex;
  flex-direction: column;
}
.intake-actions,
.intake-unit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.intake-unit input {
  flex: 1 1 85px;
  min-width: 0;
}
.intake-line,
.intake-new-customer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid #c7cfd8;
  border-radius: 4px;
  margin: 12px 0;
}
.intake input[type="checkbox"] {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 6px;
}
.intake label {
  display: block;
  line-height: 1.6;
}
.intake-source pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  max-height: 280px;
  overflow: auto;
}
.intake-source summary {
  padding: 12px 0;
  cursor: pointer;
}
.intake-matches,
.intake [data-intake-list] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.intake-success {
  background: #e8f5e9;
  padding: 10px;
}
.guide-dialog.intake-active {
  z-index: 100;
  background: #fff;
  position: fixed;
  top: 66px;
  bottom: 10px;
  right: 12px;
  left: auto;
  margin: 0;
  width: min(450px, calc(100vw - 24px));
  max-height: calc(100dvh - 76px);
  overflow: auto;
}
.guide-dialog.intake-active .guide-header button {
  min-height: 48px;
}
@media (max-width: 600px) {
  .guide-dialog.intake-active {
    top: 8px;
    bottom: 8px;
    right: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .intake {
    padding: 12px;
  }
  .intake-actions > * {
    flex: 1 1 100px;
  }
  .intake-unit {
    flex-direction: column;
  }
  .intake-unit input {
    flex: 0 0 auto;
  }
}

.intake-ro-dialog {
  position: fixed;
  inset: 12px 12px auto auto;
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  margin: 0;
  border: 1px solid #9ba4af;
  border-radius: 8px;
  padding: 12px;
  z-index: 1000;
}
.intake-ro-dialog > button { min-height: 48px; padding: 10px; }
