/* 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:1100px;margin-inline:auto;width:100%;}.hb-community{max-width:900px;width:100%;margin-inline:auto;}}
@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; }
