#dworker-architecture {
    position: relative;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.arch-boot-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,11,15,0.95);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: opacity 0.5s ease;
}
.arch-boot-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.arch-boot-text {
    font-family: "SF Mono", Menlo, monospace;
    color: #10B981;
    font-size: 0.95rem;
    line-height: 1.9;
    padding: 0 20px;
}
.boot-line {
    opacity: 0;
    animation: bootLineIn 0.4s ease forwards;
}
@keyframes bootLineIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

#arch-stage {
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
#arch-stage.revealed {
    opacity: 1;
    transform: scale(1);
}

.arch-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.arch-line {
    stroke: #cbd5e1;
    stroke-width: 1.5;
    opacity: 0.6;
    transition: stroke 0.3s ease, opacity 0.3s ease, stroke-width 0.3s ease;
}
.arch-line.active { stroke: #38BDF8; stroke-width: 2.5; opacity: 1; }
.arch-line.dimmed { opacity: 0.12; }

.arch-packet { fill: #7C3AED; opacity: 0.85; }

.arch-node { cursor: pointer; }

.arch-node-float {
    animation: nodeFloat 6s ease-in-out infinite;
    transform-origin: center;
}
@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.arch-node-glow {
    fill: rgba(56,189,248,0.18);
    animation: archGlowPulse 3s ease-in-out infinite;
    transition: fill 0.3s ease, opacity 0.3s ease;
}
@keyframes archGlowPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.arch-node-dot {
    fill: white;
    stroke: #cbd5e1;
    stroke-width: 2.5;
    transition: stroke 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.arch-node.active .arch-node-dot { stroke: #38BDF8; transform: scale(1.12); }
.arch-node.dimmed .arch-node-dot { opacity: 0.3; }
.arch-node.dimmed .arch-node-glow { opacity: 0.1; }

.arch-icon-wrap {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    color: #0369a1;
    font-size: 13px;
}

.arch-node-label { font-size: 12px; font-weight: 600; fill: #111827; }

.center-glow { fill: rgba(124,58,237,0.22); animation: archGlowPulse 2.4s ease-in-out infinite; }
.center-dot { fill: #ffffff; stroke: #7C3AED; stroke-width: 3; transition: stroke 0.3s ease; }
.arch-center-node.active .center-dot { stroke: #38BDF8; }
.arch-center-label { font-size: 30px; }
.arch-center-sublabel { font-size: 13px; font-weight: 700; fill: #111827; }

.arch-tooltip {
    position: absolute;
    transform: translate(-50%, -100%);
    background: rgba(17,24,39,0.95);
    color: white;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    max-width: 220px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 30;
}
.arch-tooltip.visible { opacity: 1; }
.arch-tooltip strong { display: block; margin-bottom: 4px; color: #38BDF8; }
.arch-tooltip p { margin: 0; color: #d1d5db; }

.station-icon-wrap i,
.arch-icon-wrap i {
    display: inline-block;
    font-size: 14px;
    line-height: 28px;
    width: 100%;
    text-align: center;
}