.viewer-bulletin{--bulletin-line:clamp(12px,3.59cqi,14px);--bulletin-header:clamp(24px,7.18cqi,28px);position:absolute;z-index:8;top:max(calc(64px + env(safe-area-inset-top,0px)),15%);right:3%;width:21.5%;min-width:68px;max-width:112px;box-sizing:border-box;border:0;border-radius:5px;background:rgb(0 0 0 / 25%);color:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;font:10px/1.4 system-ui,sans-serif;overflow:visible;pointer-events:auto;touch-action:pan-y;box-shadow:none}
.viewer-bulletin[hidden],.viewer-bulletin [hidden]{display:none!important}
.viewer-bulletin header{display:flex;align-items:center;min-height:var(--bulletin-header)}
.viewer-bulletin button{display:grid;place-items:center;min-width:24px;min-height:24px;border:0;margin:0;padding:0;background:transparent;color:inherit;font:inherit;cursor:pointer;touch-action:manipulation}
.viewer-bulletin [data-bulletin-toggle]{display:flex;justify-content:space-between;gap:4px;flex:1;min-width:0;min-height:var(--bulletin-header);padding:4px 8px;text-align:left}
.viewer-bulletin strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(9px,2.7cqi,10.5px);line-height:16px;font-weight:500}
.viewer-bulletin svg{display:block;flex:none;width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.viewer-bulletin [data-bulletin-close]{position:absolute;top:-10px;right:-7px;width:24px;min-width:24px;height:24px;isolation:isolate}
.viewer-bulletin [data-bulletin-close]::before{content:"";position:absolute;z-index:-1;inset:6px;border-radius:50%;background:#0003;pointer-events:none}
.viewer-bulletin [data-bulletin-close] svg{width:8px;height:8px}
.viewer-bulletin p{box-sizing:content-box;max-height:min(calc(var(--bulletin-line)*4),18dvh);overflow:auto;overscroll-behavior:contain;scrollbar-width:none;margin:0;padding:0 7px 6px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:var(--bulletin-line);font-family:Arial,sans-serif;font-size:clamp(8px,2.56cqi,10px);font-weight:400;color:#ffffffe6}
.viewer-bulletin p::-webkit-scrollbar{display:none}
.viewer-bulletin nav{display:flex;justify-content:center;align-items:center;height:14px;gap:0;border:0}
.viewer-bulletin nav button{position:relative;flex:1;width:50%;height:24px;min-height:24px}
.viewer-bulletin nav button span{display:block;width:8px;height:2px;border-radius:1px;background:#ffffff55}
.viewer-bulletin nav button:first-child span{position:absolute;right:1px}
.viewer-bulletin nav button:last-child span{position:absolute;left:1px}
.viewer-bulletin nav button[aria-pressed=true] span{background:#fff}
.viewer-bulletin button:focus-visible{outline:1px solid #fff;outline-offset:-2px;border-radius:3px}
.viewer-bulletin.bulletin-collapsed [data-bulletin-toggle] svg{transform:rotate(180deg)}
#floatingVideoMount .viewer-bulletin{display:none!important}
.bulletin-editor form{display:grid;gap:12px;font-size:13px}.bulletin-editor label{display:grid;gap:5px}.bulletin-editor input,.bulletin-editor textarea,.bulletin-editor select{box-sizing:border-box;width:100%;min-width:0;padding:10px;border:1px solid #d5d5d5;border-radius:8px;background:#fff;color:#222;font-family:inherit;font-size:16px;line-height:1.5}.bulletin-editor textarea{resize:vertical}.bulletin-editor fieldset{display:grid;gap:10px;min-width:0;margin:0;padding:12px;border:1px solid #ddd;border-radius:10px}.bulletin-editor [hidden]{display:none!important}.bulletin-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.bulletin-editor button{min-height:44px;padding:8px 12px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#222;font:inherit;cursor:pointer}.bulletin-editor [data-bulletin-publish]{background:#111;border-color:#111;color:#fff}.bulletin-editor button:disabled{opacity:.5;cursor:default}.bulletin-editor-actions{display:flex;flex-wrap:wrap;gap:8px}.bulletin-editor p{margin:0;line-height:1.6}.bulletin-editor small{color:#707070}.bulletin-preview-stage{position:relative;min-height:290px;border-radius:12px;background:linear-gradient(145deg,#9a9186,#46413b);margin-top:8px}.bulletin-preview-stage .viewer-bulletin{top:15%;right:3%}.bulletin-preview-stage .viewer-bulletin p{margin:0;line-height:var(--bulletin-line)}.bulletin-preview-stage .viewer-bulletin button{min-width:24px;min-height:24px;padding:0;border:0;border-radius:0;background:transparent;color:#fff}.bulletin-preview-stage .viewer-bulletin [data-bulletin-toggle]{min-width:0;min-height:var(--bulletin-header);padding:4px 8px}@media(max-width:420px){.bulletin-settings{grid-template-columns:minmax(0,1fr)}}

/* Preview shares the viewer artwork, but must not inherit staff sidebar/header/form geometry. */
.bulletin-editor .bulletin-preview-stage{height:290px;min-height:290px;overflow:hidden;isolation:isolate;container-type:inline-size}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin{position:absolute;inset:auto;top:15%;right:3%;display:block;align-self:auto;flex:none;width:21.5%;min-width:68px;max-width:112px;height:auto;min-height:0;max-height:none;margin:0;padding:0;gap:0;overflow:visible;border:0;border-radius:5px;background:rgb(0 0 0 / 25%);color:#fff;box-shadow:none}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin header{position:static;inset:auto;display:flex;flex-direction:row;align-items:center;justify-content:normal;gap:0;height:auto;min-height:var(--bulletin-header);max-height:none;margin:0;padding:0;border:0;background:transparent;color:inherit}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin button{position:static;display:grid;place-items:center;flex:none;min-width:24px;min-height:24px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#fff;box-shadow:none;font:inherit;letter-spacing:normal}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin button:hover{background:transparent;color:#fff}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin [data-bulletin-toggle]{display:flex;justify-content:space-between;flex:1;gap:4px;min-width:0;min-height:var(--bulletin-header);padding:4px 8px;text-align:left}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin [data-bulletin-close]{position:absolute;top:-10px;right:-7px;width:24px;height:24px}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin strong{font-size:clamp(9px,2.7cqi,10.5px);line-height:16px;font-weight:500;color:inherit}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin p{display:block;box-sizing:content-box;max-height:min(calc(var(--bulletin-line)*4),18dvh);margin:0;padding:0 7px 6px;border:0;background:transparent;color:#ffffffe6;font:400 clamp(8px,2.56cqi,10px)/var(--bulletin-line) Arial,sans-serif}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin nav{position:static;display:flex;justify-content:center;align-items:center;gap:0;height:14px;margin:0;padding:0;border:0;background:transparent}
.bulletin-editor .bulletin-preview-stage .viewer-bulletin nav button{position:relative;flex:1;width:50%;height:24px;min-height:24px}

/* Independent link notice follows the existing compact bulletin. */
.viewer-link-bulletin header{padding:6px 7px 3px;min-height:0}
.viewer-link-bulletin strong{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:var(--bulletin-line)}
.viewer-link-bulletin p{max-height:calc(var(--bulletin-line)*2);padding-bottom:0}
.viewer-link-bulletin [data-link-go]{display:block;width:calc(100% - 14px);min-height:24px;margin:6px 7px 7px;padding:2px 4px;border:1px solid #ffffff80;border-radius:20px;text-align:center;white-space:normal;overflow-wrap:anywhere;font-size:clamp(8px,2.56cqi,10px);line-height:14px}
.bulletin-link-editor{margin-top:20px;padding-top:16px;border-top:1px solid #ddd}
.bulletin-link-editor h3{margin:0 0 8px;font-size:14px}
.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin header{padding:6px 7px 3px;min-height:0}
.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin strong{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:var(--bulletin-line)}
.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin p{max-height:calc(var(--bulletin-line)*2);padding-bottom:0}
.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin [data-link-go]{display:block;width:calc(100% - 14px);min-height:24px;margin:6px 7px 7px;padding:2px 4px;border:1px solid #ffffff80;border-radius:20px;background:transparent;font-size:clamp(8px,2.56cqi,10px);line-height:14px}

/* Text grows naturally; only a screen boundary adds scrolling, with the CTA kept visible. */
.viewer-link-bulletin,.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin{display:flex;flex-direction:column;height:auto;max-height:var(--link-available-height,70dvh)}
.viewer-link-content{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.viewer-link-bulletin strong,.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin strong{display:block;-webkit-line-clamp:unset;overflow:visible;text-overflow:clip;white-space:pre-wrap}
.viewer-link-bulletin p,.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin p{max-height:none;overflow:visible}
.viewer-link-bulletin [data-link-go],.bulletin-editor .bulletin-preview-stage .viewer-link-bulletin [data-link-go]{flex:none}
