/* The arc is navigation geometry; the visible structure is a living topology. */
#menu-circle{border-color:transparent!important;background:transparent!important;box-shadow:none!important;outline:0!important}
#menu-circle::before,#menu-circle::after,#branch-connectors{display:none!important}
#menu-circle .forma-lockup{border-radius:0;overflow:visible}
#menu-circle{z-index:1}
.orbit-menu{z-index:3}
#menu-network{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;opacity:0;transition:opacity 700ms var(--ease)}
#view-shell[data-route=main] #menu-network{opacity:1}
#view-shell:not([data-route=main]) #menu-network{display:none}
@media(prefers-reduced-motion:reduce){#menu-network{transition:none}}

/* Open children occupy the central field while their parent settles left. */
#menu-field[data-branch="learn"]{--circle-center:18%!important}
#menu-field[data-branch="learn"] .orbit-bar{width:25cqw}
#menu-field[data-branch="learn"] .orbit-label{font-size:clamp(10px,1.22cqw,16px)}
#menu-branches{left:55cqw;width:31cqw;--branch-height:min(530px,calc(100cqh - 32px));top:clamp(calc(var(--branch-height)/2 + 16px),calc(50% + var(--circle-size)/2 * var(--branch-y,0)),calc(100% - var(--branch-height)/2 - 16px));gap:8px}
#menu-branches .acquisition-label{font-size:clamp(10px,1.24cqw,14px)}
#next-item kbd{display:inline!important;min-width:24px;text-align:center;font-size:14px;line-height:12px}
@media(max-width:700px){
 #menu-field[data-branch="learn"]{--circle-center:18%!important}
 #menu-field[data-branch="learn"] .orbit-menu .orbit-bar{opacity:0;pointer-events:none}
 #menu-field[data-branch="learn"] .orbit-menu .orbit-bar:first-child{left:0;top:0;transform:none;width:94cqw;height:44px;opacity:1;pointer-events:auto}
 #menu-field[data-branch="learn"] .orbit-label{font-size:clamp(12px,2.7cqw,14px)}
 #menu-branches .tile-arrow{display:none}
 #menu-field[data-branch="learn"] #menu-branches{left:10cqw;width:74cqw;--branch-height:calc(100cqh - 80px);top:calc(50% + 28px);gap:6px;grid-template-rows:repeat(3,minmax(40px,1fr)) repeat(4,minmax(24px,1fr))}
 #menu-branches .acquisition-label{font-size:clamp(10px,3cqw,12px)}
 #menu-branches .branch-bar{padding:7px 10px}
}
@media(prefers-reduced-motion:reduce){#menu-branches,.orbit-menu .orbit-bar,#menu-circle{transition:none!important}}

@media(min-width:701px) and (max-width:950px){
 #menu-field[data-branch="learn"] .orbit-menu .orbit-bar{width:31cqw;padding-left:32px;left:calc(var(--circle-center) + var(--circle-size)/2 * var(--orbit-x) - 18px - 4cqw)}
 #menu-field[data-branch="learn"] .orbit-label{font-size:12px}
}
/* Short landscape screens keep useful writing-set targets above compact placeholders. */
@media(min-width:601px) and (max-width:950px) and (max-height:450px){
 #view-shell[data-route="main"] .menu-content{padding:8px 4vw;gap:6px;grid-template-rows:14px minmax(0,1fr) 18px}
 #menu-field[data-branch="learn"] #menu-branches{left:55cqw;width:31cqw;--branch-height:calc(100cqh - 16px);top:50%;gap:8px;grid-template-rows:repeat(3,minmax(30px,1fr)) repeat(4,minmax(18px,1fr))}
 #menu-branches .branch-bar{padding:3px 10px}
}
@media(min-width:601px) and (max-width:700px) and (max-height:450px){
 #menu-field[data-branch="learn"] .orbit-menu .orbit-bar:first-child{width:45cqw}
}
/* The manual control must wrap within the review workspace, never beyond it. */
@media(max-width:600px){
 #view-shell[data-route="review-practice"] .workspace{grid-template-rows:minmax(0,1fr) auto}
 #view-shell[data-route="review-practice"] .workspace-bottom{padding:8px 0;gap:8px}
 #view-shell[data-route="review-practice"] .toolbar{max-width:100%;min-width:0;flex-wrap:wrap}
}
.orbit-menu .orbit-bar{transition:left 620ms var(--orbit-ease),top 540ms var(--orbit-ease),width 620ms var(--ease),height 620ms var(--ease),padding 620ms var(--ease),transform 540ms var(--orbit-ease),background-color 260ms var(--ease),border-color 260ms var(--ease),box-shadow 360ms var(--ease),opacity 360ms var(--ease)}
.orbit-menu .orbit-label{transition:font-size 620ms var(--ease)}
.orbit-menu .orbit-label .tile-title{transition:none}

/* Recall's two siblings share the existing branch component and accent. */
#menu-field[data-branch="review"] #menu-branches{left:61cqw;width:34cqw;--branch-height:min(154px,calc(100cqh - 24px));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px}
/* Fill and text flip together so the keyboard handoff never puts dark text on a dark tile. */
#menu-field[data-branch="review"] #menu-branches .branch-bar{--arc-offset:0px;transition:left 620ms var(--orbit-ease),transform 450ms var(--orbit-ease),opacity 300ms var(--ease),box-shadow 300ms var(--ease)}
#menu-field[data-branch="review"] #menu-branches .acquisition-label{display:inline-flex;gap:.5em;font-size:calc(clamp(10px,1.24cqw,14px) * var(--text-scale,1))}
#menu-field[data-branch="review"] #menu-branches .menu-separator{font-weight:800}
@media(min-width:851px){#view-shell #menu-field[data-branch="review"] .orbit-menu .orbit-bar{top:calc(50% + var(--orbit-offset,0px))}}
@media(max-width:850px){
 #menu-field[data-branch="review"] .orbit-menu .orbit-bar{opacity:0;pointer-events:none}
 #menu-field[data-branch="review"] .orbit-menu .orbit-bar:nth-child(2){left:0;top:0;transform:none;width:94cqw;height:44px;opacity:1;pointer-events:auto}
 #menu-field[data-branch="review"] #menu-branches{left:4cqw;width:87cqw;--branch-height:min(154px,calc(100cqh - 76px));top:calc(50% + 26px)}
 #menu-field[data-branch="review"] #menu-branches .acquisition-label{font-size:calc(clamp(10px,3cqw,12px) * var(--text-scale,1))}
}
