.automation-section {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: clamp(56px, 7vw, 104px) var(--gutter, 32px);
    background: #fff;
    color: #111;
}

.automation-project-demo > .wrap {
    max-width: 1240px;
    padding: 0;
}

.automation-section + .automation-section {
    padding-top: clamp(40px, 5.5vw, 80px);
}

.automation-section-heading,
.automation-section > .automation-app,
.automation-section-caption {
    max-width: 1240px;
    margin-right: auto;
    margin-left: auto;
}

.automation-section-heading {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

.automation-section-heading h2 {
    max-width: none;
    margin: 0;
    font-size: clamp(36px, 4.2vw, 66px);
    font-weight: 500;
    line-height: 1.09;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.automation-section-heading p {
    max-width: 38ch;
    padding-top: 7px;
    font-size: clamp(17px, 1.5vw, 21px);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.025em;
}

.automation-section-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px 40px;
    align-items: baseline;
    padding-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.automation-section-caption > a {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    border-bottom: 1px solid #777;
}

.automation-app {
    --automation-ink: #111;
    --automation-muted: #64666b;
    --automation-line: #d8dade;
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #cdd0d5;
    border-radius: 8px;
    background: #fff;
    color: var(--automation-ink);
    box-shadow: none;
    font:
        500 15px/1.5 Manrope,
        Arial,
        sans-serif;
    -webkit-text-size-adjust: 100%;
}

.automation-app [hidden] {
    display: none !important;
}

.automation-app *,
.automation-app *::before,
.automation-app *::after {
    box-sizing: border-box;
}

.automation-app h3,
.automation-app h4,
.automation-app h5,
.automation-app p,
.automation-app ol {
    margin: 0;
}

.automation-app h3,
.automation-app h4,
.automation-app h5 {
    color: #111;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.automation-app button,
.automation-app input,
.automation-app a {
    -webkit-tap-highlight-color: transparent;
}

.automation-app button,
.automation-app input {
    margin: 0;
    border-radius: 0;
    color: #111;
    font: inherit;
}

.automation-app button:focus-visible,
.automation-app a:focus-visible,
.automation-app input:focus-visible,
.automation-section-caption a:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.automation-app button:disabled {
    cursor: wait;
}

.automation-app button[aria-disabled='true'] {
    cursor: wait;
}

.automation-icon {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.automation-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.automation-app .automation-only-js,
.automation-mobile-text {
    display: none;
}

.automation-app:not(.is-interactive) .automation-only-js {
    display: none !important;
}

.automation-app.is-interactive .automation-only-js {
    display: flex;
}

.automation-app.is-interactive .automation-fallback-label {
    display: none;
}

.automation-toolbar {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 66px;
    padding: 0 24px;
    border-bottom: 1px solid var(--automation-line);
    background: #fff;
}

.automation-toolbar h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    font-size: 23px;
    line-height: 1.2;
}

.automation-toolbar h3 > .automation-icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.7;
}

.automation-toolbar__meta {
    margin-left: auto;
    color: var(--automation-muted);
    font-size: 12px;
    white-space: nowrap;
}

.ocr-tabs {
    gap: 14px;
    align-self: stretch;
    margin-left: 8px;
}

.ocr-tabs button {
    position: relative;
    min-width: 88px;
    min-height: 44px;
    padding: 12px 10px;
    border: 0;
    background: transparent;
    color: #5b5e64;
    white-space: nowrap;
    transition: color 160ms ease;
}

.ocr-tabs button::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #111;
    content: '';
    transform: scaleX(0);
    transition: transform 220ms ease;
}

.ocr-tabs button[aria-selected='true'] {
    color: #111;
    font-weight: 600;
}

.ocr-tabs button[aria-selected='true']::after {
    transform: scaleX(1);
}

.ocr-stepper {
    list-style: none;
    justify-content: space-around;
    gap: 0;
    padding: 20px 28px 16px;
    border-bottom: 1px solid var(--automation-line);
}

.ocr-stepper li {
    position: relative;
    display: flex;
    width: 25%;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    color: #71747a;
    font-size: 12px;
}

.ocr-stepper li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 1px;
    background: var(--automation-line);
    content: '';
}

.ocr-stepper__number {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid #c5c8cd;
    border-radius: 50%;
    background: #f4f4f5;
    color: #6c6f75;
    font-size: 13px;
    transition:
        background 220ms ease,
        color 220ms ease,
        border-color 220ms ease;
}

.ocr-stepper li[aria-current='step'],
.ocr-stepper li.is-active {
    color: #111;
}

.ocr-stepper li[aria-current='step'] .ocr-stepper__number,
.ocr-stepper li.is-active .ocr-stepper__number {
    border-color: #111;
    background: #111;
    color: #fff;
}

.ocr-stepper li.is-complete .ocr-stepper__number {
    border-color: #111;
    background: #fff;
    color: #111;
}

.ocr-stepper li.is-complete .ocr-stepper__number::before {
    position: absolute;
    width: 10px;
    height: 6px;
    border-bottom: 1.5px solid #111;
    border-left: 1.5px solid #111;
    background: #fff;
    content: '';
    transform: translateY(-2px) rotate(-45deg);
}

.ocr-workspace {
    position: relative;
    display: grid;
    grid-template-columns: 43% minmax(0, 57%);
    align-items: stretch;
    min-height: 440px;
}

.ocr-original,
.ocr-results {
    position: relative;
    min-width: 0;
    padding: 22px 24px;
}

.ocr-original {
    border-right: 1px solid var(--automation-line);
}

.automation-panel-heading {
    margin-bottom: 16px;
}

.automation-panel-heading h4 {
    font-size: 18px;
    line-height: 1.3;
}

.automation-panel-heading p {
    margin-top: 3px;
    color: var(--automation-muted);
    font-size: 12px;
}

.ocr-source-canvas {
    position: relative;
    min-height: 354px;
    overflow: hidden;
    padding: 16px;
    border-radius: 4px;
    background: #f1f1f2;
}

.ocr-source-canvas [data-doc-preview] {
    position: relative;
    z-index: 1;
}

.doc-paper {
    position: relative;
    min-height: 322px;
    padding: 22px 20px 18px;
    border: 1px solid #e0e1e3;
    background: #fff;
    color: #222;
    font-size: 12px;
    line-height: 1.45;
}

.doc-paper__header,
.doc-paper__meta,
.doc-paper__footer,
.doc-paper__total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.doc-paper__brand {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.doc-paper__heading,
.doc-paper__title {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    text-align: right;
}

.doc-paper__header > div:last-child {
    text-align: right;
}

.doc-paper__meta {
    margin-top: 28px;
    margin-bottom: 28px;
}

.doc-paper__meta > :last-child {
    text-align: right;
}

.doc-paper__meta strong,
.doc-paper__meta b {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.doc-paper__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
}

.doc-paper__table th,
.doc-paper__table td {
    padding: 8px 2px;
    border-bottom: 1px solid #bfc1c4;
    font-weight: 500;
}

.doc-paper__table th {
    font-size: 10px;
    white-space: nowrap;
}

.doc-paper__table th:last-child,
.doc-paper__table td:last-child {
    text-align: right;
}

.doc-paper__total {
    justify-content: flex-end;
    align-items: baseline;
    gap: 24px;
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
}

.doc-paper__footer {
    align-items: flex-end;
    margin-top: 26px;
    color: #64666b;
    font-size: 9px;
}

.doc-paper__totals {
    width: 65%;
    margin: 13px 0 0 auto;
    font-size: 10px;
}

.doc-paper__totals > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 3px 0;
}

.doc-paper__totals dt,
.doc-paper__totals dd {
    margin: 0;
}

.doc-paper__totals .doc-paper__total {
    margin-top: 5px;
    padding-top: 8px;
    border-top: 1px solid #c7c9cd;
    font-size: 15px;
}

.doc-paper__due {
    display: inline-flex;
    gap: 4px;
    flex-direction: column;
    margin-top: 20px;
    padding: 7px 10px;
    border: 1px solid #c2c5cb;
    border-radius: 2px;
    font-size: 10px;
}

.doc-paper__due strong {
    font-size: 12px;
    font-weight: 600;
}

.doc-paper__intro {
    margin-bottom: 10px !important;
    color: #666970;
    font-size: 10px;
}

.doc-paper__notice {
    margin-top: 16px !important;
    color: #666970;
    font-size: 9px;
    line-height: 1.6;
}

.doc-paper [data-doc-region] {
    position: relative;
    border-radius: 2px;
    outline: 1px solid transparent;
    outline-offset: 3px;
    transition:
        background 180ms ease,
        outline-color 180ms ease;
}

.doc-paper__table [data-doc-region] {
    font-size: 12px;
}

.doc-paper [data-doc-region].is-selected,
.doc-paper [data-doc-region].is-reading {
    outline-color: #777;
    background: #e8e8eb;
    color: #111;
}

.ocr-scan-line {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 12px;
    left: 12px;
    height: 2px;
    background: #111;
    opacity: 0;
    pointer-events: none;
}

.ocr-scan-line::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 52px;
    background: linear-gradient(transparent, rgb(17 17 17 / 9%));
    content: '';
}

.ocr-app[data-state='reading'] .ocr-scan-line,
.ocr-app[data-state='extracting'] .ocr-scan-line {
    animation: automation-scan 1400ms cubic-bezier(0.35, 0, 0.25, 1) both;
}

.ocr-original-link {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 36px;
    margin: 4px 0 -10px;
    color: #64666b;
    font-size: 11px;
}

.ocr-original-link .automation-icon {
    width: 13px;
    height: 13px;
}

.ocr-table-wrap {
    position: relative;
    min-height: 247px;
    border: 1px solid var(--automation-line);
    border-radius: 4px;
    overflow: hidden;
}

.ocr-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
}

.ocr-data-table th,
.ocr-data-table td {
    height: 47px;
    padding: 9px 14px;
    border-right: 1px solid var(--automation-line);
    border-bottom: 1px solid var(--automation-line);
    font-weight: 500;
    vertical-align: middle;
}

.ocr-data-table thead th {
    height: 39px;
    font-size: 12px;
    font-weight: 600;
}

.ocr-data-table th:last-child,
.ocr-data-table td:last-child {
    border-right: 0;
}

.ocr-data-table tbody tr:last-child > * {
    border-bottom: 0;
}

.ocr-data-table tbody td:first-child {
    width: 24%;
    color: #666970;
    font-size: 12px;
}

.ocr-data-table tbody td:last-child {
    color: #111;
}

.ocr-data-table [data-doc-field] {
    display: block;
    width: calc(100% + 28px);
    min-height: 47px;
    margin: -9px -14px;
    padding: 9px 14px;
    border: 0;
    background: transparent;
    color: #44474c;
    text-align: left;
}

.ocr-data-table [data-doc-field]:disabled {
    cursor: default;
}

.ocr-data-row {
    transition:
        background 180ms ease,
        opacity 240ms ease,
        transform 240ms ease;
}

.ocr-app.is-interactive .ocr-data-row:not(.is-visible) {
    opacity: 0;
    transform: translateY(7px);
}

.ocr-data-row.is-selected {
    background: #ededee;
}

.ocr-empty {
    position: absolute;
    z-index: 2;
    inset: 39px 0 0;
    display: flex;
    min-height: 205px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 11px;
    padding: 28px 20px;
    background: #fff;
    text-align: center;
}

.ocr-empty > .automation-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 5px;
    stroke-width: 1.2;
}

.ocr-empty h5 {
    font-size: 17px;
    line-height: 1.4;
}

.ocr-empty p {
    max-width: 32ch;
    color: var(--automation-muted);
    font-size: 12px;
}

.ocr-destinations {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 26px;
    padding-top: 17px;
}

.ocr-destinations::before {
    position: absolute;
    top: 0;
    right: 25%;
    left: 25%;
    height: 12px;
    border-top: 1px solid #bfc1c5;
    border-right: 1px solid #bfc1c5;
    border-left: 1px solid #bfc1c5;
    content: '';
}

.ocr-destinations::after {
    position: absolute;
    top: -12px;
    left: 50%;
    height: 12px;
    border-left: 1px solid #bfc1c5;
    content: '';
}

.ocr-destination {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 92px;
    padding: 5px 14px;
}

.ocr-destination + .ocr-destination {
    border-left: 1px solid var(--automation-line);
}

.ocr-destination > .automation-icon {
    width: 42px;
    height: 48px;
    stroke-width: 1.2;
}

.ocr-destination h5 {
    font-size: 16px;
    line-height: 1.3;
}

.ocr-destination p {
    margin-top: 3px;
    color: var(--automation-muted);
    font-size: 10px;
    line-height: 1.5;
}

.ocr-destination__state {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 22px;
    margin-top: 5px;
    font-size: 10px;
}

.ocr-destination__state .automation-icon {
    width: 16px;
    height: 16px;
    padding: 3px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    stroke-width: 2;
    transition: transform 240ms ease;
}

.ocr-app:not([data-state='complete']) .ocr-destination__state .automation-icon {
    transform: scale(0);
}

.ocr-app[data-state='organizing'] .ocr-destinations::before,
.ocr-app[data-state='organizing'] .ocr-destinations::after {
    border-color: #111;
}

.ocr-app[data-state='organizing'] .ocr-destination {
    animation: automation-destination 600ms ease both;
}

.ocr-app[data-state='organizing'] .ocr-destination:nth-child(2) {
    animation-delay: 120ms;
}

.ocr-register {
    grid-column: 1 / -1;
    margin-top: 12px;
    border-top: 1px solid var(--automation-line);
}

.ocr-register summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 3px;
    color: #55585f;
    font-size: 11px;
    cursor: pointer;
    list-style: none;
}

.ocr-register summary::-webkit-details-marker {
    display: none;
}

.ocr-register summary:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.ocr-register summary .automation-icon {
    width: 15px;
    height: 15px;
    transition: transform 180ms ease;
}

.ocr-register[open] summary .automation-icon {
    transform: rotate(180deg);
}

.ocr-register table {
    width: 100%;
    margin-bottom: 12px;
    border-collapse: collapse;
    font-size: 11px;
    text-align: left;
}

.ocr-register th,
.ocr-register td {
    padding: 9px 7px;
    border-bottom: 1px solid var(--automation-line);
    color: #45474d;
    font-weight: 500;
}

.ocr-register th {
    color: #111;
    font-size: 10px;
}

.ocr-connectors {
    position: absolute;
    z-index: 3;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.ocr-connectors path {
    fill: none;
    stroke: #85878c;
    stroke-width: 1;
}

.automation-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 15px 24px;
    border-top: 1px solid var(--automation-line);
}

.automation-status {
    max-width: 52ch;
    color: var(--automation-muted);
    font-size: 12px;
    line-height: 1.5;
}

.automation-actions__buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 12px;
}

.automation-app .automation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #111;
    border-radius: 5px;
    background: #111;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 180ms ease,
        opacity 180ms ease,
        transform 180ms ease;
}

.automation-app .automation-button:hover {
    background: #303034;
}

.automation-app .automation-button:active {
    transform: translateY(1px);
}

.automation-app .automation-button:disabled,
.automation-app .automation-button[aria-disabled='true'] {
    opacity: 0.55;
}

.automation-button .automation-icon {
    width: 18px;
    height: 18px;
}

.automation-app .automation-reset {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #aeb2b9;
    border-radius: 5px;
    background: #fff;
    color: #33353a;
    font-size: 12px;
    text-underline-offset: 3px;
    transition: background 180ms ease;
}

.automation-app .automation-reset:hover {
    background: #f0f0f2;
}

.automation-app-note {
    padding: 0 24px 13px;
    color: #71747a;
    font-size: 10px;
    line-height: 1.6;
}

.ocr-mobile-status,
.automation-app.is-interactive .ocr-disclosure {
    display: none;
}

.knowledge-toolbar {
    justify-content: space-between;
}

.knowledge-workspace {
    display: grid;
    grid-template-columns: minmax(0, 65%) minmax(0, 35%);
    align-items: stretch;
    min-height: 620px;
}

.knowledge-conversation {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 22px 24px 15px;
}

.knowledge-eyebrow {
    color: #64666b;
    font-size: 10px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.knowledge-thread {
    display: flex;
    min-height: 322px;
    flex: 1;
    flex-direction: column;
    gap: 24px;
    padding: 20px 0 24px;
    overflow-anchor: none;
}

.knowledge-app.is-interactive .knowledge-thread {
    max-height: 440px;
    overflow-y: auto;
    overscroll-behavior: auto;
    scrollbar-width: thin;
    scrollbar-color: #c1c4cb transparent;
}

.knowledge-thread > [data-chat-static] {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.knowledge-welcome {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
    flex: 1;
    padding: 36px 0 26px;
    text-align: left;
}

.knowledge-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
}

.knowledge-avatar .automation-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.6;
}

.knowledge-welcome > .knowledge-avatar {
    width: 42px;
    height: 42px;
    margin-bottom: 19px;
}

.knowledge-welcome h4 {
    margin-bottom: 18px;
    font-size: clamp(32px, 3.5vw, 46px);
    line-height: 1.13;
    letter-spacing: -0.05em;
}

.knowledge-welcome > p {
    max-width: 51ch;
    color: #64666b;
    font-size: 15px;
    line-height: 1.65;
}

.knowledge-message--user {
    max-width: 88%;
    align-self: flex-end;
    padding: 12px 16px;
    border-radius: 14px 14px 3px 14px;
    background: #ededf0;
    color: #25262a;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.knowledge-message--assistant {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.knowledge-message__body {
    min-width: 0;
    flex: 1;
    padding-top: 3px;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.knowledge-message__author {
    display: block;
    margin-bottom: 10px;
    color: #50535a;
    font-size: 11px;
}

.knowledge-message__body > p + p,
.knowledge-message__body > ol,
.knowledge-message__body > ul,
.knowledge-message__body > ol + p,
.knowledge-message__body > ul + p {
    margin-top: 14px;
}

.knowledge-answer-lead,
.knowledge-message__body > p:first-of-type {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.6;
}

.knowledge-message__body ol,
.knowledge-message__body ul {
    padding-left: 20px;
}

.knowledge-message__body li + li {
    margin-top: 5px;
}

.knowledge-message__body .knowledge-citation {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 17px;
    padding: 9px 12px;
    border: 1px solid #b5b9c0;
    border-radius: 5px;
    background: #fff;
    color: #33353a;
    font-size: 12px;
    line-height: 1.5;
    text-align: left;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.knowledge-citation.is-selected,
.knowledge-citation:hover {
    border-color: #555 !important;
    background: #f3f3f5 !important;
}

.knowledge-citation .automation-icon {
    width: 17px;
    height: 17px;
}

.knowledge-citation .automation-icon:last-child {
    width: 13px;
    height: 13px;
    margin-left: 5px;
}

.knowledge-inline-source {
    display: none;
}

.knowledge-composer {
    flex-direction: column;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--automation-line);
}

.knowledge-prompts {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin: 25px 0 0;
}

.knowledge-prompts button {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 65px;
    padding: 16px 8px;
    border: 0;
    border-bottom: 1px solid #d6d8de;
    border-radius: 0;
    background: #fff;
    color: #33353a;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.knowledge-prompts button [data-chat-prompt-label] {
    flex: 1;
}

.knowledge-prompts button > .automation-icon {
    width: 20px;
    height: 20px;
}

.knowledge-prompts button > .automation-icon:last-child {
    width: 18px;
    height: 18px;
    margin-left: auto;
}

.knowledge-app.has-conversation .knowledge-prompts {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 17px;
}

.knowledge-app.has-conversation .knowledge-prompts button {
    width: auto;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #c7cad0;
    border-radius: 5px;
    font-size: 12px;
}

.knowledge-app.has-conversation .knowledge-prompts button > .automation-icon {
    display: none;
}

.knowledge-prompts button:hover {
    border-color: #777;
    background: #f3f3f5;
}

.knowledge-form {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 5px;
    border: 1px solid #b9bdc5;
    border-radius: 6px;
    background: #fff;
    transition: border-color 160ms ease;
}

.knowledge-form:focus-within {
    border-color: #333;
}

.knowledge-form input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 14px;
    line-height: 1.5;
}

.knowledge-form input::placeholder {
    color: #7b7e85;
    opacity: 1;
}

.knowledge-form input:focus-visible {
    outline-offset: -2px;
}

.knowledge-form .knowledge-send {
    display: grid;
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    padding: 10px;
    border: 1px solid #111;
    border-radius: 4px;
    background: #111;
    color: #fff;
    transition: background 160ms ease;
}

.knowledge-send:hover {
    background: #333 !important;
}

.knowledge-send:disabled {
    opacity: 0.5;
}

.knowledge-composer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 6px;
    color: #767981;
    font-size: 10px;
}

.knowledge-composer-meta .automation-reset {
    justify-content: flex-end;
    min-height: 36px;
    padding: 7px 0 7px 10px;
    border: 0;
    background: transparent;
    font-size: 10px;
    text-decoration: underline;
}

.knowledge-source-panel {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 24px 26px;
    border-left: 1px solid var(--automation-line);
    background: #f6f6f7;
}

.knowledge-source-panel__title {
    padding-bottom: 16px;
    border-bottom: 1px solid #d5d7dd;
    font-size: 13px;
    font-weight: 500 !important;
    letter-spacing: -0.01em !important;
}

.knowledge-source-empty {
    min-height: 360px;
    flex: 1;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    padding: 44px 12px;
    text-align: center;
}

.knowledge-source-empty > .automation-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    color: #73767d;
    stroke-width: 1.1;
}

.knowledge-source-empty h5 {
    max-width: 20ch;
    font-size: 22px;
    line-height: 1.4;
}

.knowledge-source-empty p {
    max-width: 28ch;
    margin-top: 14px;
    color: #73767d;
    font-size: 14px;
    line-height: 1.7;
}

.knowledge-source-empty > span {
    margin-top: 30px;
    color: #858890;
    font-size: 10px;
}

.knowledge-source-panel > [data-chat-source-body],
.knowledge-static-source {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.knowledge-source-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.knowledge-source-document {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 27px 0;
    border-bottom: 1px solid #d5d7dd;
}

.knowledge-source-document > .automation-icon {
    width: 37px;
    height: 44px;
    stroke-width: 1.3;
}

.knowledge-source-document h4 {
    font-size: 15px;
    line-height: 1.4;
}

.knowledge-source-document p {
    margin-top: 5px;
    color: #6c6f77;
    font-size: 11px;
    line-height: 1.6;
}

.knowledge-source-excerpt {
    padding: 26px 0 32px;
}

.knowledge-source-excerpt h4 {
    margin-bottom: 15px;
    font-size: 20px;
    line-height: 1.35;
}

.knowledge-source-excerpt p {
    color: #45474e;
    font-size: 15px;
    line-height: 1.9;
}

.knowledge-source-content mark {
    padding: 2px 4px;
    background: #e3e3e7;
    color: #27282d;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.knowledge-source-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 17px;
    border-top: 1px solid #d5d7dd;
    color: #74777f;
    font-size: 9px;
}

.knowledge-source-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    border-bottom: 1px solid #868991;
    color: #33353a;
    font-size: 11px;
}

.knowledge-source-footer .automation-icon {
    width: 12px;
    height: 12px;
}

.knowledge-message--assistant.is-revealing
    .knowledge-message__body
    > :not(.knowledge-message__author),
.knowledge-message__body .is-revealing,
.knowledge-source-content.is-revealing {
    animation: automation-answer 320ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.knowledge-message--assistant.is-revealing .knowledge-message__body > ol,
.knowledge-message--assistant.is-revealing .knowledge-message__body > ul {
    animation-delay: 80ms;
}

.knowledge-message--assistant.is-revealing .knowledge-message__note {
    animation-delay: 150ms;
}

.knowledge-message--assistant.is-revealing .knowledge-citation {
    animation-delay: 210ms;
}

@keyframes automation-scan {
    0% {
        top: 3%;
        opacity: 0;
    }
    12% {
        opacity: 0.75;
    }
    88% {
        opacity: 0.75;
    }
    100% {
        top: 97%;
        opacity: 0;
    }
}

.preview-mode .site-header,
.preview-mode .site-nav,
.preview-mode .header-contact,
.preview-mode .page-intro,
.preview-mode .block,
.preview-mode .contact-section,
.preview-mode .site-footer,
.preview-mode .ai-widget,
.preview-mode #cookie-consent-root,
.preview-mode .demo-section .section-heading,
.preview-mode .demo-section > .wrap > .demo-note,
.preview-mode .skip-link {
    display: none !important;
}

.preview-mode main {
    margin: 0 !important;
}

.preview-mode .automation-project-demo {
    padding: 0;
    background: #fff;
}

.preview-mode .automation-project-demo > .wrap {
    max-width: none;
    padding: 0;
}

.preview-mode .automation-app {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

@keyframes automation-destination {
    50% {
        background: #e9e9ec;
    }
}

@keyframes automation-answer {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .automation-toolbar {
        gap: 18px;
    }

    .ocr-toolbar .automation-toolbar__meta {
        font-size: 10px;
    }

    .ocr-tabs {
        gap: 5px;
        margin-left: 0;
    }

    .ocr-tabs button {
        min-width: 76px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
    }

    .ocr-original,
    .ocr-results {
        padding: 18px;
    }

    .ocr-source-canvas {
        padding: 12px;
    }

    .doc-paper {
        padding: 18px 14px;
        font-size: 11px;
    }

    .doc-paper__brand {
        font-size: 13px;
    }

    .doc-paper__title,
    .doc-paper__heading {
        font-size: 16px;
    }

    .ocr-data-table th,
    .ocr-data-table td {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 13px;
    }

    .ocr-data-table [data-doc-field] {
        width: calc(100% + 20px);
        margin-right: -10px;
        margin-left: -10px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .ocr-destination {
        gap: 10px;
        padding-right: 9px;
        padding-left: 9px;
    }

    .ocr-destination > .automation-icon {
        width: 32px;
        height: 40px;
    }

    .knowledge-conversation,
    .knowledge-source-panel {
        padding-right: 20px;
        padding-left: 20px;
    }

    .knowledge-prompts button {
        padding-right: 6px;
        padding-left: 6px;
        font-size: 14px;
    }
}

@media (max-width: 800px) {
    .automation-section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .automation-section-heading h2 {
        max-width: 19ch;
        font-size: clamp(36px, 5.5vw, 48px);
    }

    .automation-section-heading p {
        max-width: 58ch;
        padding-top: 0;
    }

    .ocr-toolbar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0;
        padding: 0;
    }

    .ocr-toolbar h3 {
        padding: 18px 20px;
        font-size: 21px;
    }

    .ocr-toolbar .automation-toolbar__meta {
        grid-column: 2;
        grid-row: 1;
        padding-right: 20px;
        font-size: 12px;
    }

    .ocr-tabs {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: stretch;
        gap: 0;
        width: 100%;
        border-top: 1px solid var(--automation-line);
        padding: 0 12px;
    }

    .ocr-tabs button {
        min-width: 0;
        min-height: 52px;
        flex: 1;
        padding: 12px 6px;
        font-size: 14px;
    }

    .automation-app .automation-desktop-text {
        display: none;
    }

    .automation-app .automation-mobile-text {
        display: inline;
    }

    .automation-app.is-interactive .ocr-stepper {
        display: none;
    }

    .ocr-mobile-status {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 55px;
        padding: 14px 20px;
        border-bottom: 1px solid var(--automation-line);
        font-size: 12px;
    }

    .ocr-mobile-status > .automation-icon {
        width: 20px;
        height: 20px;
    }

    .automation-app.is-interactive .ocr-disclosure {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 13px;
        padding: 15px 20px;
        border: 0;
        border-bottom: 1px solid var(--automation-line);
        background: #fff;
        text-align: left;
    }

    .ocr-disclosure > .automation-icon:first-child {
        width: 27px;
        height: 31px;
        stroke-width: 1.3;
    }

    .ocr-disclosure > span {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 2px;
        font-size: 12px;
    }

    .ocr-disclosure strong {
        font-size: 13px;
        font-weight: 500;
    }

    .ocr-disclosure > span > span {
        color: #767981;
    }

    .ocr-disclosure > .automation-icon:last-child {
        width: 18px;
        height: 18px;
        transition: transform 180ms ease;
    }

    .ocr-disclosure[aria-expanded='true'] > .automation-icon:last-child {
        transform: rotate(180deg);
    }

    .ocr-workspace {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ocr-app.is-interactive:has([data-doc-disclosure][aria-expanded='false'])
        [data-doc-original] {
        display: none;
    }

    .ocr-original {
        border-right: 0;
        border-bottom: 1px solid var(--automation-line);
    }

    .ocr-original .automation-panel-heading {
        display: none;
    }

    .ocr-source-canvas {
        max-width: 560px;
        margin: 0 auto;
    }

    .doc-paper {
        min-height: 322px;
        padding: 24px;
        font-size: 12px;
    }

    .doc-paper__brand {
        font-size: 17px;
    }

    .doc-paper__title,
    .doc-paper__heading {
        font-size: 22px;
    }

    .doc-paper__table {
        font-size: 11px;
    }

    .doc-paper__table th {
        font-size: 10px;
    }

    .ocr-results {
        padding: 22px 20px 0;
    }

    .ocr-results .automation-panel-heading p {
        display: none;
    }

    .ocr-table-wrap {
        min-height: 335px;
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    .ocr-data-table,
    .ocr-data-table tbody {
        display: block;
        width: 100%;
    }

    .ocr-data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .ocr-data-table tbody tr {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
        grid-template-rows: auto auto;
        min-height: 67px;
        padding: 11px 0;
        border-bottom: 1px solid var(--automation-line);
    }

    .ocr-data-table tbody td,
    .ocr-data-table tbody th {
        display: flex;
        align-items: center;
        height: auto;
        padding: 0 7px;
        border: 0;
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .ocr-data-table tbody td:first-child {
        grid-column: 1;
        grid-row: 1;
        width: auto;
        padding-bottom: 3px;
        color: #7c7f85;
        font-size: 11px;
    }

    .ocr-data-table tbody th {
        grid-column: 1;
        grid-row: 2;
    }

    .ocr-data-table tbody td:last-child {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .ocr-data-table [data-doc-field] {
        width: 100%;
        min-height: 44px;
        margin: -2px -7px;
        padding: 2px 7px;
        color: #333;
        font-size: 13px;
    }

    .ocr-data-table tbody th:has([data-doc-field]:focus-visible) {
        position: relative;
        z-index: 1;
    }

    .ocr-empty {
        inset: 0;
        min-height: 300px;
        padding-right: 8px;
        padding-left: 8px;
    }

    .ocr-empty h5 {
        font-size: 19px;
    }

    .ocr-empty p {
        font-size: 13px;
    }

    .ocr-destinations {
        grid-template-columns: 1fr 1fr;
        margin: 0 -20px;
        padding: 15px 20px;
        border-top: 1px solid var(--automation-line);
    }

    .ocr-destinations::before,
    .ocr-destinations::after {
        display: none;
    }

    .ocr-destination {
        min-height: 95px;
    }

    .ocr-destination > .automation-icon {
        width: 36px;
        height: 42px;
    }

    .ocr-destination h5 {
        font-size: 16px;
    }

    .ocr-destination p,
    .ocr-destination__state {
        font-size: 11px;
    }

    .ocr-connectors {
        display: none;
    }

    .automation-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 14px;
        padding: 18px 20px 12px;
    }

    .automation-actions__buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .automation-app .automation-button {
        flex: 1;
        font-size: 13px;
    }

    .automation-status {
        max-width: none;
        font-size: 12px;
    }

    .automation-app-note {
        padding: 0 20px 15px;
        font-size: 9px;
    }

    .knowledge-workspace {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .knowledge-source-panel {
        display: none;
    }

    .knowledge-conversation {
        padding: 22px 22px 14px;
    }

    .knowledge-eyebrow {
        display: none;
    }

    .knowledge-thread {
        min-height: 322px;
        gap: 24px;
        padding-top: 0;
    }

    .knowledge-app.is-interactive .knowledge-thread {
        max-height: none;
        overflow-y: visible;
    }

    .knowledge-message--user {
        max-width: 94%;
        font-size: 15px;
    }

    .knowledge-message--assistant {
        gap: 12px;
    }

    .knowledge-message__body {
        font-size: 15px;
    }

    .knowledge-message__author {
        font-size: 12px;
    }

    .knowledge-message__body > p:first-of-type,
    .knowledge-answer-lead {
        font-size: 17px;
    }

    .knowledge-message__body .knowledge-citation {
        max-width: 100%;
        margin-top: 18px;
        font-size: 12px;
    }

    .knowledge-inline-source {
        display: block;
        margin-top: 16px;
        padding-top: 5px;
        border-top: 1px solid var(--automation-line);
    }

    .knowledge-inline-source .knowledge-source-document {
        align-items: flex-start;
        padding: 17px 0;
        border: 0;
    }

    .knowledge-inline-source .knowledge-source-document > .automation-icon {
        display: none;
    }

    .knowledge-inline-source .knowledge-source-document h4 {
        font-size: 14px;
    }

    .knowledge-inline-source .knowledge-source-document p {
        font-size: 11px;
    }

    .knowledge-inline-source .knowledge-source-excerpt {
        padding: 0 0 15px;
    }

    .knowledge-inline-source .knowledge-source-excerpt h4 {
        font-size: 17px;
    }

    .knowledge-inline-source .knowledge-source-excerpt p {
        font-size: 15px;
        line-height: 1.85;
    }

    .knowledge-inline-source .knowledge-source-footer {
        border-top: 0;
        padding-top: 0;
    }

    .knowledge-inline-source .knowledge-source-footer > span {
        display: none;
    }

    .knowledge-inline-source .knowledge-source-footer a {
        min-height: 44px;
        font-size: 12px;
    }

    .knowledge-composer {
        margin-top: 0;
    }

    .knowledge-prompts {
        gap: 0;
    }

    .knowledge-prompts button {
        min-height: 67px;
        padding-right: 6px;
        padding-left: 6px;
        font-size: 14px;
    }

    .knowledge-form input {
        min-height: 44px;
        padding-left: 8px;
        font-size: 16px;
    }

    .knowledge-composer-meta {
        gap: 6px 12px;
        flex-wrap: wrap;
        font-size: 9px;
    }

    .knowledge-composer-meta .automation-reset {
        min-height: 44px;
        margin-left: auto;
        font-size: 10px;
    }
}

@media (max-width: 600px) {
    .automation-section {
        padding: 52px 20px 40px;
    }

    .automation-section + .automation-section {
        padding-top: 38px;
    }

    .automation-section-heading {
        gap: 20px;
        margin-bottom: 28px;
    }

    .automation-section-heading h2 {
        max-width: 16ch;
        font-size: clamp(33px, 8.4vw, 46px);
        line-height: 1.12;
        letter-spacing: -0.05em;
    }

    .automation-section-heading p {
        max-width: 38ch;
        font-size: 16px;
        line-height: 1.6;
    }

    .automation-section-caption {
        flex-direction: column;
        gap: 5px;
        padding-top: 18px;
        font-size: 14px;
    }

    .automation-section-caption > a {
        min-height: 36px;
    }

    .ocr-destinations {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .ocr-destination {
        min-height: 105px;
        gap: 18px;
        padding: 17px 6px;
    }

    .ocr-destination + .ocr-destination {
        border-top: 1px solid var(--automation-line);
        border-left: 0;
    }

    .ocr-destination > .automation-icon {
        width: 40px;
        height: 46px;
    }

    .ocr-destination h5 {
        font-size: 17px;
    }

    .ocr-destination p,
    .ocr-destination__state {
        font-size: 12px;
    }

    .ocr-actions .automation-actions__buttons {
        flex-direction: column-reverse;
        gap: 3px;
        align-items: stretch;
    }

    .ocr-actions .automation-reset {
        border-color: transparent;
        background: transparent;
    }

    .ocr-results,
    .knowledge-conversation {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ocr-destinations {
        margin-right: -16px;
        margin-left: -16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .knowledge-toolbar {
        min-height: 65px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .knowledge-toolbar h3 {
        gap: 12px;
        font-size: 23px;
    }

    .knowledge-toolbar .automation-toolbar__meta {
        font-size: 11px;
    }

    .knowledge-message--assistant {
        gap: 10px;
    }

    .knowledge-message--assistant > .knowledge-avatar {
        width: 27px;
        height: 27px;
    }

    .knowledge-message--assistant > .knowledge-avatar .automation-icon {
        width: 16px;
        height: 16px;
    }

    .knowledge-message__body {
        font-size: 15px;
    }

    .knowledge-message__body > p:first-of-type,
    .knowledge-answer-lead {
        font-size: 17px;
    }

    .knowledge-message__body .knowledge-citation {
        gap: 6px;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 12px;
    }

    .knowledge-message__body
        .knowledge-citation
        > .automation-icon:first-child {
        display: none;
    }

    .knowledge-welcome {
        min-height: 365px;
        padding: 26px 0;
    }

    .knowledge-welcome h4 {
        font-size: 30px;
    }

    .knowledge-prompts button {
        flex: 0 0 auto;
        gap: 12px;
        font-size: 13px;
        text-align: left;
    }

    .knowledge-app.has-conversation .knowledge-prompts button {
        flex: 1 1 auto;
        font-size: 13px;
        text-align: center;
    }

    .knowledge-form input {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .automation-section {
        padding-right: 14px;
        padding-left: 14px;
    }

    .automation-section-heading h2 {
        font-size: 31px;
    }

    .ocr-toolbar h3 {
        padding-right: 16px;
        padding-left: 16px;
        font-size: 20px;
    }

    .ocr-tabs button {
        font-size: 11px;
    }

    .ocr-data-table tbody td:last-child {
        font-size: 14px;
    }

    .doc-paper {
        padding: 18px 13px;
        font-size: 10px;
    }

    .doc-paper__brand {
        font-size: 13px;
    }

    .doc-paper__table {
        font-size: 9px;
    }

    .doc-paper__table th {
        font-size: 8px;
    }

    .knowledge-message--assistant > .knowledge-avatar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .automation-app *,
    .automation-app *::before,
    .automation-app *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.automation-section-heading p,
.automation-section-caption p {
    color: var(--muted);
}
.automation-section-caption > a,
.ocr-original-link,
.knowledge-source-footer a,
.knowledge-citation {
    gap: var(--link-arrow-gap);
    border-bottom: 0;
    text-decoration: none;
}
.automation-app .link-arrow {
    flex: 0 0 var(--link-arrow-size);
    width: var(--link-arrow-size);
    height: var(--link-arrow-size);
}
.automation-app :is(a, button) > .automation-icon.link-arrow {
    flex-basis: var(--link-arrow-size);
    width: var(--link-arrow-size);
    height: var(--link-arrow-size);
    margin-left: 0;
}
