.case-drawer{width:min(1100px,calc(100vw - 32px));max-width:1100px}
#drawer-content{display:grid;grid-template-columns:minmax(0,1fr) 330px;align-items:start}
.record-main{min-width:0}.record-main .drawer-block{padding:24px 28px}
.record-notes-rail{border-left:1px solid #dce5eb;background:#f7f9fa;padding:24px;min-height:100%;min-width:0}
@media(min-width:761px){.record-notes-rail{position:sticky;top:var(--record-header-height,100px);min-height:0;max-height:calc(100dvh - var(--record-header-height,100px) - 16px);overflow-y:auto;overscroll-behavior:contain}}
.record-notes-rail h3{font-size:15px;margin:0 0 18px}
.record-notes-rail .note-form{padding:0}.record-notes-rail .note-form textarea{font-size:13px;background:white}
.record-notes-rail .note-item{border-bottom:1px solid #dce5eb;border-top:0;padding:18px 0}
.note-controls{display:flex;gap:4px;flex-wrap:wrap;margin-top:12px}
.note-controls button{padding:3px 6px;min-height:27px;font-size:11px;background:white}
.record-byline strong{font-size:11px;font-weight:500;color:#344f61}
.note-pin{color:#715722;background:#f7ebcb;border-radius:3px;padding:2px 5px}
.note-important{border-left:2px solid #b29555;padding-left:10px!important}
.note-archived{background:#edf1f4;padding-inline:10px!important}
.note-reply-context{font-size:11px!important;color:#526778;border-left:2px solid #9cadb9;padding-left:8px}
.notes-archive-toggle{margin:18px 0 0;font-size:11px}.notes-archive-toggle input{width:16px;height:16px}
#drawer-content.record-notes-only{display:block}#drawer-content.record-notes-only .record-notes-rail{border-left:0}
.record-provenance{margin-top:24px;font-size:12px}.record-provenance dl{display:grid;grid-template-columns:auto 1fr;gap:10px}.record-provenance dd{margin:0;overflow-wrap:anywhere}
.wu-record-fields{margin:0}.wu-record-fields>div{padding:12px 0;border-top:1px solid #e0e7eb}.wu-record-fields dt{font-size:12px;font-weight:500}.wu-record-fields dt small{font-weight:400;margin-left:10px}.wu-record-fields dd{display:flex;justify-content:space-between;gap:14px;align-items:start;margin:8px 0 0;font-size:13px;overflow-wrap:anywhere}.wu-record-fields dd span{min-width:0;white-space:pre-wrap}
@media(max-width:760px){.case-drawer{width:100vw;max-width:100vw}#drawer-content{grid-template-columns:1fr}.record-notes-rail{border-left:0;border-top:1px solid #dce5eb}.record-main .drawer-block{padding:22px}.record-notes-rail{padding:22px}.drawer-meta{gap:18px}}
