.ipo-strip {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.8rem;
    align-items: center;
    margin: 1.5rem 0;
}
.ipo-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.ipo-card strong { display: block; color: #34387f; font-size: 1.1rem; }
.ipo-card span { color: #64748b; font-size: 0.9rem; }
.ipo-arrow { font-size: 1.8rem; font-weight: 900; color: #5b5fa8; }
.algorithm-construct-widget {
    margin: 1.5rem 0;
    padding: 1.25rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 1px solid #dbeafe;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.acw-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.acw-tab {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: white;
    color: #334155;
    padding: 0.55rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.acw-tab:hover,
.acw-tab.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
    transform: translateY(-1px);
}
.acw-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.acw-panel {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1rem;
    min-height: 210px;
}
.acw-panel h3 {
    margin-top: 0;
    color: #34387f;
}
.acw-panel pre {
    white-space: pre-wrap;
    font-family: "Courier New", monospace;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 0.8rem;
    line-height: 1.5;
    color: #0f172a;
}
.acw-explain-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #7c2d12;
}
.acw-explain-box p { margin-bottom: 0; }
.acw-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    min-height: 150px;
}
.acw-shape {
    min-width: 150px;
    padding: 0.55rem 0.8rem;
    text-align: center;
    font-weight: 800;
    color: #0f172a;
    background: #f8fafc;
    border: 2px solid #94a3b8;
    box-sizing: border-box;
}
.acw-process { border-radius: 8px; }
.acw-io { transform: skew(-12deg); border-radius: 8px; }
.acw-io span { display: inline-block; transform: skew(12deg); }

.acw-decision {
    position: relative;
    width: 136px;
    height: 136px;
    min-width: 136px;
    min-height: 136px;
    padding: 0;
    margin: 0.9rem 0;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}
.acw-decision::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
    background: #f8fafc;
    border: 2px solid #94a3b8;
    box-sizing: border-box;
    transform: rotate(45deg);
    transform-origin: center;
}
.acw-decision span {
    position: relative;
    z-index: 1;
    display: block;
    width: 70%;
    line-height: 1.15;
    font-size: 0.84rem;
    transform: none;
}

.acw-arrow { color: #5b5fa8; font-size: 1.3rem; font-weight: 900; line-height: 1; }

.acw-branch-split {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
    margin-top: -0.15rem;
}
.acw-branch-path {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding-top: 0.35rem;
}
.acw-branch-path::before {
    content: "";
    position: absolute;
    top: 0;
    width: 55%;
    border-top: 2px solid #94a3b8;
}
.acw-branch-path.left::before { right: 0; }
.acw-branch-path.right::before { left: 0; }
.acw-branch-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 800;
    background: white;
    padding: 0 0.3rem;
    position: relative;
    z-index: 1;
}
.acw-branch-arrow {
    color: #5b5fa8;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1;
    margin-top: -0.1rem;
}
.acw-branch-node {
    min-width: 124px;
    max-width: 150px;
    font-size: 0.84rem;
}
.acw-branch-node.acw-io {
    min-width: 130px;
}

.reveal .slide-ipo-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    margin: 2rem auto;
    max-width: 1050px;
}
.reveal .slide-ipo-row div {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 24px;
    padding: 1.2rem;
    text-align: center;
    color: #0f172a;
    font-size: 1.65rem;
    font-weight: 850;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}
.reveal .slide-ipo-row small {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.4rem;
}
.reveal .slide-ipo-row span {
    color: #e6004f;
    font-size: 2rem;
    font-weight: 900;
}
@media (max-width: 800px) {
    .ipo-strip, .acw-layout { grid-template-columns: 1fr; }
    .ipo-arrow { transform: rotate(90deg); text-align: center; }
    .acw-decision {
        width: 124px;
        height: 124px;
        min-width: 124px;
        min-height: 124px;
    }
    .acw-decision::before {
        top: 16px;
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    .acw-branch-split {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .acw-branch-path::before {
        display: none;
    }
}
