.rb-flow-nav {
    max-width: 1240px;
    margin: 18px auto 0;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.2fr);
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background: rgba(10,14,23,.88);
    box-shadow: 0 14px 34px rgba(0,0,0,.18);
    backdrop-filter: blur(14px);
}

.rb-flow-copy { display: grid; gap: 4px; }
.rb-flow-copy small { font-size: 11px; letter-spacing: .14em; font-weight: 800; opacity: .62; }
.rb-flow-copy strong { font-size: 14px; line-height: 1.35; }

.rb-flow-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.rb-flow-step {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 13px;
    color: inherit;
    text-decoration: none;
    background: rgba(255,255,255,.025);
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.rb-flow-step[href]:hover { transform: translateY(-1px); border-color: rgba(116,151,255,.38); background: rgba(116,151,255,.07); }
.rb-flow-step > span { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.06); }
.rb-flow-step > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.rb-flow-step.is-past { opacity: .72; }
.rb-flow-step.is-past > span { background: rgba(61,193,141,.12); color: #74dfb3; }
.rb-flow-step.is-active { border-color: rgba(116,151,255,.45); background: linear-gradient(135deg, rgba(116,151,255,.13), rgba(143,105,255,.07)); }
.rb-flow-step.is-active > span { background: rgba(116,151,255,.2); color: #c9d5ff; }
.rb-flow-step.is-active > b { color: #eef2ff; }

.rb-mastery-next,
.rb-dashboard-next,
.rb-project-next {
    margin: 18px 0 22px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(116,151,255,.25);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(116,151,255,.1), rgba(143,105,255,.05));
}
.rb-mastery-next > div,
.rb-dashboard-next > div,
.rb-project-next > div { display: grid; gap: 5px; }
.rb-mastery-next small,
.rb-dashboard-next small,
.rb-project-next small { font-size: 10px; letter-spacing: .14em; font-weight: 900; color: #aebeff; }
.rb-mastery-next h2,
.rb-dashboard-next h2,
.rb-project-next h2 { margin: 0; font-size: clamp(20px, 2vw, 28px); }
.rb-mastery-next p,
.rb-dashboard-next p,
.rb-project-next p { margin: 0; max-width: 760px; opacity: .72; line-height: 1.55; }
.rb-mastery-next > a,
.rb-dashboard-next > a,
.rb-project-next > a { flex: 0 0 auto; }

.rb-flow-context {
    margin: 0 0 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(61,193,141,.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(61,193,141,.085), rgba(116,151,255,.045));
}
.rb-flow-context > div { display: grid; gap: 5px; }
.rb-flow-context small { font-size: 10px; letter-spacing: .14em; font-weight: 900; color: #74dfb3; }
.rb-flow-context h2 { margin: 0; font-size: clamp(18px, 1.8vw, 24px); }
.rb-flow-context p { margin: 0; max-width: 820px; opacity: .72; line-height: 1.5; }
.rb-flow-context > a { flex: 0 0 auto; }

.rb-practice-done-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.rb-flow-inline-note {
    margin-top: 22px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
}
.rb-flow-inline-note > div { display: grid; gap: 4px; }
.rb-flow-inline-note small { font-size: 10px; letter-spacing: .13em; font-weight: 800; opacity: .6; }
.rb-flow-inline-note b { font-size: 16px; }
.rb-flow-inline-note span { font-size: 13px; opacity: .72; }

.rb-project-complete-flow { align-items: center; }
.rb-project-complete-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

@media (max-width: 900px) {
    .rb-flow-nav { margin: 12px 14px 0; grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .rb-flow-copy strong { font-size: 13px; }
    .rb-flow-steps { overflow-x: auto; grid-template-columns: repeat(5, minmax(112px, 1fr)); padding-bottom: 2px; scrollbar-width: thin; }
    .rb-mastery-next, .rb-dashboard-next, .rb-project-next, .rb-flow-inline-note, .rb-flow-context { align-items: flex-start; flex-direction: column; }
    .rb-project-complete-actions, .rb-practice-done-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
    .rb-flow-nav { border-radius: 15px; }
    .rb-flow-copy small { font-size: 10px; }
    .rb-flow-steps { grid-template-columns: repeat(5, minmax(104px, 1fr)); }
    .rb-flow-step { min-height: 44px; padding: 7px 8px; }
    .rb-mastery-next, .rb-dashboard-next, .rb-project-next, .rb-flow-context { padding: 16px; border-radius: 16px; }
}
