.bo-stage.bof { display: block; }
.bof .sf:not(.is-max) { position: relative; }
.bof .sf-bar { position: absolute; top: 10px; right: 26px; z-index: 2; justify-content: flex-end; gap: 8px; margin: 0; }
.bof .sf-panel { min-height: 0; margin-top: 10px; padding: 0; overflow: visible; border-radius: 0; background: none; }
.bof-note { margin: 12px 0 0; font-size: 13px; color: var(--bo-muted); }
.bo-stage.bof:has(.sf.is-max) { isolation: auto; }
.bof .sf.is-max .bof-cmp { display: none; }
.bof .sf.is-max .sf-bar { position: static; justify-content: space-between; margin: 0 0 12px; }
.bof .sf.is-max .sf-panel { margin-top: 0; }
@media (max-width: 767px) {
    .bof .sf-bar { position: static; justify-content: space-between; margin: 12px 0 8px; }
    .bof .sf-panel { margin-top: 0; }
    .bof-note { margin-top: 10px; font-size: 12px; }
}
.bof-cmp {
    display: grid;
    grid-template-columns: 150px repeat(5, minmax(0, 1fr));
    gap: 4px 10px;
    align-items: center;
    padding: 10px 26px 12px;
    border-radius: 24px;
    background: var(--sol-surface, #fff);
    box-shadow: var(--bo-lift);
}
.bof-cmp__hs { display: contents; }
.bof-cmp__t { grid-row: 1; grid-column: 1 / -1; margin: 0; font-size: 20px; line-height: 44px; font-weight: 700; letter-spacing: -0.02em; }
.bof-cmp__h {
    position: relative;
    grid-row: 2;
    min-height: 44px;
    padding: 10px 6px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
}
.bof-cmp__h b { font-weight: inherit; }
.bof-cmp__h:hover { background: #F4F6FA; }
.bof-cmp__h[aria-pressed="true"], .bof-cmp__h[aria-selected="true"] { background: var(--bo-tint); color: var(--sol-accent-em); }
.bof-cmp__h .fds-step__bar { position: absolute; left: 16px; right: 16px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--sol-accent); transform: scaleX(0); transform-origin: 0 50%; }
.bof-cmp__r { margin: 0; font-size: 14px; font-weight: 600; color: var(--bo-muted); }
.bof-cmp__r--us { color: var(--sol-accent-em); }
.bof-cmp__c { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.bof-cmp__c svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bof-cmp__c--ok { background: var(--bo-tint); color: var(--sol-accent-em); }
.bof-cmp__c--lim { background: #F5EFDF; color: #82641C; }
.bof-cmp__c--no { background: #F1F2F4; color: #80868F; }
.bof-cmp__c--us { background: var(--sol-accent); color: #fff; }
.bof-cmp__r, .bof-cmp__c--rent { grid-row: 3; }
.bof-cmp__r--us, .bof-cmp__c--us { grid-row: 4; }
@media (max-width: 767px) {
    .bof-cmp { grid-template-columns: 52px repeat(5, minmax(0, 1fr)); gap: 6px 3px; padding: 12px 10px 12px; border-radius: 22px; }
    .bof-cmp__t { padding-left: 4px; font-size: 18px; line-height: 1.4; }
    .bof-cmp__h { padding: 8px 0 10px; border-radius: 10px; font-size: 12px; line-height: 1.3; word-break: keep-all; }
    .bof-cmp__h .fds-step__bar { left: 8px; right: 8px; bottom: 3px; }
    .bof-cmp__r { font-size: 12px; line-height: 1.25; }
    .bof-cmp__c { height: 30px; font-size: 12px; }
    .bof-cmp__c span { display: none; }
    .bof-cmp__c--lim span { display: inline; }
}
.bof-ui { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: opacity 0.2s ease; }
.is-edit .bof-ui { bottom: var(--sf-edit, 44px); }
.k-live:not(.k-end) .bof-ui, .k-live:not(.k-end) .ek-pin { opacity: 0; }
.bof-pnl { position: absolute; left: 14px; top: 14px; width: 232px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 18px 44px -14px rgba(10, 14, 22, 0.45), 0 0 0 1px rgba(10, 14, 22, 0.06); color: #11151B; font-size: 13px; opacity: 0; transform: translateX(-12px); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.bof-pnl.is-on { opacity: 1; transform: none; }
.bof-pnl > b { display: block; margin: 2px 4px 8px; font-size: 13px; }
.bof-row { position: relative; display: flex; align-items: center; gap: 8px; height: 38px; margin-top: 6px; padding: 0 10px; border-radius: 10px; background: #F4F5F8; transition: transform 0.8s cubic-bezier(0.55, 0, 0.25, 1), box-shadow 0.2s; }
.bof-row i { width: 10px; height: 14px; background: radial-gradient(circle, #9AA0A8 1.3px, transparent 1.6px) 0 0 / 5px 5px; }
.bof-row.is-lift { z-index: 2; background: #fff; box-shadow: 0 10px 24px -8px rgba(10, 14, 22, 0.4), inset 0 0 0 2px #2556F5; }
.bof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bof-grid span { display: grid; place-items: center; height: 54px; border-radius: 10px; background: #F4F5F8; font-weight: 600; transition: transform 0.25s, box-shadow 0.2s; }
.bof-grid span.is-lift { background: #fff; box-shadow: 0 0 0 2px #2556F5, 0 10px 24px -8px rgba(10, 14, 22, 0.4); transform: scale(1.05); }
.bof-dev { position: absolute; left: 14px; bottom: 14px; width: 300px; padding: 12px 14px 12px; border-radius: 12px; background: #16171B; color: #E9EAEE; font-size: 12px; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.bof-dev.is-on { opacity: 1; transform: none; }
.bof-dev__hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.bof-dev__hd b { color: #8FB3FF; font-weight: 600; }
.bof-dev__hd span { display: flex; align-items: center; gap: 6px; color: #B9BCC6; }
.bof-dev__hd i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #2556F5; color: #fff; font-size: 10px; line-height: 1; font-style: normal; font-weight: 700; }
.bof-dev__code { margin: 10px 0 0; min-height: 3.2em; font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: #E9EAEE; white-space: nowrap; }
.bof-k { color: #7D8494; }
.bof-dev .ek-caret { background: #E9EAEE; }
.bof-dev.is-on [data-ek-type].is-typing + .ek-caret { opacity: 1; }
.bof-dev.is-armed [data-ek-type] .ek-ch:not(.on) { display: none; }
.bof-dev__st { display: grid; margin: 8px 0 0; color: #B9BCC6; }
.bof-dev__st > span { grid-area: 1 / 1; transition: opacity 0.25s; }
.bof-dev__st > span + span { color: #7EE2A8; opacity: 0; }
.bof-dev.is-done .bof-dev__st > span:first-child { opacity: 0; }
.bof-dev.is-done .bof-dev__st > span + span { opacity: 1; }
@container ek (max-width: 559px) {
    .bof-pnl { left: 10px; top: 10px; width: 196px; }
    .bof-dev { left: 0; right: 0; bottom: 0; width: auto; border-radius: 14px 14px 0 0; }
}
