/* BUILD 13.9 — case overview, timeline and scalable navigation */
@media(min-width:761px){
  .sidebar{overflow:hidden}
  .side-brand{flex:0 0 auto;padding-bottom:14px}
  .side-nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:2px 5px 10px 0;scrollbar-width:thin;scrollbar-color:#D5BDA8 transparent}
  .side-nav::-webkit-scrollbar{width:7px}.side-nav::-webkit-scrollbar-thumb{background:#D5BDA8;border-radius:20px}.side-nav::-webkit-scrollbar-track{background:transparent}
  .nav-item{padding-top:9px;padding-bottom:9px}
  .sidebar-bottom{flex:0 0 auto;background:#FBF6EF;padding-top:11px}
}
.record-dialog{max-width:1120px}.record-dialog>.dialog-shell{max-height:calc(100vh - 38px);overflow:auto}
.b139-shell{display:grid;gap:16px}.b139-intro{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.b139-intro h3,.b139-section-title h3{font-family:Georgia,"Times New Roman",serif;margin:0;color:var(--brown)}.b139-intro h3{font-size:30px}.b139-intro p:not(.eyebrow){color:var(--muted);margin:7px 0 0;line-height:1.5}.b139-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.b139-warning{border:1px solid #D6E0CF;background:#F3F8F1;color:#48634D;border-radius:13px;padding:11px 13px;font-size:12px;line-height:1.5}
.b139-brief,.b139-timeline-card{border:1px solid var(--line);background:#FFFDFC;border-radius:17px;padding:17px}.b139-section-title,.b139-brief-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}.b139-section-title>span{font-size:11px;color:var(--muted)}.b139-brief-head{padding:13px 0;border-bottom:1px solid #EEE2D7}.b139-brief-head>div{display:grid;gap:5px}.b139-brief-head small{color:var(--muted)}.b139-status{width:max-content;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:850}.b139-status.approved{background:var(--green-bg);color:var(--green)}.b139-status.draft{background:var(--orange-bg);color:var(--orange)}
.b139-lead{background:#F6F8F2;border-left:4px solid var(--green);border-radius:12px;padding:14px;margin-top:14px}.b139-lead h4,.b139-brief-grid h4{margin:0 0 7px;font-size:12px;text-transform:uppercase;letter-spacing:.06em}.b139-lead p{margin:0;line-height:1.55}.b139-brief-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}.b139-brief-grid section{border:1px solid #EBDED2;border-radius:13px;padding:13px;background:#fff;min-height:105px}.b139-brief-grid ul{margin:0;padding-left:18px;display:grid;gap:5px;font-size:12px;line-height:1.45}.b139-empty-value{color:var(--muted);font-size:12px;margin:0}.b139-uncertainties{background:#FFF9F0!important}.b139-sources{margin-top:13px;padding-top:12px;border-top:1px solid #EEE2D7}.b139-sources>strong{display:block;font-size:11px;margin-bottom:7px}.b139-sources>div{display:flex;gap:6px;flex-wrap:wrap}.b139-sources button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:5px 8px;font-size:10px;color:var(--muted)}.b139-sources span{font-size:10px;color:var(--muted);align-self:center}.b139-empty-brief{padding:24px;border:1px dashed var(--line);border-radius:13px;text-align:center}.b139-empty-brief p{max-width:650px;margin:8px auto 0;color:var(--muted);line-height:1.5;font-size:12px}
.b139-filters{display:flex;gap:6px;overflow:auto;margin:14px 0;padding-bottom:3px}.b139-filter{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 10px;font-size:10px;font-weight:800}.b139-filter.active{background:var(--brown);border-color:var(--brown);color:#fff}.b139-timeline{display:grid}.b139-event{display:grid;grid-template-columns:24px 1fr;gap:10px;padding:0 0 17px}.b139-event-marker{position:relative}.b139-event-marker:before{content:"";position:absolute;width:10px;height:10px;left:5px;top:4px;border-radius:50%;background:var(--terr)}.b139-event.cloud .b139-event-marker:before{background:#8B9AAA}.b139-event-marker:after{content:"";position:absolute;left:9px;top:16px;bottom:-2px;width:1px;background:var(--line)}.b139-event:last-child .b139-event-marker:after{display:none}.b139-event>div:last-child{border:1px solid #EDE2D8;border-radius:12px;padding:11px 12px;background:#fff;transition:.3s}.b139-event.highlight>div:last-child{outline:3px solid rgba(201,107,75,.25);background:#FFF5EC}.b139-event-head{display:flex;justify-content:space-between;gap:12px}.b139-event-head strong{font-size:12px}.b139-event-head span,.b139-event small{font-size:10px;color:var(--muted)}.b139-event p{font-size:11px;color:var(--muted);line-height:1.45;margin:5px 0}.b139-loading{display:grid;gap:5px;text-align:center;padding:38px;border:1px dashed var(--line);border-radius:15px}.b139-loading span{font-size:12px;color:var(--muted)}
.b139-flow-brief{margin-top:12px;border:1px solid #C8D9C2;background:#F3F8F1;border-radius:13px;padding:12px}.b139-flow-brief strong,.b139-flow-brief span{display:block}.b139-flow-brief span{font-size:11px;color:var(--muted);line-height:1.45;margin-top:4px}.b139-flow-brief ul{font-size:11px;margin:8px 0;padding-left:18px}.b139-flow-brief button{border:0;background:transparent;color:var(--green);font-size:11px;font-weight:850;padding:4px 0}
@media(max-height:760px) and (min-width:761px){.side-brand img{width:38px;height:38px}.side-brand strong{font-size:14px}.nav-item{padding-top:8px;padding-bottom:8px}.admin-pill{margin-bottom:6px}.side-link{padding:4px 0}}
@media(max-width:760px){.b139-intro,.b139-section-title,.b139-brief-head{display:block}.b139-actions{justify-content:flex-start;margin-top:12px}.b139-brief-grid{grid-template-columns:1fr}.b139-section-title>span{display:block;margin-top:5px}.record-dialog>.dialog-shell{max-height:none}.b139-event-head{display:block}.b139-event-head span{display:block;margin-top:3px}}
