/* Keep scrolling available without the native white rail covering the library. */
.reviews-list { scrollbar-width:none; -ms-overflow-style:none; }
.reviews-list::-webkit-scrollbar { display:none; width:0; height:0; }
.reviews-library,.reviews-comments { position:relative; }
.reviews-panel-resize { display:none; }
.reviews-section-heading .reviews-section-toggle { display:flex; align-items:center; gap:7px; flex:1; min-width:0; padding:4px 0; text-align:left; color:inherit; }
.reviews-section-toggle:focus-visible,.reviews-panel-resize:focus-visible { outline:2px solid #ff6b2b; outline-offset:2px; }
.reviews-section-chevron { display:inline-block; flex:none; width:10px; text-align:center; transform:rotate(90deg); }
.reviews-section-toggle[aria-expanded=false] .reviews-section-chevron { transform:rotate(0deg); }
.reviews-section-files[hidden] { display:none!important; }
.reviews-section.is-drop-target > .reviews-section-heading { background:#ff6b2b18; outline:1px dashed #ff6b2b; }
.reviews-file-copy strong { white-space:normal; overflow-wrap:anywhere; text-overflow:clip; }
@media (min-width:641px) and (pointer:fine), (min-width:901px) {
  body:not(.legacy-public-review):not(.reviews-hud-hidden) .reviews-view.reviews-library-resizable { grid-template-columns:var(--reviews-library-width,250px) minmax(0,1fr) var(--reviews-comments-width,340px); }
  .reviews-panel-resize { display:block; position:absolute; top:0; bottom:0; width:10px; z-index:4; cursor:col-resize; touch-action:none; }
  .reviews-library-resize { right:-5px; }
  .reviews-comments-resize { left:-5px; }
  .reviews-panel-resize::after { content:''; position:absolute; left:4px; top:0; bottom:0; width:2px; background:transparent; }
  .reviews-panel-resize:hover::after,.reviews-panel-resize:focus-visible::after,.reviews-panel-resize.is-dragging::after { background:#ff6b2b; }
  body.reviews-library-dragging { cursor:col-resize; user-select:none; }
}
@media (min-width:901px) and (max-width:1180px) {
  body:not(.legacy-public-review):not(.reviews-hud-hidden) .reviews-view.reviews-library-resizable { grid-template-columns:var(--reviews-library-width,210px) minmax(0,1fr) var(--reviews-comments-width,290px); }
}
@media (min-width:901px) {
  body.legacy-public-review:not(.reviews-hud-hidden) .reviews-view.reviews-library-resizable { grid-template-columns:minmax(0,1fr) var(--reviews-comments-width,340px); }
}
@media (max-width:900px) { .reviews-comments-resize { display:none; } }
@media (min-width:641px) and (max-width:900px) and (pointer:fine) {
  body:not(.legacy-public-review):not(.reviews-hud-hidden) .reviews-view.reviews-library-resizable { grid-template-columns:var(--reviews-library-width,185px) minmax(0,1fr); }
}
@media (max-width:640px), (max-width:900px) and (pointer:coarse) {
  #reviewsView > .reviews-library.reviews-mobile-sheet-open { scrollbar-width:none; }
  #reviewsView > .reviews-library.reviews-mobile-sheet-open::-webkit-scrollbar { display:none; }
  .reviews-section-heading .reviews-section-toggle { min-height:36px; }
}

/* Workspace controls stay within reach, including for anonymous viewers. */
.reviews-view-actions { display:flex; align-items:center; gap:6px; flex:none; }
.reviews-view-actions > button,#reviewsView .reviews-view-actions #reviewsShortcutsBtn { display:grid; place-items:center; width:34px; height:34px; padding:5px; border:1px solid #4a4a4a; border-radius:4px; color:#ddd; background:#1d1d1d; }
.reviews-view-actions svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.reviews-view-actions button:hover,.reviews-view-actions button:focus-visible { border-color:#fff; color:#fff; }
.reviews-view-actions .reviews-shortcuts { position:relative; inset:auto; }
.reviews-view-actions .reviews-shortcuts-menu { top:calc(100% + 8px); bottom:auto; }
.reviews-annotation-bar.is-readonly { display:none!important; }
#reviewsView .reviews-mobile-fullscreen { display:none!important; }
.reviews-controls-resize { display:none; }
.reviews-controls-dock,.reviews-controls-content { display:contents; }
@media (min-width:641px) and (pointer:fine), (min-width:901px) {
  body:not(.reviews-hud-hidden) #reviewsView.reviews-library-resizable { grid-template-columns:var(--reviews-workspace-columns); height:calc(100dvh - var(--reviews-top-offset,54px)); min-height:0; }
  #reviewsView .reviews-main { min-height:0; min-width:0; }
  #reviewsView.reviews-library-collapsed > .reviews-library,#reviewsView.reviews-comments-collapsed > .reviews-comments { display:none!important; }
  #reviewsView .reviews-main-head { flex-wrap:wrap; gap:8px; padding:8px 12px; }
  #reviewsView .reviews-main-head h2 { flex:1 1 160px; min-width:0; }
  #reviewsView .reviews-main-actions { margin-left:auto; flex-wrap:wrap; }
  #reviewsView .reviews-main-head > .reviews-view-actions { margin-left:auto; }
  #reviewsStage { padding:12px; }
  .reviews-controls-dock { display:block; position:relative; flex:0 0 auto; min-height:0; max-height:50%; padding-top:8px; background:#191919; }
  .reviews-controls-content { display:block; height:100%; overflow:auto; scrollbar-width:none; }
  .reviews-controls-content::-webkit-scrollbar { display:none; }
  .reviews-controls-dock .reviews-timeline { flex:none; }
  .reviews-controls-resize { display:block; position:absolute; top:0; left:0; width:100%; height:8px; cursor:row-resize; touch-action:none; z-index:5; background:#222; }
  .reviews-controls-resize::after { content:''; position:absolute; width:38px; height:2px; top:3px; left:calc(50% - 19px); background:#666; }
  .reviews-controls-resize:hover::after,.reviews-controls-resize:focus-visible::after { background:#ff6b2b; }
  .reviews-controls-resize:focus-visible { outline:1px solid #ff6b2b; outline-offset:-1px; }
  body.reviews-controls-dragging { cursor:row-resize; user-select:none; }
  .reviews-controls-dock .reviews-tool-menu { position:fixed; z-index:60; }
  #reviewsView .reviews-annotation-bar { padding-right:12px; }
  #reviewsView .reviews-comments { overflow:visible; }
  #reviewsView .reviews-comments-head { padding:14px 16px 10px; }
  #reviewsView .reviews-guest-prompt { padding:16px; overflow:auto; scrollbar-width:none; }
}
@media (min-width:641px) and (max-width:900px) and (pointer:fine) {
  body:not(.reviews-hud-hidden) #reviewsView.reviews-library-resizable { height:auto; min-height:calc(100dvh - var(--reviews-top-offset,54px)); }
  #reviewsView .reviews-main { height:calc(100dvh - var(--reviews-top-offset,54px)); min-height:360px; }
  #reviewsView .reviews-comments { max-height:50dvh; }
}
@media (max-width:640px), (max-width:900px) and (pointer:coarse) {
  #reviewsView .reviews-view-actions .reviews-panel-toggle { display:none; }
  #reviewsView .reviews-view-actions > button,#reviewsView .reviews-view-actions #reviewsShortcutsBtn { width:40px; height:40px; }
}
#reviewsView .reviews-main:fullscreen { display:flex; flex-direction:column; width:100vw; height:100dvh; min-height:0; background:#111; }
#reviewsView .reviews-main:fullscreen .reviews-stage { flex:1 1 0; min-height:0; }
#reviewsView .reviews-main:fullscreen .reviews-panel-toggle,#reviewsView .reviews-main:fullscreen #reviewsPlaybackTools,#reviewsView .reviews-main:fullscreen #reviewsAnnotationBar,#reviewsView .reviews-main:fullscreen .reviews-controls-resize { display:none!important; }
#reviewsView .reviews-main:fullscreen .reviews-controls-dock { height:auto!important; padding:0; }
body.reviews-hud-hidden .reviews-controls-dock { display:none; }
