#sharedPapView { min-width: 0; --border: var(--line); }
#sharedPapView .shared-access, #sharedPapView .shared-project-state { color: var(--muted); font-size: .875rem; }
#sharedPapView .shared-prose { white-space: pre-line; max-width: 960px; line-height: 1.6; }
#sharedPapView #sharedFrame > .section-head { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
#sharedPapView .shared-pap-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 18px; }
#sharedPapView .workspace-tile { grid-template-columns: minmax(0,1fr); align-content: start; min-width: 0; }
#sharedPapView .workspace-tile > h3 { grid-column: 1; margin: 0; min-width: 0; font-size: 1.125rem; overflow-wrap: anywhere; }
#sharedPapView .shared-shortcuts { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px 0; }
#sharedPapView .shared-locks { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px; margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); }
#sharedPapView .shared-lock { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; justify-content: center; min-height: 88px; padding: 14px; border: 1px solid #a6b0b8; border-radius: 6px; background: #f2f4f5; color: #47515a; opacity: 1; cursor: not-allowed; text-align: left; }
#sharedPapView .shared-lock > span { display: flex; align-items: center; gap: 10px; }
#sharedPapView .shared-lock small { font-size: .75rem; font-weight: 400; }
#sharedPapView .shared-lock svg { flex-shrink: 0; color: #59656e; }
#sharedPapView .shared-locked-message { border-left: 4px solid #59656e; padding: 16px; background: #f2f4f5; display: flex; gap: 12px; align-items: center; }
#sharedPapView .shared-system { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,240px),1fr)); gap: 24px; list-style: none; padding: 0; }
#sharedPapView .shared-system > li { border-top: 3px solid var(--accent); padding: 12px 0; }
#sharedPapView .shared-system ul { border-left: 1px solid var(--line); margin-top: 12px; padding-left: 24px; }
#sharedPapView .shared-system li li { padding: 6px 0; }
#sharedPapView .op-toolbar h3 { font-size: 1.125rem; }
#sharedPapView .op-toolbar a, #sharedPapView .op-audiences a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px; border-bottom: 3px solid transparent; }
#sharedPapView .op-toolbar a[aria-current=true], #sharedPapView .op-audiences a[aria-current=true] { border-color: #236844; font-weight: 700; }
#sharedPapView .op-nodes { margin: 16px 0 24px; }
#sharedPapView .op-map { position: relative; overflow: hidden; height: min(62vh,660px); min-height: 320px; width: 100%; }
#sharedPapView .op-map canvas { display: block; width: 100%; height: 100%; }
#sharedPapView .wf-plane-back { position: absolute; z-index: 1; transform: translate(-50%,-50%); width: 44px; height: 44px; min-width: 44px; padding: 8px; border: 2px solid #1c1e40; border-radius: 8px; color: #1c1e40; background: #f8fafc; touch-action: none; user-select: none; }
#sharedPapView .op-node { background: #f8fafc; color: #1c1e40; }
#sharedPapView .op-node:hover { background: #e8f2ec; color: #1c1e40; }
#sharedPapView .shared-document { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
#sharedPapView .shared-document-view { margin: 20px auto; max-width: 1120px; min-width: 0; }
#sharedPapView .shared-document-view h3 { font-size: 1.125rem; overflow-wrap: anywhere; min-width: 0; }
#sharedPapView .shared-document-view .section-head { align-items: flex-start; flex-wrap: wrap; }
#sharedPapView .shared-document-view img { display: block; width: 100%; height: auto; background: white; border: 1px solid var(--line); }
#sharedPapView .shared-document-view iframe { width: 100%; height: 78vh; border: 1px solid var(--line); background: white; }
#sharedPapView .shared-feedback { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
#sharedPapView .shared-feedback.feedback-compose-only { margin: 0; padding: 0; border: 0; }
#sharedPapView .shared-comment-pen { position: fixed; z-index: 20; right: max(20px,env(safe-area-inset-right)); bottom: max(20px,env(safe-area-inset-bottom)); display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 12px; background: white; color: #1c1e40; border: 1px solid #a6b0b8; border-radius: 6px; box-shadow: 0 3px 12px #1c1e4026; }
#sharedPapView .shared-comment-pen:hover { background: #e8f2ec; border-color: #236844; }
#sharedPapView .shared-comment-pen svg { width: 24px; height: 24px; }
#sharedPapView .pr-quick-dialog { width: min(540px,calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; overflow: auto; }
#sharedPapView .pr-quick-dialog .sp-panel-head { margin-bottom: 12px; }
#sharedPapView .pr-quick-dialog h2 { margin: 0; }
#sharedPapView .pr-quick-dialog #feedbackForm { margin-bottom: 0; min-width: 0; }
#sharedPapView .pr-quick-source { margin: 0; color: var(--muted); font-size: .8125rem; font-weight: 400; overflow-wrap: anywhere; }
#sharedPapView .pr-quick-dialog #feedbackText { min-height: 140px; max-height: 40dvh; }
#sharedPapView .pr-quick-dialog #feedbackStatus:empty, #sharedPapView .pr-quick-notice:empty { display: none; }
#sharedPapView .shared-feedback h2 { font-size: 1.125rem; }
#sharedPapView .sp-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#sharedPapView .sp-icon { padding: 10px; width: 44px; height: 44px; flex-shrink: 0; background: white; color: var(--ink); border: 1px solid var(--line); }
#sharedPapView .shared-feedback form { max-width: 960px; display: grid; gap: 12px; }
#sharedPapView .shared-feedback form > button { justify-self: start; }
#sharedPapView .shared-feedback textarea { width: 100%; min-height: 120px; resize: vertical; }
#sharedPapView .shared-feedback select { width: 100%; }
#sharedPapView .pr-comments { list-style: none; padding: 0; margin: 24px 0; max-width: 1000px; }
#sharedPapView .pr-comment { border-top: 1px solid var(--line); padding: 16px 0; }
#sharedPapView .pr-comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
#sharedPapView .pr-comment-head time, #sharedPapView .pr-comment-source, #sharedPapView .pr-comment > small { color: var(--muted); font-size: .875rem; }
#sharedPapView .pr-comment-head button { margin-left: auto; }
#sharedPapView .pr-comment-source { display: block; overflow-wrap: anywhere; margin: 8px 0; }
#sharedPapView .pr-comment p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0; }
#sharedPapView .pr-reply-context { display: flex; align-items: center; gap: 12px; }
@media(max-width:650px) {
  #sharedPapView .pap-phases.compact { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #sharedPapView .pap-phases.compact a:last-child { grid-column: 1 / -1; }
  #sharedPapView .pap-phases a { overflow-wrap: anywhere; }
  #sharedPapView .op-map { height: 440px; min-height: 320px; }
  #sharedPapView .op-crumbs { flex-wrap: wrap; }
  #sharedPapView .shared-locks { grid-template-columns: minmax(0,1fr); }
}
