.cb-panel #cumulativeNotebook { margin:0; min-width:0; padding:12px; background:#fff; }
.cb-panel #cumulativeNotebook > summary { display:list-item; margin:0; font-size:15px; font-weight:850; color:var(--ink); }
#cumulativeNotebook .discovery-note-rows { display:block; }
#cumulativeNotebook h4 { font-size:13px; margin:13px 0 4px; padding-top:9px; border-top:1px solid #dce4ef; color:#2862a3; }
#cumulativeNotebook h4:first-child { margin-top:0; border:0; padding-top:0; }
#cumulativeNotebook .discovery-note-rows p,#previousDiscoveryRows p { display:grid; grid-template-columns:minmax(72px,.9fr) minmax(0,1.3fr); gap:6px; margin:0; padding:7px 0; border-bottom:1px solid #edf0f5; font-size:12px; }
#cumulativeNotebook .discovery-note-rows p { background:none; border-radius:0; }
#cumulativeNotebook p b { font-weight:650; white-space:normal; }
#cumulativeNotebook p span { min-width:0; white-space:normal; overflow-wrap:anywhere; text-align:left; font-weight:400; }
#cumulativeNotebook details { margin-top:10px; font-size:12px; }
#cumulativeNotebook summary { cursor:pointer; padding:6px 0; }
main.cb-app,.cb-work,.cb-panel,.cb-bubble,.cb-tabs { min-width:0; }
.ai-write-button::before { content:none; }

/* Independent panels retain their own disclosure state across stage/tab changes. */
#cbPanel { display:flex; flex-direction:column; gap:10px; }
#cbPanel > .cb-pblock:not([hidden]) { display:contents; }
#cbPanel .cb-sec[data-sec="control"] { order:0; flex:none; }
#cbPanel > #cumulativeNotebook { order:10; flex:none; border:1px solid var(--line); border-radius:14px; }
#cbPanel .cb-record-panel { order:20; flex:none; }
#cbPanel .cb-sec[data-sec="help"] { order:30; flex:none; }
#cbPanel .cb-record-panel > summary { display:list-item; margin:0; cursor:pointer; }
#cbPanel .cb-record-panel[open] > summary { margin-bottom:10px; }
#cbPanel #cumulativeNotebook > summary { padding:0; cursor:pointer; }
#cbPanel #cumulativeNotebook[open] > summary { margin-bottom:10px; }
#cbPanel .cb-panel-title:focus-visible,#cbPanel .cb-record-panel > summary:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }

.cb-bubble.is-collapsed > p { display:none; }
.cb-bubble.is-collapsed { justify-content:flex-start; }

/* Never expose inquiry guidance on launch, join or teacher views. */
body:not(.cb-app-on) #interactionGuide { display:none !important; }

#launchScreen .launch-mode-panel:not([hidden]) { display:block !important; visibility:visible; opacity:1; }
#launchScreen .launch-mode-panel[hidden] { display:none !important; }

body.cb-bubble-off #interactionGuide { display:none !important; }

/* Match all disclosure headers to Help: same right-aligned arrow and target size. */
#cbPanel #cumulativeNotebook > summary,
#cbPanel .cb-record-panel > summary,
#cbPanel .cb-help > summary {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  list-style:none; min-height:28px; padding:0; margin:0; font-size:15px;
  font-weight:850; color:var(--ink); cursor:pointer;
}
#cbPanel #cumulativeNotebook > summary::-webkit-details-marker,
#cbPanel .cb-record-panel > summary::-webkit-details-marker,
#cbPanel .cb-help > summary::-webkit-details-marker { display:none; }
#cbPanel #cumulativeNotebook > summary::marker,
#cbPanel .cb-record-panel > summary::marker,
#cbPanel .cb-help > summary::marker { content:''; }
#cbPanel #cumulativeNotebook > summary::after,
#cbPanel .cb-record-panel > summary::after,
#cbPanel .cb-help > summary::after {
  content:'▼'; flex:none; width:14px; text-align:center;
  font-size:12px; font-weight:650; line-height:1; color:var(--muted);
}
#cbPanel #cumulativeNotebook[open] > summary::after,
#cbPanel .cb-record-panel[open] > summary::after,
#cbPanel .cb-help[open] > summary::after { content:'▲'; }
/* The persistent bottom guidance remains; only the temporary popup is removed. */
#interactionGuide { display:none !important; }
