#shareWorkspace{height:100%;width:100%;min-width:0;background:var(--bg-canvas);overflow:auto;color:var(--font-b-1)}
#shareWorkspace[hidden],#boardFrame[hidden]{display:none!important}
.sharing-link{border:0;padding:0;background:transparent;color:var(--font-link);font-family:inherit;font-size:14px;line-height:22px;cursor:pointer;white-space:nowrap}
.sharing-link:hover{color:var(--font-link-hover)}
.sharing-secondary{font-size:12px;line-height:20px;color:var(--font-b-3)}
.sharing-split-actions{align-items:center;justify-content:space-between}
.sharing-split-actions>.sharing-action-group{margin-left:auto}
.sharing-action-group{display:flex;gap:12px}
.sharing-danger-text{color:var(--status-danger)}
.sharing-danger-text:hover{color:var(--control-danger-hover)}
.btn.sharing-danger{background:var(--bg-surface);color:var(--status-danger);border-color:var(--status-danger)}
.btn.sharing-danger:hover{background:var(--bg-surface);color:var(--control-danger-hover);border-color:var(--control-danger-hover)}
.btn.sharing-outlined{background:var(--bg-surface);color:var(--font-link);border-color:var(--font-link)}
.btn.sharing-outlined:hover{background:var(--bg-surface);color:var(--font-link-hover);border-color:var(--font-link-hover)}
dialog[data-flow=share-request] .dialog-actions .btn{height:34px;min-width:92px}
dialog[data-flow=share-request] .share-summary{background:var(--reference-expanded-bg);border:1px solid rgba(221,223,225,.5)}
dialog[data-flow=share-request] .share-summary-title{font-size:14px;line-height:22px}
dialog[data-flow=share-request] .share-summary-owner{font-size:12px;line-height:20px;color:var(--font-b-4)}
dialog[data-flow=share-request] .share-summary>.iconfont{font-size:24px;line-height:24px}
.sharing-confirm-text{font-size:14px;line-height:22px;margin:0;color:var(--font-b-2)}
dialog[data-flow=share-confirm],dialog[data-flow=share-request],dialog[data-flow=share-history]{width:min(490px,calc(100vw - 32px));border-radius:6px}
.sharing-permission-note{display:flex;align-items:center;gap:4px}
.sharing-forward-info{margin-top:16px}
.sharing-request-facts{display:grid;grid-template-columns:70px 1fr;gap:12px;margin:20px 0 0;font-size:14px;line-height:22px}
.sharing-request-facts dt{color:var(--font-b-3)}
.sharing-request-facts dd{margin:0;overflow-wrap:anywhere}
.sharing-history{margin-top:16px}
.sharing-history-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:12px 0;border-bottom:1px solid var(--border-subtle);font-size:14px;line-height:22px}
.sharing-history-row>.sharing-secondary{white-space:nowrap}
.sharing-access{display:flex;flex-direction:column;min-height:100%;height:100%}
.sharing-access-header{min-height:60px;height:60px;flex:0 0 60px;display:flex;align-items:center;gap:16px;padding:0 24px;border-bottom:1px solid var(--border-subtle)}
.sharing-access-header>.sharing-link:first-child{color:var(--font-b-2);font-size:13px}
.sharing-access-header>.sharing-link:last-child:not(:first-child){margin-left:auto}
.sharing-access-title{font-size:14px;line-height:22px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sharing-access-header>.sharing-secondary{white-space:nowrap}
.sharing-access-frame{flex:1;width:100%;min-height:500px;border:0;background:var(--bg-canvas)}
.sharing-access-state{max-width:460px;width:100%;margin:84px auto 32px;padding:0 24px;text-align:center}
.sharing-empty-image{width:112px;height:96px;object-fit:contain;margin-bottom:24px}
.sharing-access-state h2{font-size:16px;line-height:24px;font-weight:600;margin:0 0 8px}
.sharing-access-state>p{margin:0 0 20px;font-size:14px;line-height:22px}
.sharing-access-form{text-align:left;margin-top:24px}
.sharing-access-form .form-field{display:block;margin-bottom:16px}
.sharing-access-form .field-label{display:block;width:auto;padding:0;margin-bottom:8px;font-size:14px;font-weight:400}
.sharing-access-form>.btn{display:block;margin:0 auto;height:32px}
.sharing-access-form .flow-error{font-size:12px;color:var(--status-danger);margin:0 0 12px}
dialog[data-flow=publish] input[type=checkbox]+.radio-indicator{border-radius:3px}
dialog[data-flow=publish] .radio-option:has(input:disabled){color:var(--font-b-3);cursor:default}
@media(max-width:650px){.sharing-access-header{padding:0 16px;gap:12px}.sharing-access-header>.sharing-secondary{display:none}.sharing-access-state{margin-top:48px}.sharing-split-actions{gap:12px;flex-wrap:wrap}.sharing-action-group{gap:8px}.sharing-history-row{flex-direction:column;gap:4px}}
/* Sharing lifecycle states follow the existing PaiWork form and feedback tokens. */
dialog[data-flow=share-notifications]{width:min(490px,calc(100vw - 32px));border-radius:6px}
.sharing-notifications{margin-top:4px;max-height:420px;overflow-y:auto}
.sharing-notice{display:flex;align-items:flex-start;gap:10px;width:100%;padding:14px 0;border:0;border-bottom:1px solid var(--border-subtle);background:transparent;text-align:left;font-family:inherit;font-size:14px;line-height:22px;color:var(--font-b-2);cursor:pointer}
.sharing-notice:last-child{border-bottom:0}
.sharing-notice>.iconfont{font-size:18px;line-height:22px;color:var(--font-b-3)}
.sharing-notice-text{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.sharing-notice:hover .sharing-notice-text>span{color:var(--font-link)}
.sharing-notice.is-unread .sharing-notice-text>span{color:var(--font-b-1)}
.sharing-notice.is-unread:hover .sharing-notice-text>span{color:var(--font-link)}
.sharing-unread-dot{width:6px;height:6px;flex:0 0 6px;margin-top:8px;border-radius:50%;background:var(--status-danger)}
.sharing-notifications-empty{padding:32px 0;text-align:center}
.sharing-pending-summary{padding:12px;background:var(--reference-expanded-bg);border-radius:6px;margin:20px 0;text-align:left;font-size:14px;line-height:22px}
.sharing-pending-summary>p{margin:4px 0 8px;overflow-wrap:anywhere}
.sharing-reason-meta{display:flex;justify-content:space-between;gap:12px;font-size:12px;line-height:20px;color:var(--font-b-3);margin-top:-10px;margin-bottom:16px}
.sharing-retry-note{margin:0 0 12px;color:var(--font-b-3);text-align:center}
.sharing-retry-note[hidden]{display:none}
.sharing-access-form>.btn:disabled{cursor:not-allowed;opacity:.45}
