:root {
    --blue: #3f51b5;
    --blue-light: #5c6bc0;
    --accent: #7c8ff5;
    --bg: #f5f6fa;
    --text: #1a1d2e;
    --muted: #6b7280;
}

/* ── GRID ── */
.audio-routing {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    background-color: white;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 30px;
    gap: 25px;
}

body>section:nth-child(6)>section:nth-child(4)>div>div {
    width: stretch;
    max-width: 1220px;
}

.audio-routing article {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    margin-top: 5px;
}

/* ── CARD ── */
.routing-card {
    border-radius: 24px;
    padding: 15px 10px 10px;
    border: 1px solid rgba(63, 81, 181, 0.15);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: 600px;
    height: 470px;
}

body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1)>div.flow>div>div.line {
    background: #16a34a56;
    height: 100px;
}

body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1)>div.flow>div>div.tip {
    border-top: 7px solid #16a34a56;
}

body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1) {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.35);
}

body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1)>div.flow>div.flow-node {
    background: rgba(22, 163, 74, 0.30);
    border: 1px solid rgba(22, 163, 74, 0.35);
    color: #16a34a;
}

body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1)>div.flow>div.flow-node.core>svg,
body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1)>div.card-header>h3 {
    color: #16a34a;
}


body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(2) {
    background-color: rgba(63, 81, 181, 0.15);
    border: 1px solid rgba(63, 81, 181, 0.2);

}

body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(2)>div.flow>div:nth-child(1),
body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(2)>div.flow>div:nth-child(9) {
    background: rgba(63, 81, 181, 0.300);
    border: 1px solid rgba(63, 81, 181, 0.35);
}


body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1)>div.flow>div.flow-node.core {
    background-color: #16a34a !important;
    color: white !important;
}

body>section:nth-child(6)>section:nth-child(4)>div>article>div:nth-child(1)>div.flow>div.flow-node.core>svg {
    color: white !important;
}

body > section:nth-child(6) > section:nth-child(4) > div > article > div:nth-child(2) > div.card-header > h3 {
    color: #3f51b5 !important;
}

.card-header h3 {
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 6px 5px 2px;
    text-align: center;
}

/* ── FLOW WRAPPER ── */
.flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0px 18px 14px;
    gap: 0;
    height: 100%;
}

/* ── NODE ── */
.flow-node {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid #3f51b5a2;
    border-radius: 12px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3f51b5;
    white-space: nowrap;
}

body>section:nth-child(6)>section:nth-child(6)>div>div {
    width: stretch;
    max-width: 1230px;
}

.flow-node.core {
    background: var(--blue);
    color: white;
    border-radius: 50px;
}

.flow-node.core svg {
    color: white;
}

.flow-node svg {
    flex-shrink: 0;
}

/* ── ARROW DOWN ── */
.arrow-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.arrow-down .line {
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom,
            rgba(63, 81, 181, 0.2),
            rgba(63, 81, 181, 0.5));
}

.arrow-down .tip {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(63, 81, 181, 0.4);
}

/* ── ARROW UP (retour) ── */
.arrow-up {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-up .tip {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid rgba(63, 81, 181, 0.4);
}

.arrow-up .line {
    width: 2px;
    height: 15px;
    background: linear-gradient(to top,
            rgba(63, 81, 181, 0.2),
            rgba(63, 81, 181, 0.5));
}

/* ── DOUBLE ARROW (aller-retour) ── */
.arrow-both {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
}

.arrow-both .both-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arrow-both .both-col .line {
    width: 2px;
    height: 15px;
}

.arrow-both .both-col.down .line {
    background: linear-gradient(to bottom,
            rgba(63, 81, 181, 0.2),
            rgba(63, 81, 181, 0.5));
}

.arrow-both .both-col.down .tip {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid rgba(63, 81, 181, 0.5);
}

.arrow-both .both-col.up .line {
    background: linear-gradient(to top,
            rgba(63, 81, 181, 0.2),
            rgba(63, 81, 181, 0.5));
}

.arrow-both .both-col.up .tip {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid rgba(63, 81, 181, 0.5);
}

.arrow-both .label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    margin: 10px 5px;
}

/* ── APPS STACK ── */
.apps-stack {
    display: flex;
    align-items: center;
    background: rgba(63, 81, 181, 0.300);
    border-radius: 8px;
    padding: 1px 5px;
    gap: 5px;
}

.apps-stack .app-chip {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: transparent !important;
    border: none !important;
}

.apps-stack .app-chip:first-child {
    margin-left: 0;
}

.apps-stack .app-chip img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* ── INPUT NODE ── */
.input-node {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(63, 81, 181, 0.2);
    ;
    border: 1.5px solid rgba(63, 81, 181, 0.12);
    border-radius: 12px;
    padding: 5px 6px;
}

.input-node span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}

/* ── SPLIT OUTPUTS ── */
.h-split {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    margin: 0;
}

.h-split .h-line {
    height: 2px;
    flex: 1;
    background: rgba(63, 81, 181, 0.2);
}

.h-split .h-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    opacity: 0.4;
}

.flow-split {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-branch .line {
    width: 2px;
    height: 14px;
    background: linear-gradient(to bottom,
            rgba(63, 81, 181, 0.2),
            rgba(63, 81, 181, 0.5));
}

.flow-branch .tip {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid rgba(63, 81, 181, 0.4);
    margin-bottom: 4px;
}

/* ── CAPTION ── */
.flow-caption {
    font-size: 1rem;
    color: var(--muted);
    text-align: center;
    font-style: italic;
    margin-top: 4px;
    padding: 0 4px;
}