/* 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; }
}
