/* The top bar banner's drawer (decision 76). Liquid Glass (decision 71): the drawer is the dialog
   material (.glass-dialog in the markup); each upload inside is a panel, and the timeline rows are panels
   too, so nothing blurred sits inside it. Tokens only, sans type throughout (decision 38). */

.rd-dw-root { position: fixed; inset: 0; z-index: 80; }
.rd-dw-scrim { position: absolute; inset: 0; background: var(--scrim); }
.rd-dw {
  position: absolute; top: 12px; right: 12px; bottom: 12px;
  width: min(460px, calc(100vw - 24px));
  display: flex; flex-direction: column;
  border-radius: var(--radius-panel);
  color: var(--ink); font-family: var(--font-sans);
}
.rd-dw-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; border-bottom: 1px solid var(--line); }
.rd-dw-head .grow { flex: 1; min-width: 0; }
.rd-dw-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--surface-solid); flex-shrink: 0; }
.rd-dw-title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.rd-dw-sub { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-dw-close { flex-shrink: 0; }
.rd-dw-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.rd-dw-upload { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius-card); background: var(--panel-bg); box-shadow: var(--shadow-panel); }
.rd-dw-uh { display: flex; align-items: flex-start; gap: 10px; }
.rd-dw-uh .grow { flex: 1; min-width: 0; }
.rd-dw-ut { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; }
.rd-dw-us { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rd-dw-tl { max-height: 360px; overflow-y: auto; padding: 2px 2px 4px 0; }
.rd-dw-tl .tl { gap: 6px; }
.rd-dw-tl .tl-card { box-shadow: inset 0 0 0 1px var(--line); }
.rd-dw-open { align-self: flex-start; gap: 6px; }
.rd-dw-note { margin: 0; font-size: 13px; line-height: 19px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.rd-dw-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); }
.rd-dw-all { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.rd-dw-all:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; border-radius: 4px; }
.rd-dw-fine { font-size: 12px; color: var(--muted); }

/* The live dot inside a "Reading" or "Preparing workpapers" chip. */
.rd-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; }

@media (max-width: 640px) {
  .rd-dw { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .rd-dw-tl { max-height: none; overflow: visible; }
}

@media (prefers-reduced-motion: no-preference) {
  .rd-dw-scrim { animation: rd-dw-fade 0.2s ease-out both; }
  .rd-dw { animation: rd-dw-in 0.28s cubic-bezier(.22, 1, .36, 1) both; }
  .rd-live { animation: rd-dw-pulse 1.6s ease-in-out infinite; }
}
@keyframes rd-dw-fade { from { opacity: 0; } }
@keyframes rd-dw-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes rd-dw-pulse { 50% { opacity: 0.35; } }
