.case-outline {
  padding: 1.15rem;
  border-top: 4px solid var(--brand, #08756a);
}

.case-outline__heading { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; align-items: center; }
.case-outline__eyebrow { color: var(--brand, #08756a); font-size: .71rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.case-outline__heading h2 { grid-column: 1; margin: 0; font-size: 1.25rem; }
.case-outline__toggle { display: none; }
.case-outline__hint { margin: .65rem 0 0; color: var(--muted, #627d98); font-size: .81rem; line-height: 1.45; }
.case-outline__body { max-height: calc(100vh - 16rem); margin-top: .85rem; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.case-outline__list { display: grid; gap: .2rem; padding: 0; margin: 0; list-style: none; }
.case-outline__list .case-outline__list { margin: .25rem 0 .35rem .4rem; padding-left: .7rem; border-left: 1px solid var(--line, #d8e1e8); }
.case-outline__list a { display: block; padding: .42rem .5rem; color: var(--ink-2, #334e68); border-radius: 7px; font-size: .88rem; line-height: 1.35; text-decoration: none; }
.case-outline__list a:hover, .case-outline__list a:focus-visible { color: var(--brand, #08756a); background: var(--surface-2, #f5f8fa); outline: none; }
.case-outline__list a[aria-current="location"] { color: var(--brand-dark, #055b53); background: #e3f5f1; box-shadow: inset 3px 0 0 var(--brand, #08756a); font-weight: 800; }

.case-reader-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1rem; align-items: end; padding: 1rem 1.1rem; margin: 0 0 1.6rem; background: #f1faf8; border: 1px solid #c9e8e1; border-radius: 12px; }
.case-reader-controls__label { display: grid; gap: .22rem; color: var(--ink, #102a43); font-size: .86rem; font-weight: 800; }
.case-reader-controls__label span { color: var(--brand, #08756a); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.case-reader-controls select { width: 100%; min-height: 42px; color: var(--ink, #102a43); background: white; border: 1px solid #9ccfc5; border-radius: 7px; font: inherit; }
.case-reader-controls__all { min-height: 42px; padding: .55rem .8rem; color: var(--brand-dark, #055b53); background: white; border: 1px solid #9ccfc5; border-radius: 7px; font: inherit; font-size: .88rem; font-weight: 800; cursor: pointer; }
.case-reader-controls__all:hover, .case-reader-controls__all:focus-visible { border-color: var(--brand, #08756a); background: #e3f5f1; outline: none; }
.case-reader-controls__status { grid-column: 1 / -1; margin: 0; color: var(--ink-2, #334e68); font-size: .83rem; line-height: 1.45; }
.case-reader-controls__status strong { color: var(--brand-dark, #055b53); }

@media (min-width: 981px) {
  .case-sidebar--with-outline .case-outline__body { max-height: min(30vh, calc(100vh - 32rem)); }
}

@media (max-width: 980px) {
  .case-outline { grid-column: 1 / -1; }
  .case-outline__toggle { display: inline-flex; gap: .45rem; align-items: center; min-height: 40px; padding: .35rem .55rem; color: var(--brand-dark, #055b53); background: var(--surface-2, #f5f8fa); border: 1px solid var(--line, #d8e1e8); border-radius: 7px; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
  .case-outline__body { max-height: none; }
  .case-outline.is-collapsed .case-outline__body { display: none; }
  .case-reader-controls { grid-template-columns: 1fr; }
  .case-reader-controls__all { width: 100%; }
}
