@media(min-width:781px){
  .sidebar { display:flex; flex-direction:column; height:calc(100dvh - 104px); min-height:240px }
  .sidebar .side-head { flex:none }
  #project-list { overflow:auto; min-height:42px }
  #side-updates { margin-top:auto; padding-top:18px; min-height:0; flex-shrink:0; max-height:53%; overflow:auto }
}
#updates-panel { border-top:1px solid var(--line); padding:10px 4px 2px; font-size:13px }
#updates-panel header,#updates-panel footer { display:flex; align-items:center; gap:6px }
#updates-panel header>.mini,#updates-panel footer button:last-child { margin-left:auto }
#updates-panel p { margin:5px 0 0; font-size:12px }
#updates-panel ul,.account-list { list-style:none; margin:6px 0; padding:0 }
#updates-panel li>button { display:flex; gap:6px; text-align:left; width:100%; padding:7px 3px; border-radius:5px }
#updates-panel li>button:hover { background:#e8eee4 }
#updates-panel li>button>span:last-child { min-width:0 }
#updates-panel li strong,#updates-panel li small,.unread-excerpt { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis }
#updates-panel li strong { font-size:12px } #updates-panel li small { color:var(--muted); font-size:11px }
.unread-badge,.unread-comment { flex:none; border-radius:10px; padding:0 6px; min-width:18px; background:#e5ede0; color:#33582f; font-size:11px; font-weight:650 }
.unread-comment { background:#edf2e7 }
.notify-option { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding:10px 2px }
.notify-option input[type=checkbox] { width:18px; height:18px; accent-color:var(--forest) }
#alert-toast { position:fixed; top:14px; right:16px; z-index:5; display:flex; align-items:flex-start; max-width:calc(100vw - 32px); width:290px; padding:9px; border:1px solid #bbcbb5; border-radius:8px; background:white; box-shadow:0 5px 18px #243c2724 }
.toast-message { flex:1; min-width:0; text-align:left; padding:4px }
.toast-message span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.account-list li,.pending-removal { display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px 2px; border-bottom:1px solid var(--line) }
.account-name { flex:1; overflow-wrap:anywhere; min-width:60px }
.account-name small { display:block; color:var(--muted) }
.pending-removal { background:#eef3e8; border-radius:6px; padding:8px 10px; margin-bottom:8px }
.pending-removal small { color:var(--muted) } .pending-removal button { margin-left:auto }
@media(max-width:780px){
 #mobile-updates:not(:empty) { margin-bottom:12px }
 #updates-panel { border:1px solid var(--line); border-radius:7px; padding:5px 10px; background:white }
 #updates-panel p { display:none }
 #updates-panel ul { max-height:24dvh; overflow:auto }
}
