.empty .solid-button { margin: .8rem .4rem .2rem; }
.share-button { background: var(--primary); color: var(--on-primary); }
.share-button:hover { background: var(--primary-hover); color: var(--on-primary); }
.sidebar .shared-side { padding: 2rem 1rem; overflow: auto; }
.shared-side .workspace-nav { margin-bottom: 1.8rem; }
.shared-side .side-label { margin-top: 1.2rem; }
.shared-side .active-file { padding: .65rem; font-size: .96rem; display: flex; align-items: baseline; gap: .55rem; overflow-wrap: anywhere; }
.shared-side .people { padding: 0 .65rem; display: grid; gap: .5rem; }
.person { display: flex; align-items: center; gap: .55rem; color: var(--ink); font-size: .92rem; }
.person::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--person); border: 1px solid var(--side-muted); flex: none; }
.shared-mode .sidebar-top .new-button, .shared-mode .side-scroll, .shared-mode .side-bottom, .shared-mode .paper-actions, .shared-mode .search-button { display: none; }
.shared-mode .ql-editor[contenteditable=false] { cursor: text; user-select: text; }
.shared-mode .ql-cursors { pointer-events: none; }
.shared-mode .ql-cursor-flag { z-index: 2; }
.shared-mode .ql-cursor-name { color: #1e1a32; }
.shared-mode #writing-area .ql-editor { min-height: 18rem; }
.shared-mode .draft-kind { max-width: 100%; }
.shared-mode .feedback-dot { margin-left: .25rem; }
.shared-mode .statusbar #save-state { overflow-wrap: anywhere; }
.sharing-gate { margin: auto; padding: clamp(1.3rem, 5vw, 2.5rem); max-width: 34rem; }
.sharing-gate h1 { font: 400 clamp(2.75rem, 2.4rem + 2vw, 3.6rem)/1.04 var(--display); letter-spacing: -.023em; color: var(--ink); margin: 0 0 .75rem; text-wrap: balance; }
.sharing-gate p { color: var(--muted); font: 400 1.15rem/1.52 var(--prose); }
.sharing-gate .solid-button { margin: .3rem .5rem .3rem 0; }
dialog select, dialog textarea {
  width: 100%; font: inherit; border: 1px solid var(--control-line); border-radius: .35rem;
  background: var(--paper); color: var(--ink); padding: .65rem .75rem;
}
dialog select { appearance: auto; accent-color: var(--primary); }
dialog textarea { resize: vertical; min-height: 5rem; }
dialog select + label, dialog input + label, dialog textarea + .solid-button { margin-top: .85rem; }
dialog label small { color: var(--muted); font-weight: 400; }
.check-label { display: flex; align-items: center; gap: .5rem; margin: .9rem 0; }
.check-label input { width: 1rem; height: 1rem; padding: 0; accent-color: var(--primary); }
#share-form > .solid-button { margin-top: .3rem; }
.copy-line { display: flex; gap: .4rem; }
.copy-line input { min-width: 0; flex: 1; }
.copy-line button { white-space: nowrap; }
#created-link, #active-links:not(:empty), #version-list:not(:empty), #feedback-list:not(:empty) { margin-top: 1.2rem; }
dialog h3 { font: 600 .95rem var(--sans); margin: .25rem 0 .6rem; }
.entry { border-top: 1px solid var(--line); padding: .8rem 0; display: grid; gap: .35rem; }
.entry strong { font-size: .98rem; overflow-wrap: anywhere; }
.entry small, .dialog-message, .form-hint { font-size: .88rem; color: var(--muted); line-height: 1.5; }
.dialog-message:empty { margin: 0; }
.thread-reply { border-left: 2px solid var(--side-line); padding: .15rem .7rem; margin: .2rem 0 .2rem .4rem; }
.thread-reply p { margin: .2rem 0; }
.open-native { display: inline-block; color: var(--primary); margin: .25rem 0 .75rem; text-underline-offset: .23rem; }
#reply-context { margin-bottom: .65rem; }
#reply-context a { margin-left: .5rem; color: var(--primary); }
#name-form .dialog-footer a { align-self: center; }
.entry p { margin: .15rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.entry blockquote, #selected-quote {
  border-left: 3px solid var(--accent); color: var(--text); padding: .25rem .7rem; margin: .25rem 0;
  font: italic 1.04rem/1.5 var(--prose); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 8rem; overflow: auto;
}
.entry-actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.entry-actions button { color: var(--primary); border: 1px solid var(--control-line); border-radius: .35rem; padding: .35rem .63rem; font-size: .88rem; }
.entry-actions button:hover { background: var(--pale); }
.solid-button[href] { text-decoration: none; }
dialog[open] { max-height: min(85dvh, 48rem); overflow: auto; }
@media (max-width: 740px) {
  .shared-mode .side-bottom { display: block; margin: .5rem 0 0; padding: 0 1rem; }
  .shared-mode .side-bottom > :not([data-appearance]) { display: none; }
  .shared-mode .shared-side { padding-top: 1rem; min-height: 0; }
}
@media (max-width: 575px) {
  .shared-mode .breadcrumbs button, .shared-mode .breadcrumbs > span[aria-hidden], .shared-mode .topbar-divider { display: none; }
  .shared-mode #focus-button span, .shared-mode #show-feedback > span:first-of-type { display: none; }
  #share-button { padding-inline: .6rem; }
}
