/* Bulletin reference redesign — isolated from inventory and visitor pages. */
.hb-bulletin, .hb-detail-modal { --hb-ink:#182436; --hb-muted:#7f858d; --hb-gold:#b4965a; --hb-paper:#f7f6f3; --hb-line:#eae7e1; color:var(--hb-ink); }
body .hb-bulletin { background:var(--hb-paper); padding:18px; gap:18px; border-radius:22px; }
body .hb-bulletin .bulletin-title-strip { position:relative; display:flex; justify-content:space-between; align-items:center; padding:6px 8px 16px; border:0; border-bottom:1px solid var(--hb-line); border-radius:0; background:none; box-shadow:none; color:var(--hb-ink); }
body .hb-bulletin .bulletin-title-strip h1 { color:var(--hb-ink);font-size:27px;letter-spacing:.09em;margin:0; }
body .hb-bulletin .bulletin-title-strip p { color:var(--hb-gold);font-size:10px;letter-spacing:.28em;margin:0 0 5px; }
body .hb-bulletin .bulletin-title-strip span { color:var(--hb-muted); }
body .hb-bulletin .bulletin-create-btn { position:static;transform:none;min-width:100px;background:var(--hb-gold);color:white;border:0;box-shadow:none; }
.hb-bulletin button,.hb-detail-modal button { cursor:pointer; }
.hb-bulletin button:disabled { opacity:.5;cursor:wait; }
.hb-bulletin svg,.hb-detail-modal svg { width:22px;height:22px;flex-shrink:0; }
.hb-mode-tabs { display:flex;gap:8px;padding:4px;background:#edeae4;border-radius:14px;width:fit-content; }
.hb-mode-tabs button { display:flex;align-items:center;gap:8px;padding:10px 20px;border:0;border-radius:10px;background:transparent;color:#71747a;font-weight:700;font-size:15px; }
.hb-mode-tabs button.active { background:white;color:#977c44;box-shadow:0 2px 7px #1a253509; }
.hb-status:empty { display:none; }
.hb-status { padding:10px 14px;border-radius:10px;background:#edf4ef;color:#366b4c;font-size:14px; }
.hb-status.error { background:#fff0ee;color:#a8443d; }
.hb-pinned { position:sticky;top:0;z-index:3;background:#fbfaf8f5;backdrop-filter:blur(14px);border:1px solid #fff;border-radius:18px;padding:18px;box-shadow:0 5px 20px #18243608; }
.hb-pinned header { display:flex;align-items:center;gap:22px;margin-bottom:14px; }
.hb-pinned header h2 { display:flex;align-items:center;gap:9px;margin:0;font-size:19px;white-space:nowrap; }
.hb-pinned header h2 svg { color:var(--hb-gold); }
.hb-pinned header h2 small { font-size:13px;font-weight:500;color:var(--hb-muted); }
.hb-pinned header p { margin:0;border-left:1px solid #d4d0c8;padding-left:22px;font-size:13px;color:var(--hb-muted); }
.hb-pinned-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:220px;overflow:auto; }
.hb-pin-card { display:flex;align-items:center;gap:12px;text-align:left;min-width:0;padding:18px 14px;background:white;border:1px solid #f2f0ea;border-radius:14px;box-shadow:0 5px 15px #18243603;color:var(--hb-ink); }
.hb-pin-card>span:nth-child(2) { flex:1;min-width:0; }
.hb-pin-card strong { display:block;font-size:17px;line-height:1.5;margin:7px 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.hb-pin-card em { display:block;color:var(--hb-muted);font-style:normal;font-size:12px; }
.hb-pin-card>svg { width:16px;color:var(--hb-gold); }
.hb-icon { display:flex;align-items:center;justify-content:center;border-radius:50%;width:55px;height:55px;flex-shrink:0;background:#f4f1e9;color:var(--hb-gold); }
.hb-icon svg { width:28px;height:28px; }
.hb-gold-pill,.hb-neutral-pill,.hb-read-pill { display:inline-flex;align-items:center;justify-content:center;padding:4px 15px;border-radius:30px;font-size:13px;font-weight:600;line-height:1.4;letter-spacing:.05em; }
.hb-gold-pill { color:white;background:linear-gradient(110deg,#ac8e52,#c4ab78); }
.hb-neutral-pill { background:#f0eeea;color:#76716b; }
.hb-read-pill { background:#f7eee0;color:#a5813e; }
.hb-read-pill.read { background:#e8f1e9;color:#458255; }
.hb-list-heading,.hb-section-heading { display:flex;align-items:center;gap:18px;margin:8px 3px 0; }
.hb-list-heading h2,.hb-section-heading h2 { margin:0;font-size:21px; }
.hb-list-heading>span,.hb-section-heading p { color:var(--hb-muted);font-size:13px;margin:0;padding-left:18px;border-left:1px solid #d4d0c8; }
body .hb-bulletin .bulletin-toolbar { background:none;border:0;box-shadow:none;padding:0;gap:12px; }
body .hb-bulletin .bulletin-category-tabs { gap:7px; }
body .hb-bulletin .bulletin-category-tabs button { color:#7b766c;border:1px solid #e6e2d9;border-radius:30px;background:#fff;font-size:13px;box-shadow:none; }
body .hb-bulletin .bulletin-category-tabs button.active { color:white;background:var(--hb-gold);border-color:var(--hb-gold); }
body .hb-bulletin .bulletin-search-row label { background:white;border:1px solid var(--hb-line);border-radius:12px;box-shadow:none; }
body .hb-bulletin .bulletin-search-row input { background:transparent;color:var(--hb-ink); }
body .hb-bulletin .bulletin-filter-btn { background:#eee9dd;color:#9f8247;border:0;box-shadow:none; }
body .hb-bulletin .bulletin-announcement-list { display:grid;grid-template-columns:1fr;gap:14px; }
body .hb-bulletin .bulletin-announcement-card { display:flex;align-items:flex-start;gap:18px;min-width:0;padding:24px;border:1px solid #fff;border-radius:17px;background:#fff;box-shadow:0 5px 18px #18243604;color:var(--hb-ink); }
body .hb-bulletin .bulletin-announcement-card::before,body .hb-bulletin .bulletin-announcement-card::after { display:none; }
body .hb-bulletin .hb-announcement-content { min-width:0;flex:1; }
body .hb-bulletin .bulletin-announcement-card h2 { display:inline;font-size:19px;line-height:1.6;margin:0 0 0 8px;color:var(--hb-ink); }
body .hb-bulletin .bulletin-tag { background:#f3eee2!important;color:#9d814a!important;border:0;padding:4px 12px;font-size:12px;box-shadow:none; }
body .hb-bulletin .bulletin-announcement-card p { display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;margin:7px 0 13px;font-size:14px;line-height:1.7;color:#737882;white-space:normal; }
body .hb-bulletin .bulletin-announcement-card footer { display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--hb-muted);border:0;padding:0;margin:0;font-size:12px; }
.hb-list-arrow { align-self:center;color:var(--hb-gold); }
.hb-avatar { display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;overflow:hidden;width:40px;height:40px;border-radius:50%;background:#eae7e0;color:#8a7c62;font-size:16px;font-weight:600; }
.hb-avatar img { width:100%;height:100%;object-fit:cover; }
.hb-meta { display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;color:#7d838d; }
.hb-meta .hb-avatar { width:24px;height:24px;font-size:11px; }
.hb-meta i { width:1px;height:15px;background:#d5d4d0;margin:0 5px; }
.hb-personal-read { margin-left:auto;color:#af9357;white-space:nowrap;font-size:12px; }
.hb-personal-read.read { color:#91a397; }
body .hb-bulletin .bulletin-action-group { margin-left:auto; }
body .hb-bulletin .bulletin-action-button { border:0;background:transparent;color:#a08a5f;box-shadow:none;padding:3px 7px;font-size:12px;min-height:28px; }
body .hb-bulletin .bulletin-action-button.danger { color:#a68e86; }
body .hb-bulletin .bulletin-read-chip { background:#f6f3ec;border:0;color:#96805a;font-size:11px; }
body .hb-bulletin .bulletin-pagination button { background:#fff;border-color:#e8e3d8;color:#8e7a54;box-shadow:none; }
body .hb-bulletin .bulletin-pagination button.active { background:var(--hb-gold);color:white; }
.hb-community { display:none;gap:20px; }
.hb-board-mode .hb-community { display:grid; }
.hb-board-mode .hb-pinned,.hb-board-mode .hb-list-heading,.hb-board-mode .bulletin-toolbar,.hb-board-mode .bulletin-announcement-list,.hb-board-mode .bulletin-pagination { display:none!important; }
.hb-featured { position:relative;isolation:isolate;overflow:hidden;padding:25px 28px;border:1px solid #fff;border-radius:20px;background:linear-gradient(110deg,white,#faf8f2);box-shadow:0 8px 25px #18243605; }
.hb-featured h2 { margin:14px 0 7px;font-size:23px; }
.hb-featured>p { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7;font-size:15px;max-width:85%;color:#626975; }
.hb-featured footer { display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px; }
.hb-featured footer>button,.hb-primary { display:flex;align-items:center;gap:8px;border:0;border-radius:26px;background:linear-gradient(110deg,#ac8d50,#bfa36c);color:white;padding:11px 21px;font-size:14px;white-space:nowrap; }
.hb-watermark { position:absolute;right:30px;top:45px;z-index:-1;opacity:.065;color:#ad935d;transform:rotate(-15deg);pointer-events:none; }
.hb-watermark svg { width:125px;height:125px;stroke-width:2.6; }
.hb-category-cards { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.hb-category-cards button { display:flex;align-items:center;gap:14px;border:1px solid #fff;border-radius:16px;padding:18px;background:white;text-align:left;color:var(--hb-ink); }
.hb-category-cards button>span:nth-child(2) { flex:1; }
.hb-category-cards strong { display:block;font-size:19px;margin-bottom:5px; }
.hb-category-cards small { font-size:13px;color:#87878a; }
.hb-category-cards button>svg { color:var(--hb-gold);width:18px; }
.hb-composer { padding:18px 20px;background:white;border:1px solid #fff;border-radius:17px; }
.hb-compose-line { display:flex;align-items:flex-start;gap:14px; }
.hb-compose-line textarea { flex:1;min-width:0;resize:vertical;border:0;outline:none;color:#384352;font:inherit;font-size:15px;line-height:1.7;background:transparent; }
.hb-composer footer { display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px; }
.hb-composer footer>div { display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap; }
.hb-upload { position:relative;display:flex;cursor:pointer;color:#7a7f87;padding:5px; }
.hb-upload input { position:absolute;inset:0;width:100%;opacity:0;cursor:pointer; }
[data-hb-asset-name] { font-size:11px;color:#8b8b8b;overflow-wrap:anywhere; }
[data-hb-remove-asset] { border:0;background:none;color:#a07e4a;font-size:12px; }
.hb-posts { display:grid;gap:16px; }
.hb-post { background:white;padding:22px;border:1px solid #fff;border-radius:18px;box-shadow:0 5px 20px #18243604; }
.hb-post>header { display:flex;align-items:center;gap:12px; }
.hb-post>header strong { font-size:16px; }
.hb-post>header time { display:block;font-size:12px;color:#90949b;margin-top:4px; }
.hb-post-menu { margin-left:auto;position:relative;color:#84858b; }
.hb-post-menu summary { list-style:none;cursor:pointer;padding:10px;letter-spacing:2px; }
.hb-post-menu button { position:absolute;right:0;z-index:2;white-space:nowrap;background:#fff;padding:12px 20px;border:1px solid #e9e5db;border-radius:10px;color:#967549; }
.hb-post-body { white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.8;margin:13px 0 10px; }
.hb-attachment { display:block;color:#9f8247;font-size:14px; }
.hb-attachment img { width:auto;max-width:100%;max-height:460px;border-radius:12px;object-fit:contain; }
.hb-post-actions { display:flex;align-items:center;gap:20px;margin:8px 0 12px; }
.hb-post-actions button { display:flex;gap:7px;align-items:center;background:none;border:0;padding:4px 0;color:#485365;font-size:14px; }
.hb-post-actions button.liked { color:#af8b47; }
.hb-comment-preview,[data-hb-thread] { padding:10px 14px;background:#f5f6f7;border-radius:12px; }
.hb-comment-preview:empty { display:none; }
.hb-comment { display:flex;align-items:flex-start;gap:10px;padding:6px 0; }
.hb-comment .hb-avatar { width:28px;height:28px;font-size:12px; }
.hb-comment>div { min-width:0; }
.hb-comment strong { font-size:12px;margin-right:9px;color:#4d596b; }
.hb-comment p { display:inline;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.7;color:#646d7b; }
.hb-comment-preview>button,[data-hb-more-comments] { display:flex;align-items:center;gap:5px;margin:6px 0 0 auto;color:#a38b5c;font-size:12px;background:none;border:0; }
.hb-comment-preview>button svg { width:15px;height:15px; }
.hb-comment-form { display:flex;gap:9px;margin-top:12px; }
.hb-comment-form input { flex:1;min-width:0;background:#fafaf8;border:1px solid #eeece7;border-radius:25px;padding:10px 15px;font-size:13px;color:#3c4757; }
.hb-comment-form button { border:0;border-radius:25px;background:#f0eadf;color:#9b7f48;padding:8px 16px; }
.hb-empty { padding:45px 20px;display:grid;justify-items:center;gap:10px;color:#9c8b69;text-align:center; }
.hb-empty>svg { width:36px;height:36px; }
.hb-empty p,.hb-empty-inline { color:#97948c;font-size:13px; }
.hb-empty-inline { grid-column:1/-1;margin:5px 0; }
.hb-load-more { justify-self:center;padding:10px 28px;background:white;border:1px solid #e3dccd;border-radius:25px;color:#9a8050; }
body .hb-detail-modal .modal-header { background:#f7f6f3;color:#263041;border:0;box-shadow:none; }
body .hb-detail-modal .modal-header h2 { font-size:17px;color:#5a606a; }
body .hb-detail-modal .modal-header span { display:none; }
body .hb-detail-modal .modal-body { background:#f7f6f3;padding:20px; }
body .hb-detail-modal .article-box { background:none;padding:0;border:0;box-shadow:none; }
.hb-detail-card { position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#fff,#fcfbf8);border:1px solid #fff;border-radius:20px;padding:30px;box-shadow:0 8px 25px #18243605; }
.hb-detail-tags { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.hb-detail-tags>div { display:flex;gap:9px;flex-wrap:wrap; }
.hb-detail-card h2 { font-size:30px;line-height:1.45;margin:18px 0 14px;color:var(--hb-ink); }
.hb-detail-card>.hb-meta { border-bottom:1px solid var(--hb-line);padding-bottom:18px; }
.hb-detail-content { padding:15px 0;overflow-wrap:anywhere; }
body .hb-detail-modal .hb-detail-content p { margin:8px 0;font-size:17px;line-height:1.9;white-space:pre-wrap;color:#424e5e; }
.hb-paragraph-space { height:10px; }
.hb-detail-content ol { list-style:none;counter-reset:hb-step;padding:0;margin:16px 0; }
.hb-detail-content ol li { counter-increment:hb-step;display:flex;align-items:baseline;gap:14px;margin:13px 0;font-size:17px;line-height:1.8;color:#424e5e; }
.hb-detail-content ol li::before { content:counter(hb-step);display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--hb-gold);color:white;border-radius:50%;width:29px;height:29px;font-size:15px; }
.hb-signature { text-align:right;border-top:1px solid var(--hb-line);padding-top:15px;color:#c3b797;font-family:Georgia,serif;font-style:italic;font-size:15px; }
.hb-detail-attachments { display:grid;gap:12px;margin:10px 0 20px; }
.hb-detail-attachments img { max-width:100%;border-radius:12px; }
.hb-detail-attachments a { color:#a28750; }
body .hb-detail-modal .announcement-read-panel { border:0;background:transparent;box-shadow:none;padding:0;margin-top:25px; }
body .hb-detail-modal .announcement-read-panel header strong { color:var(--hb-ink);font-size:20px; }
body .hb-detail-modal .announcement-read-columns { display:grid;grid-template-columns:1.25fr 1fr;gap:14px; }
body .hb-detail-modal .announcement-read-columns article { border:1px solid white;background:white;border-radius:16px;padding:12px; }
body .hb-detail-modal .announcement-read-columns article h4 { padding:9px 12px;border-radius:10px;background:#edf3ee;color:#5a8968;margin:0 0 10px;font-size:15px; }
body .hb-detail-modal .announcement-read-columns article+article h4 { background:#f8f2e8;color:#b69460; }
body .hb-detail-modal .announcement-read-columns article>div { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
body .hb-detail-modal .announcement-read-columns span.read,body .hb-detail-modal .announcement-read-columns span.unread { display:flex;align-items:center;gap:7px;padding:4px;background:none;color:#4f5b6d;border:0;flex-wrap:wrap;font-size:13px; }
body .hb-detail-modal .announcement-read-columns .hb-avatar { width:28px;height:28px; }
body .hb-detail-modal .announcement-read-columns small { flex-basis:100%;font-size:10px;color:#969ca3; }
body .hb-detail-modal .modal-actions { background:#f7f6f3;border-top:1px solid var(--hb-line);padding:15px 20px;gap:12px; }
body .hb-detail-modal .modal-actions button { border:1px solid #ded9ce;color:#7c7058;background:white;box-shadow:none;border-radius:12px; }
body .hb-detail-modal .modal-actions button.primary { background:var(--hb-gold);color:white;border-color:var(--hb-gold); }
@media(min-width:1000px){body .hb-bulletin{max-width:none;margin-inline:0;width:100%;}.hb-community{max-width:none;width:100%;margin-inline:0;}}
@media(max-width:600px){
 body .hb-bulletin{padding:12px 10px;gap:13px;border-radius:0;}.hb-mode-tabs{width:100%;}.hb-mode-tabs button{flex:1;justify-content:center;padding:9px;font-size:14px;}
 .hb-pinned{padding:13px 10px;}.hb-pinned header{gap:8px;margin-bottom:10px;}.hb-pinned header h2{font-size:17px;}.hb-pinned header p{display:none;}.hb-pinned-grid{gap:7px;max-height:165px;}.hb-pin-card{display:block;padding:12px 9px;position:relative;}.hb-pin-card>.hb-icon{width:32px;height:32px;float:left;margin-right:5px;}.hb-pin-card>.hb-icon svg{width:21px;height:21px;}.hb-pin-card .hb-gold-pill{font-size:10px;padding:2px 8px;}.hb-pin-card strong{clear:both;font-size:14px;margin-top:12px;}.hb-pin-card em{font-size:10px;}.hb-pin-card>svg{display:none;}
 .hb-list-heading,.hb-section-heading{gap:10px;}.hb-list-heading h2,.hb-section-heading h2{font-size:18px;}.hb-list-heading>span,.hb-section-heading p{font-size:11px;padding-left:10px;}
 body .hb-bulletin .bulletin-announcement-card{gap:10px;padding:17px 12px;}body .hb-bulletin .bulletin-announcement-card h2{font-size:16px;}body .hb-bulletin .bulletin-announcement-card p{font-size:13px;}.hb-list-icon{width:38px;height:38px;}.hb-list-icon svg{width:23px;height:23px;}.hb-list-arrow{display:none;}.hb-meta{font-size:11px;gap:5px;}.hb-meta i{margin:0 3px;}body .hb-bulletin .bulletin-announcement-card footer{gap:7px;}.hb-meta .hb-avatar{width:20px;height:20px;}
 .hb-featured{padding:20px 17px;}.hb-featured h2{font-size:20px;}.hb-featured>p{font-size:14px;max-width:95%;}.hb-featured footer{gap:8px;flex-wrap:wrap;}.hb-featured footer>button{padding:9px 16px;font-size:13px;margin-left:auto;}
 .hb-category-cards{gap:9px;}.hb-category-cards button{gap:8px;padding:13px 10px;}.hb-category-cards .hb-icon{width:37px;height:37px;}.hb-category-cards .hb-icon svg{width:23px;height:23px;}.hb-category-cards strong{font-size:16px;}.hb-category-cards small{font-size:10px;}.hb-category-cards button>svg{width:12px;}
 .hb-composer{padding:14px;}.hb-composer footer{align-items:flex-end;}.hb-composer footer>div{gap:5px;}.hb-compose-line{gap:10px;}.hb-compose-line textarea{font-size:14px;}.hb-composer .hb-primary{padding:9px 18px;}.hb-avatar{width:35px;height:35px;}.hb-post{padding:17px 14px;}.hb-post-body{font-size:14px;}.hb-comment-preview,[data-hb-thread]{padding:8px 10px;}
 body .hb-detail-modal .modal-body{padding:12px;}.hb-detail-card{padding:22px 17px;}.hb-detail-card h2{font-size:27px;}.hb-detail-tags{align-items:flex-start;}.hb-gold-pill,.hb-neutral-pill,.hb-read-pill{font-size:12px;padding:4px 11px;}body .hb-detail-modal .hb-detail-content p,.hb-detail-content ol li{font-size:15px;}.hb-detail-card .hb-watermark{top:160px;right:12px;}.hb-detail-card .hb-watermark svg{width:100px;height:100px;}
 body .hb-detail-modal .announcement-read-columns{gap:9px;grid-template-columns:1fr 1fr;}body .hb-detail-modal .announcement-read-columns article>div{grid-template-columns:1fr;}
}
@media(prefers-reduced-motion:no-preference){.hb-pin-card,.hb-category-cards button,.hb-post{transition:box-shadow .18s ease;}.hb-pin-card:hover,.hb-category-cards button:hover{box-shadow:0 8px 22px #9b835518;}}
body.desktop-page .desktop-app .page.hb-bulletin[data-panel="bulletin"] .bulletin-title-strip { margin-bottom:0;min-height:70px;padding:6px 8px 16px;background:none; }
body.desktop-page .desktop-app .hb-bulletin .bulletin-toolbar { padding:0;background:none; }
body.desktop-page .desktop-app .hb-bulletin .bulletin-announcement-list { grid-template-columns:1fr;gap:14px; }
body.desktop-page .desktop-app .hb-bulletin .bulletin-pagination { position:static;width:100%;background:none;box-shadow:none;border:0;padding:10px 0; }
body.desktop-page .desktop-app .page.active.hb-bulletin[data-panel="bulletin"] { padding-bottom:20px; }
.hb-bulletin,.hb-detail-modal { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft JhengHei",sans-serif; }
body .hb-bulletin .bulletin-title-strip h1,body .hb-bulletin .bulletin-title-strip p,body .hb-detail-modal .modal-header h2 { text-shadow:none; }
.hb-section-heading [data-hb-refresh] { margin-left:auto;border:1px solid #e6dfd0;border-radius:20px;background:white;color:#9a8153;padding:5px 12px;font-size:12px;white-space:nowrap; }

/* Fill the desktop content area and expose permission-checked deletion. */
@media(min-width:1000px){body.desktop-page .desktop-app .page.hb-bulletin[data-panel="bulletin"],body .hb-bulletin .hb-community{max-width:none;width:100%;margin-inline:0;}}
.hb-delete-comment{margin-left:auto;flex-shrink:0;align-self:center;border:0;background:transparent;color:#aa7165;font-size:12px;padding:6px 8px;cursor:pointer;}
.hb-comment>div{flex:1;}
.hb-post-menu [data-hb-delete-post]{color:#a75e52;}

/* Read-list avatars must not inherit the name chip's horizontal padding. */
body .hb-detail-modal .announcement-read-columns .hb-avatar {
  display:inline-flex;flex:0 0 56px;width:56px;height:56px;min-width:56px;min-height:56px;
  padding:0;gap:0;margin:0;border:1px solid #e5e2da;border-radius:50%;overflow:hidden;box-sizing:border-box;
}
body .hb-detail-modal .announcement-read-columns .hb-avatar img {
  display:block;flex:none;width:100%;height:100%;min-width:0;max-width:none;max-height:none;
  margin:0;padding:0;border:0;border-radius:50%;object-fit:cover;object-position:center;box-sizing:border-box;
}
@media(max-width:600px){body .hb-detail-modal .announcement-read-columns .hb-avatar{flex-basis:44px;width:44px;height:44px;min-width:44px;min-height:44px;}}

/* Put creation alongside the view tabs; remove the redundant title spacer. */
body .hb-bulletin > .bulletin-title-strip { display:none!important; }
body .hb-bulletin .hb-topbar { display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin:0;padding:0; }
body .hb-bulletin .hb-topbar .hb-mode-tabs { width:fit-content;min-width:0;margin:0; }
body .hb-bulletin .hb-topbar .bulletin-create-btn { position:static!important;transform:none!important;flex:0 0 auto;margin:0!important;min-width:108px;height:40px;padding:0 16px; }
@media(max-width:600px){
 body .hb-bulletin .hb-topbar { gap:8px; }
 body .hb-bulletin .hb-topbar .hb-mode-tabs { flex:1;padding:3px;gap:2px; }
 body .hb-bulletin .hb-topbar .hb-mode-tabs button { font-size:12px;padding:8px 6px;gap:4px;white-space:nowrap; }
 body .hb-bulletin .hb-topbar .hb-mode-tabs svg { width:17px;height:17px; }
 body .hb-bulletin .hb-topbar .bulletin-create-btn { min-width:88px;height:37px;padding:0 10px;font-size:12px; }
}

.hb-pending-assets:empty{display:none}.hb-pending-assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;margin-top:12px}.hb-pending-asset{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid #e8e2d7;border-radius:10px;background:#faf9f6;min-width:0}.hb-pending-asset img{width:42px;height:42px;object-fit:cover;border-radius:7px}.hb-pending-asset span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:12px}.hb-pending-asset button{border:0;background:none;color:#9c6659;font-size:20px;padding:6px}.hb-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}.hb-photo-attachment img{display:block;width:100%;height:220px;object-fit:cover}.hb-file-attachment{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:13px;border:1px solid #e8e1d2;border-radius:12px;background:#faf8f3}.hb-file-attachment span{flex:1;overflow-wrap:anywhere}.hb-file-attachment small{white-space:nowrap}@media(max-width:600px){.hb-attachments{grid-template-columns:repeat(2,minmax(0,1fr))}.hb-photo-attachment img{height:150px}}

/* Comment actions and inline editor. */
.hb-comment-menu{position:relative;flex:none;margin-left:auto;color:#84858b}
.hb-comment-menu summary{list-style:none;cursor:pointer;padding:4px 8px;letter-spacing:2px;border-radius:6px}
.hb-comment-menu summary::-webkit-details-marker{display:none}
.hb-comment-menu summary:hover,.hb-comment-menu summary:focus-visible{background:#ece9e2}
.hb-comment-menu-items{position:absolute;right:0;top:100%;z-index:5;min-width:110px;padding:4px;background:#fff;border:1px solid #e8e2d7;border-radius:10px;box-shadow:0 6px 20px #19223620}
.hb-comment-menu-items button{display:block;width:100%;padding:9px 12px;text-align:left;border:0;border-radius:6px;background:transparent;color:#4d596b;cursor:pointer}
.hb-comment-menu-items button:hover{background:#f5f1e9}
.hb-comment-menu-items [data-hb-delete-comment]{color:#a75e52}
.hb-comment-edit{margin-top:6px}.hb-comment-edit textarea{display:block;box-sizing:border-box;width:100%;min-height:76px;resize:vertical;padding:10px;border:1px solid #d7c6a5;border-radius:8px;background:#fff;color:#3c4757;font:inherit}
.hb-comment-edit>div{display:flex;gap:8px;margin-top:8px}.hb-comment-edit button{padding:6px 14px;border:1px solid #e5dece;border-radius:7px;background:#f0eadf;color:#816538}.hb-comment-edit [data-hb-cancel-edit]{background:#fff;color:#687080}

.hb-comment [hidden]{display:none!important}

/* Compact mobile composer: avatar, text, photo and attachment in one row. */
@media (max-width:899px) {
 body:not(.desktop-page) .hb-composer { display:grid!important;grid-template-columns:38px minmax(0,1fr) 35px 35px;align-items:center;gap:0 5px;padding:10px 12px!important;border-radius:16px; }
 body:not(.desktop-page) .hb-composer .hb-compose-line,
 body:not(.desktop-page) .hb-composer footer,
 body:not(.desktop-page) .hb-composer footer>div { display:contents!important; }
 body:not(.desktop-page) .hb-composer [data-hb-my-avatar] { grid-column:1;grid-row:1; }
 body:not(.desktop-page) .hb-composer .hb-avatar { width:38px;height:38px;display:flex; }
 body:not(.desktop-page) .hb-composer textarea { grid-column:2;grid-row:1;box-sizing:border-box;width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;margin:0!important;padding:10px 2px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;resize:none;overflow:auto;font-size:13px!important;line-height:20px!important;white-space:nowrap; }
 body:not(.desktop-page) .hb-composer textarea:focus { height:80px!important;white-space:pre-wrap; }
 body:not(.desktop-page) .hb-composer .hb-upload { grid-row:1;display:flex;justify-content:center;align-items:center;width:35px;height:30px;box-sizing:border-box;padding:4px 5px!important;margin:0!important;border:0;border-left:1px solid #dddcd8;background:none; }
 body:not(.desktop-page) .hb-composer .hb-upload:first-child { grid-column:3; }
 body:not(.desktop-page) .hb-composer .hb-upload:nth-child(2) { grid-column:4; }
 body:not(.desktop-page) .hb-composer .hb-upload svg { width:23px;height:23px; }
 body:not(.desktop-page) .hb-composer [data-hb-asset-name] { display:none; }
 body:not(.desktop-page) .hb-composer .hb-primary { display:none;grid-column:3/5;grid-row:3;justify-self:end;margin-top:8px; }
 body:not(.desktop-page) .hb-composer:has(textarea:not(:placeholder-shown)) .hb-primary,
 body:not(.desktop-page) .hb-composer:has(.hb-pending-assets:not(:empty)) .hb-primary { display:block; }
 body:not(.desktop-page) .hb-composer .hb-pending-assets { grid-column:1/-1;grid-row:2;width:100%;grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Reveal own comment actions only after selecting the comment. */
.hb-comment-menu:not(.hb-menu-visible){visibility:hidden;pointer-events:none}

/* Compact comment spacing and action trigger. */
.hb-comment{gap:7px;padding:3px 0;align-items:center}
.hb-comment-menu summary{padding:2px 4px;font-size:11px;line-height:18px;letter-spacing:1px;min-width:0;min-height:0}
.hb-comment-menu-items{min-width:90px;padding:3px}
.hb-comment-menu-items button{padding:6px 10px;font-size:12px;min-height:0}

/* Further tighten comment actions and row spacing. */
.hb-comment{gap:5px;padding:1px 0}
.hb-comment-menu summary{padding:1px 3px;font-size:10px;line-height:15px;letter-spacing:.5px}
.hb-comment-menu-items{min-width:76px;padding:2px;border-radius:7px}
.hb-comment-menu-items button{padding:4px 8px;font-size:11px;line-height:16px}

/* Mobile announcement composer and inline media. */
.hb-board-announcements{display:grid;gap:12px;min-width:0}.hb-board-announcement{background:white;border:1px solid #e9e4da;border-radius:18px;padding:18px;min-width:0}.hb-board-announcement h3{margin:10px 0;font-size:18px}.hb-board-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.hb-board-body p{margin:6px 0}.hb-board-announcement footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:14px}.hb-inline-media{display:block;width:100%;max-height:460px;object-fit:contain;border-radius:12px;margin:12px 0;background:#f5f5f5}.hb-category-manager{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}.hb-category-manager input{min-width:0;flex:1;padding:10px}.hb-category-manager button{padding:9px 12px;border:1px solid #d4c7ac;border-radius:9px;background:#fff}.hb-category-manager p{flex-basis:100%;font-size:12px;color:#687382;margin:0}.hb-editor-preview{min-width:0}.hb-board-announcements .hb-section-heading{margin:0}
@media(max-width:600px){body [data-modal="announcement-create"] textarea{min-height:240px!important;height:34vh!important;max-height:none!important;resize:vertical;line-height:1.7;font-size:16px;padding:12px;width:100%;box-sizing:border-box}body [data-modal="announcement-create"] .field-grid.two{grid-template-columns:1fr}.hb-board-announcement{padding:15px}.hb-inline-media{max-height:360px}}

/* Separate the reaction action from its people list. */
.hb-post-actions{gap:14px;flex-wrap:wrap}.hb-post-actions button{min-height:44px}.hb-post-actions .hb-like-count{color:#737b89;font-size:13px;text-decoration:underline;text-underline-offset:3px;padding:4px 8px}.hb-post-actions [data-hb-like]{gap:6px}
.hb-board-announcement footer [data-sql-announcement-view]{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 19px;border:1px solid #ae945c;border-radius:999px;background:#ae945c;color:#fff;font:inherit;font-size:13px;font-weight:600;box-shadow:0 2px 5px #ae945c22;cursor:pointer}.hb-board-announcement footer [data-sql-announcement-view]:hover{background:#947c48}.hb-board-announcement footer [data-sql-announcement-view]:focus-visible{outline:3px solid #294d75;outline-offset:3px}
.hb-likes-dialog{width:min(420px,calc(100vw - 28px));max-height:70dvh;overflow:auto;border:1px solid #e4dac7;border-radius:20px;padding:0;color:#17263d;background:#fff;box-shadow:0 20px 70px #0003}.hb-likes-dialog::backdrop{background:#14203966}.hb-likes-dialog header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #eee7db;position:sticky;top:0;background:white}.hb-likes-dialog h2{font-size:18px;margin:0}.hb-likes-dialog header button{width:44px;height:44px;border:0;border-radius:50%;background:#f5f2ec;font-size:26px;color:#586574}.hb-likes-dialog ul{list-style:none;margin:0;padding:8px 18px}.hb-likes-dialog li{display:flex;align-items:center;gap:12px;min-height:60px;overflow-wrap:anywhere}.hb-likes-dialog .hb-avatar{width:40px;height:40px;flex:0 0 40px}.hb-likes-dialog p{padding:0 18px;color:#6c7784}.hb-likes-dialog [data-likes-more]{display:block;margin:10px auto 18px;padding:10px 22px;border:1px solid #d8c9aa;border-radius:20px;background:#faf7f0;color:#725c32}

.hb-likes-dialog [data-likes-more][hidden]{display:none}

.hb-gallery{width:100%;min-width:0;max-width:100%;margin:12px 0}.hb-gallery-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;gap:0}.hb-gallery-track::-webkit-scrollbar{display:none}.hb-gallery-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:flex;align-items:center;justify-content:center;background:#f3f2ee;border-radius:12px;overflow:hidden}.hb-gallery-slide .hb-inline-media{width:100%;max-width:100%;height:300px;max-height:60vh;object-fit:contain;margin:0}.hb-gallery-caption{display:flex;justify-content:space-between;padding:6px 2px;color:#74736d;font-size:12px}.hb-card-gallery{grid-column:1/-1;width:100%;min-width:0}.hb-editor-preview{display:flex;flex-wrap:wrap;gap:8px}.hb-editor-preview .hb-inline-media{width:90px;height:90px;object-fit:cover;margin:0}

/* Gallery occupies a separate row, never competes with announcement text. */
body .hb-bulletin .bulletin-announcement-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start}
body .hb-bulletin .bulletin-announcement-card>.hb-list-icon{grid-column:1;grid-row:1}
body .hb-bulletin .bulletin-announcement-card>.hb-announcement-content{grid-column:2;grid-row:1;min-width:0;width:100%;overflow-wrap:anywhere}
body .hb-bulletin .bulletin-announcement-card>.hb-list-arrow{grid-column:3;grid-row:1}
body .hb-bulletin .bulletin-announcement-card>.hb-card-gallery{grid-column:1/-1;grid-row:2;min-width:0;width:100%;max-width:100%}
@media(max-width:767px){body .hb-bulletin .bulletin-announcement-card{grid-template-columns:38px minmax(0,1fr)}}

/* Desktop announcement cards and proportional media; mobile retains its layout. */
@media(min-width:900px){
 body.desktop-page .desktop-app .hb-bulletin .bulletin-announcement-list,
 body .hb-bulletin .bulletin-announcement-list{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
 body .hb-bulletin .bulletin-announcement-card{padding:18px;gap:12px;align-content:start;grid-template-columns:38px minmax(0,1fr)}
 body .hb-bulletin .bulletin-announcement-card>.hb-list-icon{width:38px;height:38px}
 body .hb-bulletin .bulletin-announcement-card>.hb-list-arrow{display:none}
 body .hb-bulletin .bulletin-announcement-card h2{font-size:17px}
 body .hb-bulletin .hb-gallery,.hb-detail-modal .hb-gallery{max-width:480px;margin-inline:auto}
 body .hb-bulletin .hb-gallery-slide,.hb-detail-modal .hb-gallery-slide{background:transparent}
 body .hb-bulletin .hb-gallery-slide .hb-inline-media,.hb-detail-modal .hb-gallery-slide .hb-inline-media{width:auto;height:auto;max-width:100%;max-height:300px;object-fit:contain;flex-shrink:1}
}

/* Desktop message-board photos retain their original aspect ratio. */
@media(min-width:900px){
 .hb-post .hb-attachments{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px}
 .hb-post .hb-photo-attachment{flex:0 1 auto;min-width:0;max-width:100%}
 .hb-post .hb-photo-attachment img{width:auto;height:auto;max-width:100%;max-height:460px;object-fit:contain}
 .hb-post .hb-file-attachment{flex:1 0 100%;box-sizing:border-box}
}

.photo-viewer.hb-gallery-viewer [data-photo-viewer-nav]{display:none!important}
.photo-viewer.hb-gallery-viewer{touch-action:pan-y pinch-zoom}

/* Desktop announcement photos sit below the text, aligned left. */
@media(min-width:900px){
 body .hb-bulletin .hb-gallery,.hb-detail-modal .hb-gallery{margin-left:0;margin-right:auto}
 body .hb-bulletin .hb-gallery-slide,.hb-detail-modal .hb-gallery-slide{justify-content:flex-start}
}

/* Equal heights within each desktop announcement row. */
@media(min-width:900px){
 body.desktop-page .desktop-app .hb-bulletin .bulletin-announcement-list,body .hb-bulletin .bulletin-announcement-list{align-items:stretch}
 body .hb-bulletin .bulletin-announcement-card{align-self:stretch;box-sizing:border-box}
}

.hb-announcement-video{width:100%;min-width:0;margin:12px 0}.hb-announcement-video video.hb-inline-media{width:auto;height:auto;max-width:100%;max-height:60vh;margin:0;object-fit:contain}
@media(min-width:900px){.hb-announcement-video{max-width:480px}.hb-announcement-video video.hb-inline-media{max-height:300px}}

/* Preserve author-entered list numbers across paragraph breaks. */
.hb-detail-content ol li[data-step]::before { content: attr(data-step); }

/* Announcement photos use the same proportional size limits as videos. */
.hb-gallery-slide { background: transparent; justify-content: flex-start; }
.hb-gallery-slide img.hb-inline-media {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  flex-shrink: 1;
}
@media (min-width: 900px) {
  .hb-gallery-slide img.hb-inline-media { max-height: 300px; }
}

/* Bulletin photo stage and horizontally scrollable thumbnail selector. */
.hb-gallery.hb-photo-gallery{width:100%;max-width:100%;margin:14px 0;min-width:0}
.hb-photo-stage{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:clamp(240px,42vw,420px);overflow:hidden;border-radius:14px;background:#f4f3ef;touch-action:pan-y pinch-zoom}
.hb-photo-stage>[data-hb-photo-open]{display:block;width:100%;height:100%;padding:14px;border:0;background:transparent;cursor:zoom-in;box-sizing:border-box}
.hb-photo-stage img[data-hb-photo-main]{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;border-radius:6px;user-select:none}
.hb-photo-stage>[data-hb-photo-step]{position:absolute;top:50%;transform:translateY(-50%);width:34px;height:44px;border:1px solid #ded6c7;border-radius:9px;background:#ffffffdf;color:#785b27;font-size:28px;line-height:1;padding:0;cursor:pointer;z-index:1}
.hb-photo-prev{left:8px}.hb-photo-next{right:8px}
.hb-photo-meta{display:flex;justify-content:space-between;gap:12px;margin:8px 2px;color:#8a7756;font-size:12px}
.hb-photo-thumbs{position:relative;display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x proximity;padding:4px 2px 9px;touch-action:pan-x pan-y}
.hb-photo-thumbs>[data-hb-photo-thumb]{flex:0 0 72px;width:72px;height:80px;box-sizing:border-box;border:2px solid transparent;border-radius:9px;background:#f2f1ed;padding:4px;cursor:pointer;scroll-snap-align:center}
.hb-photo-thumbs>[data-hb-photo-thumb][aria-pressed=true]{border-color:#b78b3c;background:#fff8e9;box-shadow:0 0 0 1px #b78b3c}
.hb-photo-thumbs img{display:block;width:100%;height:100%;object-fit:contain;border-radius:4px;margin:0;user-select:none}
.hb-photo-gallery button:focus-visible,.hb-photo-close:focus-visible{outline:3px solid #c99635;outline-offset:3px}
.hb-photo-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;padding:56px max(16px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom));margin:0;border:0;background:#111820;color:white;overflow:hidden}
.hb-photo-dialog::backdrop{background:#111820f5}
.hb-photo-dialog .hb-photo-gallery{display:flex;flex-direction:column;height:100%;margin:0}
.hb-photo-dialog .hb-photo-stage{flex:1;min-height:0;height:auto;background:transparent;touch-action:pan-y pinch-zoom}
.hb-photo-dialog [data-hb-photo-open]{cursor:default}
.hb-photo-dialog .hb-photo-meta{flex:none;color:#eee2ce}
.hb-photo-dialog .hb-photo-thumbs{flex:none;max-width:100%;align-self:center}
.hb-photo-dialog .hb-photo-thumbs>[data-hb-photo-thumb]{background:#26313b}
.hb-photo-dialog .hb-photo-thumbs>[aria-pressed=true]{background:#453a27}
.hb-photo-close{position:absolute;top:max(8px,env(safe-area-inset-top));right:16px;width:40px;height:40px;border:1px solid #ffffff55;border-radius:50%;background:#ffffff15;color:#fff;font-size:29px;padding:0;cursor:pointer;z-index:2}
@media(max-width:600px){.hb-photo-stage{height:320px;height:min(48vh,360px)}.hb-photo-thumbs>[data-hb-photo-thumb]{flex-basis:62px;width:62px;height:70px}.hb-photo-dialog{padding-top:max(56px,calc(env(safe-area-inset-top) + 48px))}}
@media(prefers-reduced-motion:reduce){.hb-photo-gallery *{scroll-behavior:auto!important}}

.hb-photo-stage > [data-hb-photo-open]{position:relative;overflow:hidden}
.hb-photo-stage img[data-hb-photo-outgoing]{position:absolute;inset:14px;width:calc(100% - 28px);height:calc(100% - 28px);max-width:none;max-height:none;object-fit:contain;margin:0;border-radius:6px;pointer-events:none;user-select:none}

/* Gallery dimensions override the legacy 170 x 112 article attachment rule. */
.hb-photo-gallery .hb-photo-stage{background:transparent;border-radius:0;box-shadow:none}
.hb-photo-gallery img[data-hb-photo-main],.hb-photo-gallery .hb-photo-thumbs img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important}
.hb-photo-gallery img[data-hb-photo-outgoing]{width:calc(100% - 28px)!important;height:calc(100% - 28px)!important;max-width:none!important;max-height:none!important;object-fit:contain!important;margin:0!important}

/* Video attachments stay in one horizontally scrollable row. */
.hb-announcement-videos{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:12px;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;margin:12px 0;padding-bottom:6px}
.hb-announcement-videos>.hb-announcement-video{flex:0 0 auto;width:auto;min-width:0;max-width:85%;margin:0}
.hb-announcement-videos>.hb-announcement-video>video.hb-inline-media{display:block;width:auto;height:300px;max-height:60vh;max-width:100%;object-fit:contain;margin:0}

/* Matching NOTE / board / announcements navigation on desktop and mobile. */
body .note-workspace-tabs{display:flex;align-items:stretch;width:100%;gap:0;padding:3px;border:1px solid #e4e7eb;border-radius:12px;background:linear-gradient(#f5f6f7,#e9ebee);box-shadow:0 2px 8px #1824360d;box-sizing:border-box;}
body .note-workspace-tabs button{position:relative;flex:1;min-width:0;justify-content:center;gap:7px;white-space:nowrap;padding:10px 14px;border:0;border-radius:8px;background:transparent;color:#384455;font-size:14px;font-weight:600;line-height:1.4;}
body .note-workspace-tabs button+button:before{content:'';position:absolute;left:0;top:28%;bottom:28%;width:1px;background:#d6dbe1;}
body .note-workspace-tabs button.active{background:#15334b;color:#fff;box-shadow:0 3px 7px #15334b22;}
body .note-workspace-tabs button.active:before,body .note-workspace-tabs button.active+button:before{display:none;}
body .note-workspace-tabs svg{width:18px;height:18px;flex:0 0 18px;}
body .hb-bulletin .hb-topbar{flex-wrap:wrap;}
body .hb-bulletin .hb-topbar .note-workspace-tabs{width:100%;flex:1 0 100%;padding:3px;gap:0;}
body .hb-bulletin .hb-topbar .bulletin-create-btn{margin-left:auto!important;}
[data-team-workspace-nav]>.note-workspace-tabs{margin-bottom:12px;}
@media(max-width:600px){body .note-workspace-tabs button,body .hb-bulletin .hb-topbar .note-workspace-tabs button{font-size:13px;padding:9px 6px;gap:6px;}}

body .note-workspace-tabs,body .note-workspace-tabs button{box-sizing:border-box;max-width:100%;}body .note-workspace-tabs button{flex:1 1 0;}body .hb-bulletin .hb-topbar .note-workspace-tabs{flex:0 1 100%;}


/* Announcement palette matches the NOTE / board / announcements navigation. */
body .hb-bulletin, body .hb-detail-modal { --hb-ink:#182436; --hb-muted:#627080; --hb-gold:#15334b; --hb-paper:#f4f6f8; --hb-line:#dce2e8; }
body .hb-bulletin .hb-pinned { background:#f7f9fbf5; border-color:#e1e6ec; }
body .hb-bulletin .hb-pin-card, body .hb-bulletin .bulletin-announcement-card { background:#fff; border-color:#e1e6ec; }
body .hb-bulletin .hb-icon, body .hb-detail-modal .hb-icon { color:#15334b; background:#e9eef3; }
body .hb-bulletin .hb-gold-pill, body .hb-detail-modal .hb-gold-pill { color:#fff; background:#15334b; }
body .hb-bulletin .hb-neutral-pill, body .hb-detail-modal .hb-neutral-pill { color:#536477; background:#e9eef3; }
body .hb-bulletin .bulletin-create-btn { background:#15334b; color:#fff; }
body .hb-bulletin .bulletin-category-tabs button { color:#536477; border-color:#dce2e8; background:#fff; }
body .hb-bulletin .bulletin-category-tabs button.active { background:#15334b; border-color:#15334b; color:#fff; }
body .hb-bulletin .bulletin-filter-btn { background:#e9eef3; color:#15334b; }
body .hb-bulletin .bulletin-tag { background:#e9eef3!important; color:#24465f!important; }
body .hb-bulletin .bulletin-read-chip { background:#edf1f5; color:#536477; }
body .hb-bulletin .bulletin-action-button { color:#24465f; }
body .hb-bulletin .bulletin-action-button.danger { color:#a34848; }
body .hb-bulletin .hb-personal-read, body .hb-detail-modal .hb-read-pill { color:#24465f; }
body .hb-detail-modal .hb-read-pill { background:#e9eef3; }
body .hb-bulletin .hb-personal-read.read { color:#627080; }
body .hb-detail-modal .hb-read-pill.read { background:#eef2f5; color:#536477; }
body .hb-bulletin .hb-avatar, body .hb-detail-modal .hb-avatar { background:#e9eef3; color:#536477; }
body .hb-bulletin .hb-meta, body .hb-detail-modal .hb-meta { color:#627080; }
body .hb-bulletin .hb-meta i, body .hb-detail-modal .hb-meta i { background:#dce2e8; }
body .hb-bulletin .hb-pinned header p, body .hb-bulletin .hb-list-heading>span { border-color:#dce2e8; }
body .hb-bulletin .bulletin-pagination button { border-color:#dce2e8; color:#24465f; }
body .hb-bulletin .bulletin-pagination button.active { background:#15334b; color:#fff; }
body .hb-detail-modal .modal-header, body .hb-detail-modal .modal-body { background:#f4f6f8; }
body .hb-detail-modal .hb-detail-card { background:#fff; border-color:#e1e6ec; }
body .hb-detail-modal .hb-watermark { color:#15334b; }
body .hb-detail-modal .hb-signature { color:#627080; }
body .hb-bulletin .hb-photo-stage>[data-hb-photo-step], body .hb-detail-modal .hb-photo-stage>[data-hb-photo-step] { color:#15334b; border-color:#dce2e8; }
body .hb-bulletin .hb-photo-meta, body .hb-detail-modal .hb-photo-meta { color:#627080; }
body .hb-bulletin .hb-photo-thumbs>[data-hb-photo-thumb], body .hb-detail-modal .hb-photo-thumbs>[data-hb-photo-thumb] { background:#edf1f5; }
body .hb-bulletin .hb-photo-thumbs>[aria-pressed=true], body .hb-detail-modal .hb-photo-thumbs>[aria-pressed=true] { border-color:#15334b; background:#e9eef3; box-shadow:0 0 0 1px #15334b; }
body .hb-bulletin :is(.bulletin-create-btn,.bulletin-category-tabs button.active):hover { background:#24465f; }
body .hb-bulletin :is(button,input):focus-visible, body .hb-detail-modal button:focus-visible { outline:2px solid #416c8a; outline-offset:3px; }

/* Complete announcement tab/pagination states, including legacy theme overrides. */
html body .page[data-panel="bulletin"] :is(.bulletin-category-tabs,.bulletin-pagination) button { background:#fff!important; background-image:none!important; color:#536477!important; border-color:#dce2e8!important; box-shadow:none!important; }
html body .page[data-panel="bulletin"] :is(.bulletin-category-tabs,.bulletin-pagination) button:hover:not(:disabled):not(.active) { background:#e9eef3!important; color:#15334b!important; border-color:#b8c8d5!important; }
html body .page[data-panel="bulletin"] :is(.bulletin-category-tabs,.bulletin-pagination) button.active, html body .page[data-panel="bulletin"] :is(.bulletin-category-tabs,.bulletin-pagination) button[aria-current="page"] { background:#15334b!important; color:#fff!important; border-color:#15334b!important; }
html body .page[data-panel="bulletin"] :is(.bulletin-category-tabs,.bulletin-pagination) button:disabled { background:#edf1f5!important; color:#7b8997!important; border-color:#dce2e8!important; cursor:default; }
html body .page[data-panel="bulletin"] .bulletin-pagination p { color:#627080!important; }
html body .page[data-panel="bulletin"] .note-workspace-tabs { background:linear-gradient(#f5f6f7,#e9ebee)!important; border-color:#dce2e8!important; }
html body .page[data-panel="bulletin"] .note-workspace-tabs button { background:transparent!important; color:#384455!important; border-color:transparent!important; }
html body .page[data-panel="bulletin"] .note-workspace-tabs button.active { background:#15334b!important; color:#fff!important; }

/* Board title, refresh and create action share one row. */
body .hb-bulletin .hb-section-heading{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0;}
body .hb-bulletin .hb-section-heading h2{flex:0 0 auto;margin:0;white-space:nowrap;}
body .hb-bulletin .hb-section-heading [data-hb-refresh]{margin-left:auto;flex:0 0 auto;}
body .hb-bulletin .hb-section-heading .bulletin-create-btn{position:static!important;transform:none!important;flex:0 0 auto;margin:0!important;min-width:88px;min-height:36px;height:36px;padding:0 12px;white-space:nowrap;font-size:12px;}

/* Board uses its composer; announcement actions belong only to announcements. */
body .hb-bulletin.hb-board-mode .hb-topbar .bulletin-create-btn{display:none!important;}

/* Match the NOTE desktop navigation dimensions on board and announcements. */
@media(min-width:900px){
html body .page[data-panel="bulletin"] .note-workspace-tabs,
html body .hb-bulletin .hb-topbar .note-workspace-tabs{width:min(942px,100%)!important;max-width:942px!important;flex:0 1 942px!important;justify-self:start;align-self:start;margin-left:0;margin-right:auto;padding:3px!important;gap:0!important;}
html body .page[data-panel="bulletin"] .note-workspace-tabs button{display:flex;align-items:center;justify-content:center;flex:1 1 0!important;min-width:0!important;min-height:40px!important;height:40px!important;padding:10px 14px!important;font-size:14px!important;line-height:1.4!important;gap:7px!important;border-radius:8px!important;}
}


/* Center desktop workspace tabs independently of the create action. */
@media(min-width:900px){
html body .hb-bulletin .hb-topbar{display:grid;grid-template-columns:minmax(0,1fr);width:100%;}
html body .page[data-panel="bulletin"] .note-workspace-tabs,html body .hb-bulletin .hb-topbar .note-workspace-tabs{justify-self:center;align-self:center;margin-left:auto!important;margin-right:auto!important;}
html body .hb-bulletin .hb-topbar .bulletin-create-btn{justify-self:end;}
html body [data-team-workspace-nav]>.note-workspace-tabs{margin-left:auto;margin-right:auto;}
}

/* Create announcements in the pinned section header. */
body .hb-bulletin .hb-pinned>header{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;}
body .hb-bulletin .hb-pinned>header>p{min-width:0;flex:1;}
body .hb-bulletin .hb-pinned>header>.bulletin-create-btn{position:static!important;transform:none!important;flex:0 0 auto;margin:0 0 0 auto!important;min-width:88px;min-height:36px;height:36px;padding:0 12px;font-size:12px;white-space:nowrap;}
@media(max-width:600px){body .hb-bulletin .hb-pinned>header h2{gap:6px;font-size:15px;}body .hb-bulletin .hb-pinned>header h2 small{font-size:11px;}}

/* Keep workspace tab geometry identical in all three views. */
html body [data-team-workspace-nav]>.note-workspace-tabs,
html body .page[data-panel="bulletin"] .hb-topbar>.note-workspace-tabs{box-sizing:border-box!important;height:48px!important;min-height:48px!important;padding:3px!important;gap:0!important;align-items:stretch!important;}
html body [data-team-workspace-nav]>.note-workspace-tabs>button,
html body .page[data-panel="bulletin"] .hb-topbar>.note-workspace-tabs>button{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 6px!important;line-height:1.4!important;border:0!important;}
@media(max-width:899px){
html body [data-team-workspace-nav]>.note-workspace-tabs,
html body .page[data-panel="bulletin"] .hb-topbar>.note-workspace-tabs{height:40px!important;min-height:40px!important;}
html body [data-team-workspace-nav]>.note-workspace-tabs>button,
html body .page[data-panel="bulletin"] .hb-topbar>.note-workspace-tabs>button{height:32px!important;min-height:32px!important;font-size:13px!important;}
}

/* Align the workspace navigation with the board's top edge. */
html body .page[data-panel="fix-progress"] .team-notebook{padding-top:18px!important;}
@media(max-width:899px){html body .page[data-panel="fix-progress"] .team-notebook{padding-top:0!important;}}

/* The workspace strip is independent of the notebook's editor columns. */
html body .page[data-panel="fix-progress"] [data-team-workspace-nav]{box-sizing:border-box;width:100%;padding:18px 18px 12px;}
html body .page[data-panel="fix-progress"] .team-notebook{padding-top:0!important;}
html body .page .note-workspace-tabs{width:min(942px,100%)!important;max-width:942px!important;color:#182436!important;margin-left:auto!important;margin-right:auto!important;margin-top:0!important;margin-bottom:0!important;border:1px solid #dce2e8!important;border-radius:12px!important;background:linear-gradient(#f5f6f7,#e9ebee)!important;box-shadow:0 2px 8px #1824360d!important;}
html body .page .note-workspace-tabs>button{flex:1 1 0!important;width:0!important;min-width:0!important;font-family:inherit!important;font-size:14px!important;font-weight:600!important;letter-spacing:normal!important;gap:7px!important;border-radius:8px!important;background:transparent!important;color:#384455!important;box-shadow:none!important;}
html body .page .note-workspace-tabs>button.active{background:#15334b!important;color:#fff!important;box-shadow:0 3px 7px #15334b22!important;}
html body .page .note-workspace-tabs>button:not(:focus-visible){outline:none!important;}
html body .page .note-workspace-tabs svg{width:18px!important;height:18px!important;flex:0 0 18px!important;}
@media(max-width:899px){html body .page[data-panel="fix-progress"] [data-team-workspace-nav]{padding:0 0 12px;}html body .page .note-workspace-tabs>button{font-size:13px!important;gap:6px!important;}}

/* Category management controls match the adjacent category selector. */
html body [data-modal="announcement-create"] .hb-category-manager{display:grid;grid-template-columns:minmax(100px,1fr) auto auto;gap:8px;align-items:center;align-self:end;min-width:0;margin:0;position:relative;}
html body [data-modal="announcement-create"] .hb-category-manager input,
html body [data-modal="announcement-create"] .hb-category-manager button,
html body [data-modal="announcement-create"] .mobile-field select{box-sizing:border-box;height:44px!important;min-height:44px!important;margin:0;line-height:1.4;font-family:inherit;font-size:14px;}
html body [data-modal="announcement-create"] .hb-category-manager input{width:100%;min-width:0;padding:10px 12px;border:1px solid #c5d2e0;border-radius:12px;background:#fff;color:#243244;outline:none;box-shadow:none;}
html body [data-modal="announcement-create"] .hb-category-manager input:focus{border-color:#285675!important;box-shadow:0 0 0 3px #28567518!important;outline:none!important;}
html body [data-modal="announcement-create"] .hb-category-manager button{padding:10px 12px;white-space:nowrap;border:1px solid #c5d2e0;border-radius:12px;background:#fff;color:#243244;}
html body [data-modal="announcement-create"] [data-hb-category-status]{position:absolute;top:calc(100% + 4px);left:0;right:0;line-height:1.4;margin:0;font-size:12px;}
html body [data-modal="announcement-create"] [data-hb-category-status]:empty{display:none;}
@media(max-width:600px){html body [data-modal="announcement-create"] .hb-category-manager{grid-template-columns:1fr 1fr;}html body [data-modal="announcement-create"] .hb-category-manager input{grid-column:1/-1;font-size:16px;}html body [data-modal="announcement-create"] .hb-category-manager button{width:100%;}}

/* Video controls need a full-width preview, independent of photo thumbnails. */
.hb-editor-preview video.hb-inline-media{flex:0 0 100%;display:block;box-sizing:border-box;width:100%;max-width:100%;height:clamp(220px,45vh,360px);object-fit:contain;background:#111820;margin:4px 0 0}

/* Keep the direct fullscreen control without the browser overflow menu. */
video.hb-inline-media::-webkit-media-controls-overflow-button{display:none!important}

/* Avoid touch flash and image selection while retaining keyboard focus and selected borders. */
.hb-photo-gallery,.hb-photo-gallery button,.hb-photo-gallery img,.hb-photo-close{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
.hb-photo-gallery img{-webkit-user-drag:none;-webkit-touch-callout:none}
.hb-photo-gallery button:focus:not(:focus-visible),.hb-photo-close:focus:not(:focus-visible){outline:none}

/* Touch highlighting can originate on the clickable card, not only the image. */
html body .bulletin-announcement-card,html body .hb-photo-gallery,html body .hb-photo-gallery *{-webkit-tap-highlight-color:transparent!important}
html body .hb-photo-gallery,html body .hb-photo-gallery *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none}
html body .hb-photo-gallery[data-hb-pointer] button:focus{outline:none!important}
html body .hb-photo-gallery ::selection{background:transparent}
