.sw-auto-page {
    --auto-accent: #f59e0b;
    --auto-accent-soft: #fff3d7;
    --auto-blue: #75a8ed;
    --auto-deep: #071a36;
    --auto-deep-2: #0b2852;
    --auto-line-dark: #27466d;
}

.sw-auto-page h2 {
    color: var(--sw-ink);
    font-size: clamp(30px, 5.8vw, 50px);
    font-weight: 810;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.sw-auto-page h3 {
    letter-spacing: -0.022em;
}

.sw-auto-page button:focus-visible,
.sw-auto-page input:focus-visible,
.sw-auto-page a:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.5);
    outline-offset: 3px;
}

/* Hero and rule composer */
.sw-auto-hero {
    color: #fff;
    background:
        radial-gradient(circle at 76% 19%, rgba(73, 132, 218, 0.28), transparent 31%),
        radial-gradient(circle at 12% 80%, rgba(245, 158, 11, 0.08), transparent 29%),
        linear-gradient(145deg, #0d3266 0%, #09254d 48%, #06172f 100%);
}

.sw-auto-hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 92%, transparent);
}

.sw-auto-hero::after {
    content: "";
    position: absolute;
    top: -190px;
    right: -160px;
    width: 510px;
    height: 510px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 55px rgba(255, 255, 255, 0.018),
        inset 0 0 0 115px rgba(255, 255, 255, 0.012);
    pointer-events: none;
}

.sw-auto-hero .sw-bp-hero__content,
.sw-auto-composer {
    position: relative;
    z-index: 1;
}

.sw-auto-hero .sw-bp-breadcrumbs {
    color: #90a9c9;
}

.sw-auto-hero .sw-bp-breadcrumbs a:hover {
    color: #fff;
}

.sw-auto-hero .sw-bp-chips span {
    border-color: rgba(255, 255, 255, 0.14);
    color: #c8dcf7;
    background: rgba(255, 255, 255, 0.075);
}

.sw-auto-hero .sw-bp-hero__title {
    color: #fff;
    font-size: clamp(39px, 8.8vw, 68px);
}

.sw-auto-hero .sw-bp-hero__title span {
    display: block;
    margin-top: 10px;
    color: #9cc5fb;
    font-size: 0.75em;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.sw-auto-hero .sw-bp-hero__lead {
    color: #b8c8dd;
}

.sw-auto-button--accent {
    color: #1b2a3d;
    background: var(--auto-accent);
    box-shadow: 0 14px 29px rgba(245, 158, 11, 0.18);
}

.sw-auto-button--accent:hover {
    color: #111827;
    background: #ffae1f;
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.25);
}

.sw-auto-button--ghost {
    border-color: #36567c;
    color: #e6f0fd;
    background: #143660;
}

.sw-auto-button--ghost:hover {
    border-color: #5278a7;
    color: #fff;
    background: #1a416f;
}

.sw-auto-hero .sw-bp-proof {
    color: #9cb2ce;
}

.sw-auto-hero .sw-bp-proof li::before {
    color: #1b2a3d;
    background: var(--auto-accent);
}

.sw-auto-composer {
    padding: 18px;
    border: 1px solid #34567f;
    border-radius: 27px;
    background: #0a2245;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
}

.sw-auto-composer__head {
    display: flex;
    padding: 2px 2px 17px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid #28486f;
}

.sw-auto-composer__head > div {
    min-width: 0;
}

.sw-auto-composer__head > div > span,
.sw-auto-composer__head > div > strong {
    display: flex;
    align-items: center;
}

.sw-auto-composer__head > div > span {
    gap: 8px;
    color: #90afd6;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.sw-auto-composer__head > div > span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48d597;
    box-shadow: 0 0 0 5px rgba(72, 213, 151, 0.1);
}

.sw-auto-composer__head > div > strong {
    margin-top: 6px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.sw-auto-composer__status {
    display: inline-flex;
    min-height: 28px;
    padding: 0 10px;
    align-items: center;
    border: 1px solid #31557f;
    border-radius: 999px;
    color: #a9c8f0;
    background: #12335c;
    font-size: 9px;
    font-weight: 750;
}

.sw-auto-composer__switches {
    display: flex;
    padding: 15px 0;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.sw-auto-composer__switches button {
    min-width: max-content;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #2d4d75;
    border-radius: 10px;
    color: #91aac8;
    background: #102b51;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 760;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.sw-auto-composer__switches button:hover {
    border-color: #5277a6;
    color: #fff;
}

.sw-auto-composer__switches button[aria-pressed="true"] {
    border-color: var(--auto-accent);
    color: #16243a;
    background: var(--auto-accent);
}

.sw-auto-rule-flow {
    display: grid;
    gap: 8px;
}

.sw-auto-rule-node {
    position: relative;
    min-width: 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #2c4c72;
    border-radius: 15px;
    background: #0e2a51;
}

.sw-auto-rule-node::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: #6ba6ef;
}

.sw-auto-rule-node--event {
    background: #102e58;
}

.sw-auto-rule-node--condition::before {
    background: #9a83ed;
}

.sw-auto-rule-node--action::before {
    background: var(--auto-accent);
}

.sw-auto-rule-node--proof::before {
    background: #3ec58b;
}

.sw-auto-rule-node > span,
.sw-auto-rule-node > strong,
.sw-auto-rule-node > small {
    display: block;
}

.sw-auto-rule-node > span {
    margin-bottom: 6px;
    color: #7f9dc3;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-rule-node > strong {
    color: #fff;
    font-size: 12px;
    font-weight: 790;
    line-height: 1.35;
}

.sw-auto-rule-node > small {
    margin-top: 5px;
    color: #7892b3;
    font-size: 9px;
    line-height: 1.35;
}

.sw-auto-rule-link {
    display: flex;
    min-height: 17px;
    align-items: center;
    justify-content: center;
    color: #6383ab;
}

.sw-auto-rule-link span {
    width: 1px;
    height: 12px;
    background: #3b5e88;
}

.sw-auto-rule-link svg {
    display: none;
    width: 16px;
    height: 16px;
}

.sw-auto-composer__footer {
    display: grid;
    padding: 13px;
    margin-top: 14px;
    grid-template-columns: 27px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #285174;
    border-radius: 13px;
    background: #0b3552;
}

.sw-auto-composer__footer > span {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 9px;
    color: #0b2a28;
    background: #48d597;
    font-size: 12px;
    font-weight: 900;
}

.sw-auto-composer__footer p {
    margin: 0;
    color: #b3c7df;
    font-size: 9px;
    line-height: 1.5;
}

.sw-auto-composer.is-changing .sw-auto-rule-node,
.sw-auto-composer.is-changing .sw-auto-composer__footer {
    opacity: 0.48;
    transform: translateY(3px);
}

.sw-auto-rule-node,
.sw-auto-composer__footer {
    transition: opacity 150ms ease, transform 150ms ease;
}

/* Closed automation loop */
.sw-auto-loop {
    background: #fff;
}

.sw-auto-loop__layout {
    display: grid;
    gap: 46px;
    align-items: center;
}

.sw-auto-loop__copy {
    max-width: 650px;
}

.sw-auto-loop__copy h2 {
    margin: 17px 0 16px;
}

.sw-auto-loop__copy > p {
    margin-bottom: 25px;
    color: var(--sw-muted);
    font-size: 16px;
    line-height: 1.72;
}

.sw-auto-loop__statement {
    display: grid;
    padding: 20px;
    gap: 8px;
    border-left: 3px solid var(--auto-accent);
    border-radius: 0 16px 16px 0;
    background: #f7f9fc;
}

.sw-auto-loop__statement strong {
    margin-bottom: 3px;
    font-size: 13px;
}

.sw-auto-loop__statement span {
    position: relative;
    padding-left: 18px;
    color: #65758a;
    font-size: 11px;
    line-height: 1.45;
}

.sw-auto-loop__statement span::before {
    content: "";
    position: absolute;
    top: 0.55em;
    left: 2px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sw-primary);
}

.sw-auto-cycle {
    position: relative;
    display: grid;
    margin: 0;
    padding: 19px;
    gap: 9px;
    border: 1px solid var(--sw-line);
    border-radius: 28px;
    background:
        linear-gradient(rgba(20, 72, 150, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 72, 150, 0.025) 1px, transparent 1px),
        #f8fbff;
    background-size: 28px 28px;
    list-style: none;
    box-shadow: 0 22px 55px rgba(18, 53, 96, 0.08);
}

.sw-auto-cycle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    display: none;
    width: 126px;
    height: 126px;
    border: 1px dashed #b7cae1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sw-auto-cycle li {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 72px;
    padding: 13px;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid #dce6f1;
    border-radius: 15px;
    background: #fff;
}

.sw-auto-cycle li > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    color: var(--sw-primary);
    background: var(--sw-primary-soft);
    font-size: 9px;
    font-weight: 850;
}

.sw-auto-cycle strong,
.sw-auto-cycle small {
    display: block;
}

.sw-auto-cycle strong {
    font-size: 12px;
    font-weight: 800;
}

.sw-auto-cycle small {
    margin-top: 3px;
    color: #79889c;
    font-size: 9px;
}

/* Process atlas */
.sw-auto-tabs .sw-bp-tabs__list {
    background: #f8fafd;
}

.sw-auto-atlas-panel {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--sw-line);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 17px 43px rgba(18, 53, 96, 0.07);
}

.sw-auto-atlas-panel__copy,
.sw-auto-atlas-panel__logic {
    min-width: 0;
    padding: 25px;
}

.sw-auto-atlas-panel__copy {
    border-bottom: 1px solid var(--sw-line);
    background: #fff;
}

.sw-auto-atlas-panel__copy > span {
    color: var(--sw-primary);
    font-size: 9px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.sw-auto-atlas-panel__copy h3 {
    margin: 10px 0 12px;
    font-size: clamp(22px, 5vw, 32px);
    font-weight: 810;
    line-height: 1.12;
}

.sw-auto-atlas-panel__copy > p {
    margin-bottom: 22px;
    color: var(--sw-muted);
    font-size: 13px;
    line-height: 1.65;
}

.sw-auto-atlas-panel__copy dl {
    display: grid;
    margin: 0;
    gap: 9px;
}

.sw-auto-atlas-panel__copy dl > div {
    padding: 13px;
    border: 1px solid #e0e8f1;
    border-radius: 13px;
    background: #f8fafd;
}

.sw-auto-atlas-panel__copy dt {
    margin-bottom: 4px;
    color: #8190a4;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-atlas-panel__copy dd {
    color: #263b55;
    font-size: 11px;
    font-weight: 680;
    line-height: 1.45;
}

.sw-auto-atlas-panel__logic {
    display: grid;
    align-content: center;
    gap: 12px;
    background: #f8fafd;
}

.sw-auto-logic-column {
    padding: 18px;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    background: #fff;
}

.sw-auto-logic-column > span {
    display: inline-flex;
    min-height: 27px;
    padding: 0 9px;
    align-items: center;
    border-radius: 999px;
    color: #654fa8;
    background: #eee9ff;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-logic-column--action > span {
    color: #865900;
    background: var(--auto-accent-soft);
}

.sw-auto-logic-column ul {
    display: grid;
    margin: 15px 0 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.sw-auto-logic-column li {
    position: relative;
    padding-left: 18px;
    color: #53657a;
    font-size: 10px;
    line-height: 1.45;
}

.sw-auto-logic-column li::before {
    content: "";
    position: absolute;
    top: 0.5em;
    left: 1px;
    width: 7px;
    height: 7px;
    border: 2px solid #9c87e4;
    border-radius: 50%;
}

.sw-auto-logic-column--action li::before {
    border-color: var(--auto-accent);
}

.sw-auto-atlas-panel__arrow {
    display: flex;
    justify-content: center;
    color: #8b9aae;
    transform: rotate(90deg);
}

.sw-auto-atlas-panel__arrow svg {
    width: 21px;
    height: 21px;
}

.sw-auto-atlas-panel__proof {
    padding: 14px 15px;
    margin: 2px 0 0;
    border: 1px solid #cfe8dd;
    border-radius: 14px;
    color: #517065;
    background: #f2fbf7;
    font-size: 9px;
    line-height: 1.55;
}

.sw-auto-atlas-panel__proof strong {
    display: block;
    margin-bottom: 4px;
    color: #217456;
    font-size: 10px;
}

/* Responsibility modes */
.sw-auto-modes {
    background: #fff;
}

.sw-auto-mode-scale {
    display: grid;
    gap: 12px;
}

.sw-auto-mode-scale article {
    position: relative;
    min-height: 255px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid var(--sw-line);
    border-radius: 22px;
    background: #fff;
}

.sw-auto-mode-scale article::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -58px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(20, 72, 150, 0.09);
    border-radius: 50%;
    box-shadow: inset 0 0 0 25px rgba(20, 72, 150, 0.028);
}

.sw-auto-mode-scale article > span {
    color: var(--sw-primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-mode-scale h3 {
    max-width: 340px;
    margin: 17px 0 12px;
    font-size: 21px;
    font-weight: 810;
    line-height: 1.17;
}

.sw-auto-mode-scale p {
    max-width: 360px;
    margin-bottom: 24px;
    color: var(--sw-muted);
    font-size: 12px;
    line-height: 1.62;
}

.sw-auto-mode-scale small {
    display: inline-flex;
    min-height: 29px;
    padding: 0 10px;
    align-items: center;
    border-radius: 999px;
    color: #62738a;
    background: #eef3f8;
    font-size: 8px;
    font-weight: 750;
}

.sw-auto-mode-scale__middle {
    border-color: #f2d9a8 !important;
    background: #fffaf0 !important;
}

.sw-auto-mode-scale__middle > span {
    color: #9b6700 !important;
}

.sw-auto-mode-scale__middle small {
    color: #805800;
    background: #ffedc6;
}

/* Integration fabric */
.sw-auto-fabric {
    background:
        radial-gradient(circle at 50% 49%, rgba(20, 72, 150, 0.095), transparent 29%),
        linear-gradient(180deg, #f7faff, #eef5fd);
}

.sw-auto-fabric__map {
    display: grid;
    gap: 15px;
}

.sw-auto-fabric__side,
.sw-auto-fabric__core {
    border: 1px solid #d6e2ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(18, 53, 96, 0.08);
}

.sw-auto-fabric__side {
    position: relative;
    display: grid;
    padding: 21px;
    gap: 9px;
}

.sw-auto-fabric__side--sources,
.sw-auto-fabric__side--targets {
    isolation: isolate;
}

.sw-auto-fabric__side > span {
    margin-bottom: 4px;
    color: #8493a7;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-fabric__side > div {
    padding: 12px 13px;
    border: 1px solid #e0e8f1;
    border-radius: 13px;
    background: #f8fafd;
}

.sw-auto-fabric__side strong,
.sw-auto-fabric__side small {
    display: block;
}

.sw-auto-fabric__side strong {
    font-size: 11px;
    font-weight: 790;
}

.sw-auto-fabric__side small {
    margin-top: 3px;
    color: #8090a4;
    font-size: 8px;
}

.sw-auto-fabric__core {
    position: relative;
    display: flex;
    min-height: 280px;
    padding: 30px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, #144896, #0a326f);
    text-align: center;
}

.sw-auto-fabric__pulse {
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 33px rgba(255, 255, 255, 0.025),
        0 0 0 36px rgba(255, 255, 255, 0.018);
}

.sw-auto-fabric__core > strong,
.sw-auto-fabric__core > small,
.sw-auto-fabric__core > ul {
    position: relative;
    z-index: 1;
}

.sw-auto-fabric__core > strong {
    font-size: 24px;
    font-weight: 820;
    line-height: 1.15;
}

.sw-auto-fabric__core > small {
    max-width: 290px;
    margin-top: 8px;
    color: #bdd2ee;
    font-size: 9px;
    line-height: 1.5;
}

.sw-auto-fabric__core ul {
    display: flex;
    margin: 25px 0 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    list-style: none;
}

.sw-auto-fabric__core li {
    min-height: 28px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: #e3efff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 8px;
    font-weight: 700;
}

.sw-auto-fabric__note {
    max-width: 820px;
    margin: 24px auto 0;
    color: #6d7d91;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

/* Reliability */
.sw-auto-reliability {
    background:
        radial-gradient(circle at 12% 24%, rgba(75, 135, 221, 0.15), transparent 28%),
        linear-gradient(145deg, #0b2b58, #071a36 62%, #06152b);
}

.sw-auto-reliability__layout {
    display: grid;
    gap: 34px;
}

.sw-auto-execution-log {
    overflow: hidden;
    border: 1px solid #315177;
    border-radius: 24px;
    color: #fff;
    background: #0c284d;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.22);
}

.sw-auto-execution-log__head {
    display: flex;
    min-height: 70px;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #2b496d;
    background: #102f58;
}

.sw-auto-execution-log__head span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e6f0fc;
    font-size: 11px;
    font-weight: 780;
}

.sw-auto-execution-log__head span i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #48d597;
    box-shadow: 0 0 0 5px rgba(72, 213, 151, 0.1);
}

.sw-auto-execution-log__head strong {
    color: #88a6ca;
    font-size: 8px;
    font-weight: 730;
}

.sw-auto-execution-log ol {
    display: grid;
    margin: 0;
    padding: 11px;
    gap: 6px;
    list-style: none;
}

.sw-auto-execution-log li {
    display: grid;
    min-width: 0;
    min-height: 67px;
    padding: 11px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid #29476b;
    border-radius: 13px;
    background: #0d2b50;
}

.sw-auto-execution-log li > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #a7c2e4;
    background: #173a65;
    font-size: 8px;
    font-weight: 850;
}

.sw-auto-execution-log li strong,
.sw-auto-execution-log li small {
    display: block;
}

.sw-auto-execution-log li strong {
    font-size: 10px;
    font-weight: 780;
}

.sw-auto-execution-log li small {
    margin-top: 3px;
    color: #7f9abb;
    font-size: 8px;
    line-height: 1.35;
}

.sw-auto-execution-log li > i {
    color: #5fd2a1;
    font-size: 8px;
    font-style: normal;
    font-weight: 740;
}

.sw-auto-execution-log li.is-complete > i::before {
    content: "✓ ";
}

.sw-auto-reliability__grid {
    display: grid;
    gap: 8px;
}

.sw-auto-reliability__grid article {
    display: grid;
    padding: 16px 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.sw-auto-reliability__grid article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #34557d;
    border-radius: 12px;
    color: #a6c4e9;
    background: #12345f;
    font-size: 8px;
    font-weight: 850;
}

.sw-auto-reliability__grid h3 {
    margin: 1px 0 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 790;
}

.sw-auto-reliability__grid p {
    margin: 0;
    color: #91a8c5;
    font-size: 10px;
    line-height: 1.55;
}

/* Rules and AI */
.sw-auto-ai {
    background: #fff;
}

.sw-auto-ai__flow {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.sw-auto-ai__flow article {
    min-width: 0;
    min-height: 285px;
    padding: 25px;
    border: 1px solid var(--sw-line);
    border-radius: 23px;
    background: #fff;
}

.sw-auto-ai__flow article > span {
    color: var(--sw-primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-ai__flow h3 {
    margin: 18px 0 12px;
    font-size: 22px;
    font-weight: 810;
    line-height: 1.15;
}

.sw-auto-ai__flow p {
    color: var(--sw-muted);
    font-size: 12px;
    line-height: 1.62;
}

.sw-auto-ai__flow ul {
    display: flex;
    margin: 22px 0 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.sw-auto-ai__flow li {
    min-height: 28px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #63758c;
    background: #eef3f8;
    font-size: 8px;
    font-weight: 700;
}

.sw-auto-ai__plus,
.sw-auto-ai__equals {
    display: grid;
    min-height: 42px;
    place-items: center;
    color: #93a2b5;
    font-size: 23px;
    font-weight: 600;
}

.sw-auto-ai__result {
    border-color: #cbdaeb !important;
    background: linear-gradient(145deg, #f6faff, #e8f1fd) !important;
}

.sw-auto-ai__result a {
    display: inline-flex;
    margin-top: 18px;
    align-items: center;
    gap: 7px;
    color: var(--sw-primary);
    font-size: 10px;
    font-weight: 780;
    line-height: 1.4;
    text-decoration: none;
}

.sw-auto-ai__result a:hover {
    color: var(--sw-primary-dark);
}

.sw-auto-ai__result a svg {
    width: 16px;
    height: 16px;
    transition: transform 180ms ease;
}

.sw-auto-ai__result a:hover svg {
    transform: translateX(3px);
}

/* Measurement */
.sw-auto-measure__layout {
    display: grid;
    gap: 38px;
    align-items: start;
}

.sw-auto-measure__copy {
    max-width: 610px;
}

.sw-auto-measure__copy h2 {
    margin: 17px 0 15px;
}

.sw-auto-measure__copy > p {
    margin-bottom: 0;
    color: var(--sw-muted);
    font-size: 16px;
    line-height: 1.72;
}

.sw-auto-measure__table {
    overflow: hidden;
    border: 1px solid var(--sw-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 17px 42px rgba(18, 53, 96, 0.07);
}

.sw-auto-measure__row {
    display: grid;
    padding: 15px;
    gap: 6px;
    border-bottom: 1px solid #e3eaf2;
}

.sw-auto-measure__row:last-child {
    border-bottom: 0;
}

.sw-auto-measure__row strong {
    color: #223750;
    font-size: 10px;
    font-weight: 800;
}

.sw-auto-measure__row span {
    color: #63758a;
    font-size: 9px;
    line-height: 1.45;
}

.sw-auto-measure__row small {
    color: var(--sw-primary);
    font-size: 8px;
    font-weight: 740;
}

.sw-auto-measure__row--head {
    display: none;
    color: #7b8a9d;
    background: #f4f7fb;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* Priority matrix */
.sw-auto-priority {
    background: #fff;
}

.sw-auto-priority__layout {
    display: grid;
    gap: 26px;
    align-items: start;
}

.sw-auto-not-first {
    padding: 25px;
    border: 1px solid #eedfc0;
    border-radius: 24px;
    background: #fffaf0;
}

.sw-auto-not-first > span {
    color: #956200;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-not-first h3 {
    margin: 15px 0 22px;
    font-size: 22px;
    font-weight: 810;
    line-height: 1.18;
}

.sw-auto-not-first ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.sw-auto-not-first li {
    padding: 14px;
    border: 1px solid #eee2ca;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.sw-auto-not-first li strong,
.sw-auto-not-first li small {
    display: block;
}

.sw-auto-not-first li strong {
    font-size: 10px;
    font-weight: 790;
}

.sw-auto-not-first li small {
    margin-top: 5px;
    color: #746d60;
    font-size: 9px;
    line-height: 1.5;
}

.sw-auto-priority-matrix {
    overflow: hidden;
    border: 1px solid #d7e2ee;
    border-radius: 24px;
    background: #f8fafd;
    box-shadow: 0 20px 52px rgba(18, 53, 96, 0.09);
}

.sw-auto-priority-matrix__head {
    padding: 20px;
    border-bottom: 1px solid #dbe4ee;
    background: #fff;
}

.sw-auto-priority-matrix__head span,
.sw-auto-priority-matrix__head strong {
    display: block;
}

.sw-auto-priority-matrix__head span {
    color: var(--sw-primary);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-priority-matrix__head strong {
    margin-top: 5px;
    font-size: 15px;
    font-weight: 810;
}

.sw-auto-priority-matrix > label {
    display: grid;
    padding: 17px 20px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px 14px;
    border-bottom: 1px solid #e0e8f1;
}

.sw-auto-priority-matrix label > span strong,
.sw-auto-priority-matrix label > span small {
    display: block;
}

.sw-auto-priority-matrix label > span strong {
    color: #263a53;
    font-size: 10px;
    font-weight: 790;
}

.sw-auto-priority-matrix label > span small {
    margin-top: 3px;
    color: #8090a4;
    font-size: 8px;
    line-height: 1.4;
}

.sw-auto-priority-matrix input[type="range"] {
    grid-column: 1 / -1;
    width: 100%;
    height: 5px;
    margin: 3px 0 1px;
    border-radius: 999px;
    appearance: none;
    color: var(--sw-primary);
    background: linear-gradient(to right, var(--sw-primary) var(--range-progress, 50%), #d5dfeb var(--range-progress, 50%));
    cursor: pointer;
}

.sw-auto-priority-matrix input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    border: 3px solid #fff;
    border-radius: 50%;
    appearance: none;
    background: var(--sw-primary);
    box-shadow: 0 2px 8px rgba(20, 72, 150, 0.25);
}

.sw-auto-priority-matrix input[type="range"]::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--sw-primary);
    box-shadow: 0 2px 8px rgba(20, 72, 150, 0.25);
}

.sw-auto-priority-matrix output {
    display: inline-flex;
    min-width: 74px;
    min-height: 27px;
    padding: 0 8px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--sw-primary);
    background: #e7f0fb;
    font-size: 8px;
    font-weight: 790;
}

.sw-auto-priority-result {
    padding: 20px;
    color: #fff;
    background: linear-gradient(145deg, #144896, #0a3677);
}

.sw-auto-priority-result > span,
.sw-auto-priority-result > strong {
    display: block;
}

.sw-auto-priority-result > span {
    color: #b7cdef;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sw-auto-priority-result > strong {
    margin-top: 7px;
    color: #fff;
    font-size: 18px;
    font-weight: 810;
    line-height: 1.2;
}

.sw-auto-priority-result p {
    margin: 8px 0 0;
    color: #c3d4eb;
    font-size: 9px;
    line-height: 1.55;
}

.sw-auto-priority-matrix__note {
    padding: 13px 20px;
    margin: 0;
    color: #7a899c;
    background: #fff;
    font-size: 8px;
    line-height: 1.45;
}

/* Launch path */
.sw-auto-launch__steps {
    position: relative;
    display: grid;
    margin: 0;
    padding: 0;
    gap: 10px;
    list-style: none;
}

.sw-auto-launch__steps li {
    display: grid;
    min-height: 100px;
    padding: 17px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    border: 1px solid var(--sw-line);
    border-radius: 18px;
    background: #fff;
}

.sw-auto-launch__steps li > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: var(--sw-primary);
    background: var(--sw-primary-soft);
    font-size: 9px;
    font-weight: 850;
}

.sw-auto-launch__steps strong,
.sw-auto-launch__steps small {
    display: block;
}

.sw-auto-launch__steps strong {
    font-size: 12px;
    font-weight: 800;
}

.sw-auto-launch__steps small {
    margin-top: 5px;
    color: #7c8b9f;
    font-size: 9px;
    line-height: 1.5;
}

.sw-auto-cta .sw-bp-cta__panel {
    background:
        radial-gradient(circle at 78% 35%, rgba(245, 158, 11, 0.1), transparent 27%),
        linear-gradient(145deg, #0b2e5e, #071a36);
}

.sw-auto-cta .sw-bp-cta__mark span {
    color: #1c293b;
    background: var(--auto-accent);
}

@media (min-width: 640px) {
    .sw-auto-composer {
        padding: 21px;
    }

    .sw-auto-cycle {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sw-auto-mode-scale {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sw-auto-mode-scale article:last-child {
        grid-column: 1 / -1;
    }

    .sw-auto-reliability__grid,
    .sw-auto-launch__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sw-auto-measure__row {
        grid-template-columns: minmax(120px, 0.75fr) minmax(230px, 1.55fr) minmax(95px, 0.7fr);
        align-items: center;
        gap: 16px;
    }

    .sw-auto-measure__row--head {
        display: grid;
    }
}

@media (min-width: 760px) {
    .sw-auto-atlas-panel__copy,
    .sw-auto-atlas-panel__logic {
        padding: 33px;
    }

    .sw-auto-atlas-panel__logic {
        grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
        align-items: center;
    }

    .sw-auto-atlas-panel__arrow {
        transform: none;
    }

    .sw-auto-atlas-panel__proof {
        grid-column: 1 / -1;
    }

    .sw-auto-fabric__map {
        grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1.1fr) minmax(0, 0.8fr);
        align-items: stretch;
    }

    .sw-auto-fabric__side {
        align-content: center;
    }

    .sw-auto-fabric__side--sources::after,
    .sw-auto-fabric__side--targets::before {
        content: "";
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 15px;
        height: 2px;
        background: #8eafd7;
        transform: translateY(-50%);
    }

    .sw-auto-fabric__side--sources::after {
        right: -15px;
    }

    .sw-auto-fabric__side--targets::before {
        left: -15px;
    }

    .sw-auto-ai__flow {
        grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
    }

    .sw-auto-ai__result {
        grid-column: 1 / -1;
    }

    .sw-auto-ai__equals {
        display: none;
    }

    .sw-auto-priority-matrix > label {
        grid-template-columns: minmax(170px, 0.9fr) minmax(180px, 1fr) 78px;
    }

    .sw-auto-priority-matrix input[type="range"] {
        grid-column: auto;
    }
}

@media (min-width: 980px) {
    .sw-auto-hero .sw-bp-hero__grid {
        grid-template-columns: minmax(0, 0.87fr) minmax(520px, 1.13fr);
        gap: 58px;
    }

    .sw-auto-hero .sw-bp-hero__title {
        font-size: clamp(54px, 5.15vw, 68px);
    }

    .sw-auto-rule-flow {
        grid-template-columns: repeat(7, minmax(0, auto));
        align-items: stretch;
    }

    .sw-auto-rule-link {
        min-height: 0;
    }

    .sw-auto-rule-link span {
        display: none;
    }

    .sw-auto-rule-link svg {
        display: block;
    }

    .sw-auto-rule-node {
        padding: 13px 11px;
    }

    .sw-auto-rule-node > strong {
        font-size: 10px;
    }

    .sw-auto-loop__layout {
        grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
        gap: 70px;
    }

    .sw-auto-cycle {
        min-height: 520px;
        padding: 32px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: center;
        gap: 18px 120px;
    }

    .sw-auto-cycle::after {
        display: block;
    }

    .sw-auto-cycle li:nth-child(odd) {
        transform: translateY(-12px);
    }

    .sw-auto-cycle li:nth-child(even) {
        transform: translateY(12px);
    }

    .sw-auto-atlas-panel {
        grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    }

    .sw-auto-atlas-panel__copy {
        border-right: 1px solid var(--sw-line);
        border-bottom: 0;
    }

    .sw-auto-mode-scale {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        align-items: stretch;
    }

    .sw-auto-mode-scale article {
        border-radius: 0;
    }

    .sw-auto-mode-scale article:first-child {
        border-radius: 24px 0 0 24px;
    }

    .sw-auto-mode-scale article:last-child {
        grid-column: auto;
        border-radius: 0 24px 24px 0;
    }

    .sw-auto-mode-scale__middle {
        z-index: 1;
        margin: -14px -1px;
        padding-top: 39px !important;
        border-radius: 24px !important;
        box-shadow: 0 18px 45px rgba(112, 77, 8, 0.1);
    }

    .sw-auto-reliability__layout {
        grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
        gap: 58px;
        align-items: start;
    }

    .sw-auto-execution-log {
        position: sticky;
        top: 115px;
    }

    .sw-auto-reliability__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sw-auto-ai__flow {
        grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1.08fr);
    }

    .sw-auto-ai__result {
        grid-column: auto;
    }

    .sw-auto-ai__equals {
        display: grid;
    }

    .sw-auto-measure__layout {
        grid-template-columns: minmax(0, 0.72fr) minmax(560px, 1.28fr);
        gap: 70px;
    }

    .sw-auto-measure__copy {
        position: sticky;
        top: 115px;
    }

    .sw-auto-priority__layout {
        grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
        gap: 38px;
    }

    .sw-auto-launch__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (min-width: 1180px) {
    .sw-auto-composer {
        padding: 23px;
    }

    .sw-auto-rule-node {
        padding: 15px 13px;
    }

    .sw-auto-rule-node > strong {
        font-size: 11px;
    }

    .sw-auto-rule-node > small {
        font-size: 8px;
    }
}

@media (max-width: 420px) {
    .sw-auto-composer {
        padding: 14px;
        border-radius: 21px;
    }

    .sw-auto-composer__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sw-auto-atlas-panel__copy,
    .sw-auto-atlas-panel__logic,
    .sw-auto-mode-scale article,
    .sw-auto-not-first {
        padding: 20px;
    }

    .sw-auto-execution-log li {
        grid-template-columns: 32px minmax(0, 1fr);
    }

    .sw-auto-execution-log li > i {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sw-auto-composer.is-changing .sw-auto-rule-node,
    .sw-auto-composer.is-changing .sw-auto-composer__footer,
    .sw-auto-cycle li {
        opacity: 1;
        transform: none;
    }
}
