/* Bulletin board (assets/bulletin-board.js): public /bulletin and Admin → Bulletin.
   Colours are tokens so the admin can map them onto its own light/dark palette. */
.bb{--bb-bg:var(--brand-bg,#fff);--bb-panel:#fff;--bb-soft:var(--brand-surface,#f6f4f8);--bb-soft-2:#ece8f0;--bb-ink:var(--brand-text,#1d1a21);--bb-muted:var(--brand-muted,#6b6570);--bb-line:var(--brand-line,#e6e2ea);--bb-accent:var(--brand-primary,#241236);--bb-gold:var(--brand-accent-ink,#b8902e);--bb-live:#d42f2f;--bb-done:#1f7a4d;--bb-done-soft:#e3f3ea;--bb-radius:16px;--bb-now-bg:#fff5f5;--bb-on-ink:#fff;--bb-note-bg:#fff7e0;--bb-note-ink:#6a5010;--bb-shadow:0 14px 34px color-mix(in srgb,var(--brand-text,#1d1a21) 7.8%,transparent);
  position:relative;color:var(--bb-ink);font-family:var(--brand-font-body,"DM Sans",Inter,system-ui,sans-serif);-webkit-tap-highlight-color:transparent}
.bb *,.bb *::before,.bb *::after{box-sizing:border-box}
:where(.bb) button{font:inherit;color:inherit}
.bb-i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bb-i circle{fill:currentColor;stroke:none}
.bb-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.bb :focus-visible{outline:3px solid var(--bb-gold);outline-offset:2px}

/* Header */
.bb-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:22px}
.bb-eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase;color:var(--bb-gold);margin-bottom:8px}
.bb-draft{color:var(--bb-live)}
.bb-title h2{margin:0;font-family:inherit;font-size:clamp(28px,3.4vw,42px);font-weight:700;letter-spacing:-.6px;line-height:1.1;text-transform:none;color:var(--bb-ink)}
.bb-title p{margin:10px 0 0;max-width:640px;color:var(--bb-muted);font-size:16px;line-height:1.6}
.bb-progress{display:flex;align-items:center;gap:14px;flex:none;padding:12px 18px 12px 12px;border:1px solid var(--bb-line);border-radius:18px;background:var(--bb-panel);min-width:260px}
.bb-ring{--pct:0;position:relative;width:56px;height:56px;border-radius:50%;background:conic-gradient(var(--bb-done) calc(var(--pct)*1%),var(--bb-soft-2) 0);display:grid;place-items:center;flex:none;transition:background .4s}
.bb-ring::before{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--bb-panel)}
.bb-ring span{position:relative;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.bb-progress-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.bb-status{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:1.3px;text-transform:uppercase;color:var(--bb-muted)}
.bb-status i{width:8px;height:8px;border-radius:50%;background:currentColor}
.bb-progress.is-live .bb-status{color:var(--bb-live)}
.bb-progress.is-live .bb-status i{animation:bbPulse 1.4s ease-out infinite}
.bb-progress-text strong{font-size:16px}
.bb-progress-text small{font-size:13px;color:var(--bb-muted)}
.bb-now-link{display:inline-flex;align-items:center;gap:2px;padding:0;border:0;background:none;font-size:17px!important;font-weight:700;cursor:pointer;text-align:left;max-width:240px}
.bb-now-link .bb-i{width:18px;height:18px}
.bb-now-link:hover{text-decoration:underline;text-underline-offset:3px}
@keyframes bbPulse{0%{box-shadow:0 0 0 0 #d42f2f88}100%{box-shadow:0 0 0 9px #d42f2f00}}

/* Toolbar */
.bb-toolbar{position:sticky;top:var(--bb-sticky-top,0px);z-index:5;display:grid;gap:12px;padding:12px 0;margin-bottom:6px;background:var(--bb-bg)}
.bb-toolbar-row{display:flex;gap:12px;align-items:center}
.bb-search{flex:1;display:flex;align-items:center;gap:10px;height:46px;padding:0 14px;border:1px solid var(--bb-line);border-radius:12px;background:var(--bb-soft);color:var(--bb-muted);transition:border-color .2s,background .2s}
.bb-search:focus-within{border-color:var(--bb-ink);background:var(--bb-panel)}
.bb-search input{flex:1;min-width:0;height:100%;border:0;outline:0;background:none;font:inherit;font-size:16px;color:var(--bb-ink)}
.bb-views{display:flex;padding:4px;border-radius:12px;background:var(--bb-soft);border:1px solid var(--bb-line);flex:none}
.bb-views button{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:0;border-radius:9px;background:none;color:var(--bb-muted);font-size:14px;font-weight:600;cursor:pointer;transition:background .2s,color .2s}
.bb-views button.is-on{background:var(--bb-panel);color:var(--bb-ink);box-shadow:0 1px 3px color-mix(in srgb,var(--brand-text,#1d1a21) 12.2%,transparent)}
.bb-views .bb-i{width:18px;height:18px}
.bb-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -2px;padding:2px}
.bb-chips::-webkit-scrollbar{display:none}
.bb-chip{display:inline-flex;align-items:center;gap:7px;flex:none;height:36px;padding:0 14px;border:1px solid var(--bb-line);border-radius:20px;background:var(--bb-panel);font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap;transition:background .2s,border-color .2s}
.bb-chip i{width:9px;height:9px;border-radius:50%;background:var(--c)}
.bb-chip em{font-style:normal;font-size:12px;color:var(--bb-muted)}
.bb-chip.is-on{background:var(--bb-ink);border-color:var(--bb-ink);color:var(--bb-on-ink)}
.bb-chip.is-on em{color:inherit;opacity:.7}
.bb-editor-actions{display:flex;flex-wrap:wrap;gap:8px}
.bb-editbar{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:12px 16px;border-radius:12px;background:var(--bb-note-bg);color:var(--bb-note-ink);font-size:14px}
.bb-editbar[hidden]{display:none}
.bb-link{margin-left:auto;padding:0;border:0;background:none;font-weight:700;text-decoration:underline;cursor:pointer}

/* Buttons */
.bb-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 16px;border-radius:11px;border:1px solid var(--bb-line);background:var(--bb-panel);color:var(--bb-ink);font-size:14px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .2s,transform .15s,border-color .2s}
.bb-btn:hover{background:var(--bb-soft)}
.bb-btn:active{transform:scale(.97)}
.bb-btn:disabled{opacity:.45;cursor:default;transform:none}
.bb-btn .bb-i{width:18px;height:18px}
.bb-btn--dark{background:var(--bb-ink);border-color:var(--bb-ink);color:var(--bb-on-ink)}
.bb-btn--dark:hover{background:var(--bb-ink);opacity:.88}
.bb-btn--ghost{background:transparent}
.bb-btn--green{background:var(--bb-done);border-color:var(--bb-done);color:#fff}
.bb-btn--green:hover{background:#17623d}
.bb-btn--danger{color:#b42333}
.bb-icon{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--bb-ink);cursor:pointer}
.bb-icon:hover{background:var(--bb-soft)}
.bb-icon--danger{color:#b42333}

/* Category colours */
.bb-cat-0{--c:#7a4fb0;--c-soft:#f1eafa}.bb-cat-1{--c:#1f6fb2;--c-soft:#e5f0fa}.bb-cat-2{--c:#b8612b;--c-soft:#fbeee4}.bb-cat-3{--c:#8a2b52;--c-soft:#f8e8ef}
.bb-cat-4{--c:#1f7a4d;--c-soft:#e3f3ea}.bb-cat-5{--c:var(--brand-muted,#6b6570);--c-soft:#f0eef2}.bb-cat-6{--c:var(--brand-accent-ink,#a07a17);--c-soft:#faf2dc}.bb-cat-none{--c:var(--brand-muted,#6b6570);--c-soft:#f0eef2}
.bb-tag{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:12px;background:var(--c-soft);color:var(--c);font-size:12px;font-weight:600;white-space:nowrap}
.bb-tag-text{color:var(--c);font-weight:600}
.bb-pill{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:11px;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;white-space:nowrap}
.bb-pill--now{background:var(--bb-live);color:#fff}
.bb-pill--now::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--brand-bg,#fff);animation:bbBlink 1.2s ease-in-out infinite}
.bb-pill--done{background:var(--bb-done-soft);color:var(--bb-done)}
@keyframes bbBlink{50%{opacity:.3}}

/* Media */
.bb-media{position:relative;display:grid;place-items:center;width:96px;height:96px;border-radius:50%;overflow:hidden;background:var(--c-soft,var(--bb-soft));color:var(--c,var(--bb-muted));font-size:28px;font-weight:700;letter-spacing:-.5px;flex:none}
.bb-media img{width:100%;height:100%;object-fit:cover}
.bb-media--sm{width:48px;height:48px;font-size:16px}
.bb-media--lg{width:120px;height:120px;font-size:38px;box-shadow:0 0 0 6px #ffffffa8}

/* Checks */
.bb-check{position:relative;z-index:2;display:grid;place-items:center;width:32px;height:32px;padding:0;border:2px solid var(--bb-line);border-radius:50%;background:var(--bb-panel);color:transparent;cursor:pointer;transition:background .2s,border-color .2s,color .2s,transform .15s}
button.bb-check::after{content:"";position:absolute;inset:-6px}
.bb-check .bb-i{width:18px;height:18px;stroke-width:3}
button.bb-check:hover{border-color:var(--bb-done);color:var(--bb-done)}
.bb-check.is-done{background:var(--bb-done);border-color:var(--bb-done);color:#fff}
button.bb-check:active{transform:scale(.88)}

/* Drag handles */
.bb-handle{position:relative;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--bb-muted);cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}
.bb-handle:hover{background:var(--bb-soft);color:var(--bb-ink)}
.bb-handle:active{cursor:grabbing}
.bb-is-dragging,.bb-is-dragging *{cursor:grabbing!important;-webkit-user-select:none;user-select:none}
.is-dragging{box-shadow:0 22px 50px color-mix(in srgb,var(--brand-text,#1d1a21) 25.1%,transparent),0 0 0 2px var(--bb-ink)!important;background:var(--bb-panel)!important;opacity:.97;transition:none!important}
.bb-placeholder{list-style:none;border:2px dashed var(--bb-line-2,var(--brand-line,#cfc8d6));border-radius:var(--bb-radius);background:var(--bb-soft)}
tr.bb-placeholder td{padding:0;border:0}
.is-dropped{animation:bbDrop .4s ease}
@keyframes bbDrop{0%{box-shadow:0 0 0 3px var(--bb-gold)}100%{box-shadow:0 0 0 0 transparent}}

/* Stretched open button */
.bb-open{position:absolute;inset:0;z-index:1;width:100%;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}

/* ---------- Cards view ---------- */
.bb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin:0;padding:0;list-style:none}
.bb-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;min-height:250px;padding:24px 16px 18px;border-radius:var(--bb-radius);background:var(--bb-soft);border:1px solid transparent;text-align:center;transition:transform .2s,box-shadow .2s,background .2s,border-color .2s}
.bb-card:hover{transform:translateY(-3px);box-shadow:var(--bb-shadow);background:var(--bb-panel);border-color:var(--bb-line)}
.bb-card.is-now{background:var(--bb-panel);border-color:var(--bb-live);box-shadow:0 0 0 3px #d42f2f22,var(--bb-shadow)}
.bb-card.is-done .bb-media{opacity:.55;filter:grayscale(.4)}
.bb-num{position:absolute;left:14px;top:12px;font-size:13px;font-weight:700;color:var(--bb-muted);font-variant-numeric:tabular-nums}
.bb-card .bb-handle{position:absolute;right:6px;top:6px}
.bb-card-copy{display:flex;flex-direction:column;align-items:center;gap:4px}
.bb-card-copy strong{font-size:17px;line-height:1.25;letter-spacing:-.2px}
.bb-leader{font-size:14px;color:var(--bb-muted);line-height:1.4}
.bb-card .bb-tag{margin-top:auto}
.bb-card-check{position:absolute;right:12px;bottom:12px;z-index:2}
.bb-card-check:empty{display:none}
.bb-grid.is-sorting .bb-card{cursor:default}
.bb-grid.is-sorting .bb-card:hover{transform:none}

/* ---------- List view (timeline) ---------- */
.bb-timeline{position:relative;margin:0;padding:0;list-style:none}
.bb-row{position:relative;display:flex;align-items:center;gap:14px;min-height:76px;padding:12px 12px 12px 4px;border-radius:14px;background:var(--bb-bg);transition:background .2s}
.bb-row:hover{background:var(--bb-soft)}
.bb-row+.bb-row{margin-top:2px}
.bb-marker{position:relative;z-index:2;display:grid;place-items:center;width:44px;flex:none;align-self:stretch}
.bb-marker::before{content:"";position:absolute;left:50%;top:-14px;bottom:-14px;width:2px;margin-left:-1px;background:var(--bb-line);z-index:-1}
.bb-row:first-child .bb-marker::before{top:50%}
.bb-row:last-child .bb-marker::before{bottom:50%}
.bb-row.is-done .bb-marker::before{background:var(--bb-done)}
.bb-dot{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:2px solid var(--bb-line);background:var(--bb-bg);font-size:13px;font-weight:700;color:var(--bb-muted);font-variant-numeric:tabular-nums}
.bb-row.is-now .bb-dot,.bb-row.is-now .bb-check:not(.is-done){border-color:var(--bb-live);box-shadow:0 0 0 5px #d42f2f22}
.bb-row.is-now{background:var(--bb-now-bg)}
.bb-row-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.bb-row-top{display:flex;align-items:baseline;gap:8px}
.bb-row-top strong{flex:0 1 auto;min-width:0;font-size:17px;letter-spacing:-.2px}
.bb-row-top{flex-wrap:nowrap}
.bb-row-top .bb-pill{flex:none}
.bb-row-num{font-size:13px;font-weight:700;color:var(--bb-muted);font-variant-numeric:tabular-nums}
.bb-row.is-done .bb-row-top strong{color:var(--bb-muted)}
.bb-chev{color:var(--bb-muted);display:grid;place-items:center;width:32px}
.bb-timeline.is-sorting .bb-row{background:var(--bb-panel);border:1px solid var(--bb-line);margin-top:8px}
.bb-timeline.is-sorting .bb-marker::before{display:none}

/* ---------- Table view ---------- */
.bb-table-wrap{border:1px solid var(--bb-line);border-radius:var(--bb-radius);overflow:hidden;background:var(--bb-panel)}
.bb-table{width:100%;border-collapse:collapse;font-size:15px}
.bb-table th{padding:12px 10px;text-align:left;font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--bb-muted);background:var(--bb-soft);border-bottom:1px solid var(--bb-line)}
.bb-table td{padding:6px 10px;border-bottom:1px solid var(--bb-line);vertical-align:middle;background:var(--bb-panel)}
.bb-table tbody tr:last-child td{border-bottom:0}
.bb-table tr.is-now td{background:var(--bb-now-bg)}
.bb-table tr.is-done .bb-cell{color:var(--bb-muted)}
.bb-col-handle{width:52px}.bb-col-num{width:44px;font-weight:700;color:var(--bb-muted);font-variant-numeric:tabular-nums}.bb-col-done{width:64px}.bb-col-actions{width:96px;text-align:right;white-space:nowrap}
.bb-col-title{position:relative}
.bb-col-title .bb-pill{position:absolute;right:16px;top:50%;transform:translateY(-50%);pointer-events:none}
.bb-cell{width:100%;min-height:40px;padding:8px 10px;border:1px solid transparent;border-radius:9px;background:transparent;font:inherit;font-size:15px;color:var(--bb-ink);transition:border-color .2s,background .2s,box-shadow .3s}
.bb-cell:hover{border-color:var(--bb-line)}
.bb-cell:focus{outline:0;border-color:var(--bb-ink);background:var(--bb-panel)}
select.bb-cell{cursor:pointer}
.bb-cell.is-saving{background:var(--bb-soft)}
.bb-cell.is-saved{box-shadow:0 0 0 2px var(--bb-done)}

/* Empty */
.bb-empty{display:grid;justify-items:center;gap:10px;padding:56px 20px;border:1px dashed var(--bb-line);border-radius:var(--bb-radius);text-align:center;color:var(--bb-muted)}
.bb-empty .bb-i{width:34px;height:34px}
.bb-empty p{margin:0;font-size:18px;font-weight:600;color:var(--bb-ink)}

/* ---------- Detail sheet / form dialog ---------- */
.bb-sheet{width:min(560px,calc(100vw - 32px));max-height:min(88vh,860px);margin:auto;padding:0;border:0;border-radius:22px;background:var(--bb-panel);color:var(--bb-ink);box-shadow:0 30px 80px #0006;overflow:hidden;font-family:var(--brand-font-body,"DM Sans",Inter,system-ui,sans-serif)}
.bb-sheet[open]{display:flex;animation:bbIn .25s cubic-bezier(.22,1,.36,1)}
.bb-sheet.is-closing{animation:bbOut .18s ease forwards}
.bb-sheet::backdrop{background:#120c18a6;backdrop-filter:blur(3px)}
@keyframes bbIn{from{opacity:0;transform:translateY(24px) scale(.98)}}
@keyframes bbOut{to{opacity:0;transform:translateY(24px)}}
.bb-sheet-inner{display:flex;flex-direction:column;width:100%;max-height:inherit;min-height:0}
.bb-sheet-grab{display:none}
.bb-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 10px 22px;border-bottom:1px solid var(--bb-line)}
.bb-sheet-head h3{margin:0;font-size:20px;font-weight:700}
.bb-sheet-pos{font-size:13px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--bb-muted)}
.bb-sheet-tools{display:flex;gap:4px}
.bb-sheet-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px}
.bb-sheet-img{display:block;width:100%;max-height:300px;object-fit:cover;border-radius:16px;margin-bottom:18px}
.bb-sheet-hero{display:grid;place-items:center;height:180px;margin:-22px -22px 18px;background:linear-gradient(160deg,var(--c-soft),var(--bb-panel))}
.bb-sheet-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.bb-sheet-meta:empty{display:none}
.bb-sheet h3#bb-sheet-title{margin:0;font-size:28px;font-weight:700;letter-spacing:-.4px;line-height:1.15}
.bb-sheet-leader{margin:6px 0 0;font-size:17px;color:var(--bb-muted)}
.bb-sheet-desc{margin-top:16px;font-size:16px;line-height:1.7}
.bb-sheet-desc p{margin:0 0 12px}
.bb-sheet-body>.bb-btn{margin-top:14px}
.bb-sheet-edit{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;padding-top:18px;border-top:1px solid var(--bb-line)}
.bb-sheet-foot{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;border-top:1px solid var(--bb-line);background:var(--bb-soft)}
.bb-sheet-foot .bb-btn{flex:1 1 0;min-width:0;justify-content:flex-start}
.bb-sheet-foot .bb-btn:last-child{justify-content:flex-end;text-align:right}
.bb-sheet-foot .bb-btn span{overflow:hidden;text-overflow:ellipsis}
.bb-form .bb-sheet-foot .bb-btn{flex:0 0 auto}
.bb-form .bb-sheet-foot{justify-content:flex-end}
.bb-field{display:grid;gap:6px;margin-bottom:14px;font-size:14px;font-weight:600}
.bb-field em{font-style:normal;font-weight:400;color:var(--bb-muted)}
.bb-field input,.bb-field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--bb-line);border-radius:10px;background:var(--bb-bg);font:inherit;font-size:16px;font-weight:400;color:var(--bb-ink)}
.bb-field textarea{resize:vertical;line-height:1.5}
.bb-field input:focus,.bb-field textarea:focus{outline:0;border-color:var(--bb-ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand-text,#1d1a21) 7.8%,transparent)}
.bb-field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.bb-photo-pick{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bb-photo-pick input{flex:1;min-width:180px}
.bb-photo-preview{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;overflow:hidden;background:var(--bb-soft);color:var(--bb-muted);flex:none}
.bb-photo-preview img{width:100%;height:100%;object-fit:cover}
.bb-form-error{margin:0;padding:10px 12px;border-radius:10px;background:#fdecee;color:#b42333;font-size:14px}
.bb-form-error[hidden]{display:none}
html.bb-lock{overflow:hidden}

/* Toasts */
.bb-toasts{position:fixed;left:50%;bottom:calc(24px + var(--bb-bottom-offset,0px));z-index:2000;display:grid;gap:8px;transform:translateX(-50%);pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
.bb-toast{padding:12px 18px;border-radius:12px;background:var(--brand-text,#1d1a21);color:#fff;font-size:14px;font-weight:500;box-shadow:0 12px 30px #0004;animation:bbIn .25s ease}
.bb-toast--ok::before{content:"✓  ";color:#7ee2a8;font-weight:700}
.bb-toast--err{background:#b42333}
.bb-toast.is-out{opacity:0;transform:translateY(8px);transition:.3s}

/* ---------- Mobile ---------- */
@media(max-width:760px){
.bb-toolbar{position:static}
.bb-head{flex-direction:column;align-items:stretch;gap:16px}
.bb-progress{min-width:0}
.bb-toolbar-row{flex-wrap:wrap}
.bb-search{flex:1 1 100%}
.bb-views{flex:1}
.bb-views button{flex:1;justify-content:center}
.bb-editor-actions .bb-btn{flex:1 1 auto}
}
@media(max-width:640px){
.bb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bb-card{min-height:210px;padding:20px 10px 14px;gap:10px}
.bb-media{width:72px;height:72px;font-size:22px}
.bb-card-copy strong{font-size:15px}
.bb-leader{font-size:13px}
.bb-card .bb-tag{display:none}
.bb-card-check{right:8px;bottom:8px}
.bb-row{gap:10px;padding-right:4px}
.bb-row .bb-media--sm{display:none}
.bb-row-top strong{font-size:16px}
/* Table rows become compact editable cards. */
.bb-table-wrap{border:0;border-radius:0;background:none;overflow:visible}
.bb-table,.bb-table tbody{display:block}
.bb-table thead{display:none}
.bb-table tr{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"handle title done" "handle leader actions" "handle part actions";gap:2px 6px;align-items:center;padding:8px 6px;margin-bottom:10px;border:1px solid var(--bb-line);border-radius:14px;background:var(--bb-panel)}
.bb-table td{display:block;padding:0;border:0;background:none!important}
.bb-table tr.is-now{border-color:var(--bb-live);background:var(--bb-now-bg)}
.bb-col-handle{grid-area:handle;width:auto}
.bb-col-num{display:none!important}
.bb-col-done{grid-area:done;width:auto}
.bb-col-title{grid-area:title}
.bb-table td[data-label="Led by"]{grid-area:leader}
.bb-table td[data-label="Part"]{grid-area:part}
.bb-col-actions{grid-area:actions;width:auto;display:flex!important;flex-direction:column}
.bb-col-title .bb-cell{font-weight:700}
.bb-col-title .bb-pill{right:8px}
.bb-cell{min-height:36px;padding:6px 8px}
.bb-table tr.bb-placeholder{display:block;height:auto;margin-bottom:10px}
/* Sheets become bottom sheets. */
.bb-sheet{width:100vw;max-width:100vw;max-height:92vh;margin:auto 0 0;border-radius:22px 22px 0 0}
.bb-sheet[open]{animation:bbUp .3s cubic-bezier(.22,1,.36,1)}
.bb-sheet.is-closing{animation:bbDown .18s ease forwards}
.bb-sheet-grab{display:block;width:40px;height:5px;margin:8px auto 0;border-radius:3px;background:var(--bb-line)}
.bb-sheet-body{padding:18px}
.bb-sheet-hero{margin:-18px -18px 16px;height:150px}
.bb-sheet h3#bb-sheet-title{font-size:24px}
.bb-sheet-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.bb-field-row{grid-template-columns:1fr}
.bb-views button span{display:none}
}
@keyframes bbUp{from{transform:translateY(100%)}}
@keyframes bbDown{to{transform:translateY(100%)}}
/* "Add item" opens as a full-screen page rather than a modal. */
.bb-sheet.bb-sheet--full{width:100vw;max-width:100vw;height:100vh;height:100dvh;max-height:none;margin:0;inset:0;border-radius:0;box-shadow:none}
.bb-sheet.bb-sheet--full[open]{animation:bbIn .25s cubic-bezier(.22,1,.36,1)}
.bb-sheet--full .bb-sheet-grab{display:none}
.bb-sheet--full .bb-sheet-head,.bb-sheet--full .bb-sheet-foot{padding-left:max(16px,calc((100vw - 760px)/2));padding-right:max(16px,calc((100vw - 760px)/2))}
.bb-sheet--full .bb-sheet-head{padding-top:calc(14px + env(safe-area-inset-top))}
.bb-sheet--full .bb-sheet-body{padding:28px max(16px,calc((100vw - 760px)/2))}
.bb-sheet--full .bb-sheet-foot{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
@media(prefers-reduced-motion:reduce){.bb *,.bb-sheet{animation:none!important;transition:none!important}}

/* Public page frame (bulletin.php) */
.bulletin-page{background:var(--brand-bg,#fff)}
.bulletin-main{padding:40px 0 80px;background:var(--brand-bg,#fff)}
.bulletin-wrap{width:min(1200px,calc(100% - 72px));margin:0 auto}
.bulletin-page .bb{--bb-sticky-top:var(--mm-chrome,125px)}
.bulletin-admin-link{margin:28px 0 0;font:600 14px var(--brand-font-body,"DM Sans",sans-serif)}
.bulletin-admin-link a{color:var(--brand-primary,#241236);text-decoration:underline;text-underline-offset:3px}
@media(max-width:980px){.bulletin-page .bb{--bb-sticky-top:var(--mm-chrome,109px)}.bulletin-wrap{width:calc(100% - 40px)}.bulletin-main{padding-top:28px}}

/* Admin → Bulletin: follow the admin palette (light and dark). */
.admin .bb{--bb-bg:var(--panel);--bb-panel:var(--panel);--bb-soft:var(--inset);--bb-soft-2:var(--active);--bb-ink:var(--text);--bb-muted:var(--muted);--bb-line:var(--line);--bb-line-2:var(--line-2);--bb-sticky-top:64px;font-family:Inter,system-ui,sans-serif}
[data-theme=dark] .admin .bb,[data-theme=dark] .bb{--bb-now-bg:#3a1a1f;--bb-on-ink:#111;--bb-note-bg:#3a3014;--bb-note-ink:#f3dc9c;--bb-done-soft:#173826}
.admin .bb .bb-title h2{font-size:26px}
.bulletin-admin{display:grid;grid-template-columns:280px minmax(0,1fr);gap:18px;align-items:start}
.bulletin-list{position:sticky;top:76px;max-height:calc(100vh - 96px);overflow:auto;margin:0}
.bulletin-list-head{padding:16px 18px 10px;margin:0}
.bulletin-list nav{display:grid;padding:0 8px 8px}
.bulletin-list-item{display:flex;align-items:center;gap:12px;padding:10px;border-radius:10px;color:var(--text)}
.bulletin-list-item:hover{background:var(--hover)}
.bulletin-list-item.is-active{background:var(--active)}
.bulletin-list-text{flex:1;min-width:0;display:grid}
.bulletin-list-text strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bulletin-main-col{min-width:0}
.bulletin-main-col>.tabs{margin-bottom:16px}
.bulletin-settings{padding:0}
.bulletin-settings>form{padding:0 22px 20px}
.bulletin-settings-sum{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px 22px;cursor:pointer;list-style:none}
.bulletin-settings-sum::-webkit-details-marker{display:none}
.bulletin-settings-sum>span{display:inline-flex;align-items:center;gap:8px}
.bulletin-settings[open] .bulletin-settings-sum{border-bottom:1px solid var(--line);margin-bottom:16px}
.bulletin-board-card{padding:22px}
.bulletin-editors{display:grid;gap:6px;margin:0 0 16px;padding:0;list-style:none}
.bulletin-editor{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.bulletin-editor:hover{background:var(--hover)}
.bulletin-editor>span:nth-of-type(1){flex:1;min-width:0;display:grid}
.bulletin-editor input{width:20px;height:20px;accent-color:var(--primary)}
.bulletin-editor.is-role{cursor:default;opacity:.8}
@media(max-width:1100px){.bulletin-admin{grid-template-columns:1fr}.bulletin-list{position:static;max-height:none}.bulletin-list nav{display:flex;overflow-x:auto;gap:6px}.bulletin-list-item{flex:none;min-width:220px;border:1px solid var(--line)}}
@media(max-width:640px){.bulletin-board-card{padding:14px}.admin .bb{--bb-sticky-top:60px}}

/* Admin → Bulletin: actions for the open bulletin, and the Duplicate form (Shopify's "Duplicate product" on Mobbin). */
.bulletin-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 12px}
.bulletin-toolbar form{margin:0}
.bulletin-dup{border:1px solid color-mix(in srgb,var(--brand,#241236) 22%,var(--line,#e6e2ea))}
.bulletin-dup-opts{display:grid;gap:12px;margin:6px 0 18px;padding:16px 18px;border:1px solid var(--line,#e6e2ea);border-radius:12px}
.bulletin-dup-opts legend{padding:0 6px;font-size:13px;font-weight:700}
.bulletin-dup-opts em{font-style:normal}
@media(max-width:620px){.bulletin-toolbar{justify-content:stretch}.bulletin-toolbar>*{flex:1 1 auto}.bulletin-toolbar .btn{width:100%;justify-content:center}}

/* /bulletin: bulletin switcher for signed-in members and the team (bulletin.php, assets/bulletin-switch.js).
   A small pill above the board; everyone else only ever sees the live bulletin. Mobbin: Base44 version history (list
   with a Live badge), Plane page history ("view only" chip next to the date). Brand Style Guide colours only. */
.bb-switch{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 14px;font-family:var(--brand-font-body,"DM Sans",system-ui,sans-serif)}
.bb-switch svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.bb-switch-btn{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:38px;padding:0 12px;border:1px solid var(--brand-line,#e6e2ea);border-radius:999px;background:var(--brand-bg,#fff);color:var(--brand-text,#1d1a21);font:inherit;font-size:13.5px;font-weight:600;cursor:pointer;transition:background .2s,border-color .2s}
.bb-switch-btn>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bb-switch-btn:hover{background:var(--brand-surface,#f6f4f8);border-color:color-mix(in srgb,var(--brand-primary,#241236) 25%,var(--brand-line,#e6e2ea))}
.bb-switch-btn:focus-visible,.bb-switch-list a:focus-visible{outline:3px solid var(--brand-accent,#d9b24c);outline-offset:2px}
.bb-switch-btn svg:first-child{color:var(--brand-primary-2,#542675)}
.bb-switch-chev{transition:transform .2s}
.bb-switch-btn[aria-expanded=true] .bb-switch-chev{transform:rotate(180deg)}
.bb-switch-live,.bb-switch-draft{flex:none;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;letter-spacing:.3px}
.bb-switch-live{background:color-mix(in srgb,#1f7a4d 12%,transparent);color:#1f7a4d}
.bb-switch-draft{background:var(--brand-surface,#f6f4f8);color:var(--brand-muted,#6b6570)}
.bb-switch-note{font-size:13px;color:var(--brand-muted,#6b6570)}
.bb-switch-note a{color:var(--brand-primary-2,#542675);font-weight:700}
.bb-switch-list{position:absolute;z-index:40;left:0;top:calc(100% + 6px);width:min(360px,calc(100vw - 32px));max-height:min(420px,70vh);overflow:auto;padding:6px;border-radius:14px;background:var(--brand-bg,#fff);border:1px solid var(--brand-line,#e6e2ea);box-shadow:0 18px 44px color-mix(in srgb,var(--brand-text,#1d1a21) 16%,transparent)}
.bb-switch-list[hidden]{display:none}
.bb-switch-head{margin:6px 10px 4px;font-size:11px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:var(--brand-muted,#6b6570)}
.bb-switch-list ul{list-style:none;margin:0;padding:0}
.bb-switch-list a{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:10px;color:var(--brand-text,#1d1a21);text-decoration:none}
.bb-switch-list a:hover{background:var(--brand-surface,#f6f4f8)}
.bb-switch-list a.is-on{background:color-mix(in srgb,var(--brand-primary,#241236) 6%,transparent)}
.bb-switch-date{flex:none;display:grid;place-items:center;width:40px;height:42px;border-radius:10px;border:1px solid var(--brand-line,#e6e2ea);line-height:1}
.bb-switch-date small{font-size:9.5px;font-weight:700;letter-spacing:.8px;color:var(--brand-accent-ink,#9f741d)}
.bb-switch-date strong{font-size:16px}
.bb-switch-text{display:flex;flex-direction:column;flex:1;min-width:0}
.bb-switch-text strong{font-size:14.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bb-switch-text small{font-size:12px;color:var(--brand-muted,#6b6570)}
