/* Personal workspace dialogs are available on app, resource and release pages. */
.workspace-dialog.modal { display: flex; flex-direction: column; padding: 0; width: min(44rem, calc(100% - 2rem)); max-width: none; max-height: min(86dvh, 50rem); border-radius: 16px; overflow: hidden; color: var(--text, #1f2338); }
.workspace-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--border, #d9d3c7); }
.workspace-dialog-head h2 { margin: 0; font-size: 1.4rem; }
.workspace-dialog-head > button { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--text-muted); background: transparent; cursor: pointer; font: 1.6rem/1 sans-serif; }
.workspace-dialog-head > button:hover { background: var(--surface-alt, #f3f4ef); }
.workspace-dialog-content { padding: 1rem 1.4rem 1.4rem; overflow: auto; overscroll-behavior: contain; }
.workspace-dialog .empty-state { margin: 0; padding: 1rem; text-align: center; }
.workspace-dialog [data-inbox-back] { min-height: 44px; margin: -0.4rem 0 0.5rem; border: 0; background: none; color: var(--brand-primary); font: inherit; cursor: pointer; }
.workspace-dialog :focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
@media (max-width: 600px) {
  .workspace-dialog.modal { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .workspace-dialog-head { padding: max(0.8rem, env(safe-area-inset-top)) 1rem 0.6rem; }
  .workspace-dialog-content { padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom)); }
}
.updates-empty-state { display: flex; flex-direction: column; align-items: center; padding: 3.75rem 1.5rem 4rem; }
.updates-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.1rem; border-radius: 50%; background: rgba(74,124,89,0.08); color: rgba(74,124,89,0.72); }
.updates-empty-state h2 { margin: 0 0 0.65rem; color: var(--text-muted); font-size: 1rem; font-weight: 500; line-height: 1.35; }
.updates-empty-state p { color: var(--text-subtle); font-size: 0.9rem; }
.updates-list { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 28px rgba(31,35,56,0.06); }
.updates-list-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.85rem; align-items: start; padding: 1.15rem 1.25rem; color: inherit; text-decoration: none; }
.updates-list-item + .updates-list-item { border-top: 1px solid var(--border); }
.updates-list-item:hover { background: rgba(74,124,89,0.045); }
.updates-unread-dot { width: 0.58rem; height: 0.58rem; margin-top: 0.42rem; border-radius: 50%; background: var(--brand-primary); box-shadow: 0 0 0 3px rgba(74,124,89,0.12); }
.updates-unread-dot.read { background: transparent; box-shadow: none; }
.updates-list-copy { min-width: 0; }
.updates-list-subject { display: block; margin-bottom: 0.3rem; font-weight: 700; line-height: 1.3; }
.updates-list-preview { display: block; overflow: hidden; color: var(--text-muted); font-size: 0.9rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.updates-list-side { display: flex; align-items: center; gap: 0.8rem; padding-top: 0.1rem; }
.updates-list-meta { color: var(--text-subtle); font-size: 0.78rem; white-space: nowrap; }
.updates-list-chevron { display: inline-flex; align-items: center; justify-content: center; color: var(--text-subtle); }
.updates-list-chevron svg { width: 0.95rem; height: 0.95rem; }
.updates-list-item:hover .updates-list-chevron { color: var(--text-muted); }
.update-thread-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 10px 28px rgba(31,35,56,0.06); }
.update-thread-head { padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--border); }
.update-thread-head h3 { margin: 0 0 0.3rem; font-size: 1.35rem; }
.update-thread-context { color: var(--text-muted); font-size: 0.85rem; }
.update-messages { display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem; }
.update-message { max-width: 88%; }
.update-message.user { margin-left: auto; }
.update-message-meta { margin-bottom: 0.3rem; color: var(--text-subtle); font-size: 0.76rem; }
.update-message.user .update-message-meta { text-align: right; }
.update-message-body { padding: 0.85rem 1rem; border: 1px solid rgba(74,124,89,0.16); border-radius: 4px 12px 12px 12px; background: rgba(74,124,89,0.07); line-height: 1.5; white-space: pre-wrap; }
.update-message.user .update-message-body { border-color: rgba(95,71,125,0.15); border-radius: 12px 4px 12px 12px; background: rgba(95,71,125,0.08); }
.update-message-action { display: flex; align-items: center; gap: 0.35rem; width: fit-content; margin-top: 0.65rem; color: var(--brand-primary); font-size: 0.86rem; font-weight: 700; text-decoration: none; }
.update-message-action:hover { text-decoration: underline; text-underline-offset: 2px; }
.update-reply { padding: 1.1rem 1.3rem 1.3rem; border-top: 1px solid var(--border); background: rgba(240,240,236,0.55); }
.update-reply p { margin: 0 0 0.65rem; color: var(--text-muted); font-size: 0.86rem; }
.update-reply textarea { width: 100%; min-height: 95px; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; resize: vertical; }
.update-reply textarea:focus { outline: 3px solid rgba(74,124,89,0.14); border-color: var(--brand-primary); }
.update-reply-actions { display: flex; justify-content: flex-end; margin-top: 0.65rem; }
.update-readonly-note { margin: 0; padding: 1rem 1.3rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.86rem; }
.request-detail-body:has(> .request-updates-list) { padding: 0; }
.request-updates-list { display: flex; flex-direction: column; }
.request-updates-list .updates-list-item { padding-inline: 1.5rem; border: 0; border-radius: 0; }
.request-updates-list .updates-list-item + .updates-list-item { border-top: 1px solid var(--border); }

@media (max-width: 700px) {
	  .updates-list-item { padding: 1rem; }
	  .request-updates-list .updates-list-item { padding-inline: 1.125rem; }
	  .updates-list-side { gap: 0.5rem; }
	  .update-message { max-width: 96%; }
}
