/* Targeted additions; palettes come from the existing retro.css theme tokens. */
[hidden] { display: none !important; }
body .forum-icon { display: inline-block; width: 20px; height: 20px; flex: 0 0 20px; vertical-align: middle; }
body .notification-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--button-bg); color: var(--text-primary); text-decoration: none; }
body .notification-bell:hover { background: var(--button-hover); }
body .notification-counter { position: absolute; top: -3px; right: -5px; min-width: 19px; padding: 2px 4px; border: 2px solid var(--bg-secondary); border-radius: 12px; background: var(--danger); color: var(--bg-secondary); font: 700 10px/1.2 var(--font-sans, sans-serif); text-align: center; }
body .sidebar-section { padding: 12px; border-radius: 16px; }
body .sidebar-link { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 0; padding: 9px 10px; border-radius: 9px; font-size: 13px; line-height: 1.3; }
body .sidebar-link span:last-child { min-width: 0; overflow-wrap: anywhere; }
body .sidebar-title { margin-bottom: 8px; font-size: 11px; }
body .site-nav-section { margin-top: 12px; }
body .site-nav-link { min-height: 44px; padding: 9px 10px; border-radius: 10px; }
body .site-nav-link-text small { margin-top: 2px; font-size: 11px; }
body .site-nav-icon { width: 24px; min-width: 24px; font-size: 17px; }
body .site-nav-list { gap: 2px; }
body .post-header { display: flex; position: relative; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding-right: 48px; }
body .post-header .post-author { flex: 1 1 160px; min-width: 0; max-width: 100%; }
body .post-info { min-width: 0; }
body .post-username { overflow-wrap: anywhere; }
body .post-header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; min-width: 0; max-width: 100%; }
body .post-header>div:last-child { width: auto; }
body .post-menu { position: absolute; top: 0; right: 0; margin: 0; }
body .post-menu>summary.post-menu-trigger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--text-secondary); box-shadow: none; font: 700 25px/1 var(--font-sans, sans-serif); list-style: none; cursor: pointer; }
body .post-menu>summary.post-menu-trigger::-webkit-details-marker { display: none; }
body .post-menu>summary.post-menu-trigger::after { content: none; }
body .post-menu-trigger:hover, body .post-menu[open]>.post-menu-trigger { background: var(--button-hover); color: var(--text-primary); }
body .post-menu-panel { position: absolute; right: 0; top: calc(100% + 5px); z-index: 210; width: min(240px, calc(100vw - 32px)); padding: 5px; border: 1px solid var(--border-color); border-radius: 13px; background: var(--card-bg); color: var(--text-primary); box-shadow: var(--shadow-md); overflow-y: auto; overscroll-behavior: contain; }
body .post-menu-panel[data-floating-menu] { position: fixed; right: auto; z-index: 250; }
body .post:has(.post-menu[open]) { position: relative; z-index: 20; overflow: visible; }
body .post-menu-panel form { margin: 0; }
body .post-menu-action, body .feature-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--button-bg); color: var(--text-primary); box-shadow: none; font: 500 13px/1.4 var(--font-sans, sans-serif); text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
body .post-menu-action { justify-content: flex-start; width: 100%; border: 0; text-align: left; }
body .post-menu-action:hover, body .feature-button:hover { background: var(--button-hover); }
body .post-menu-action:disabled, body .feature-button:disabled { opacity: .6; cursor: wait; }
body :is(.notification-bell, .post-menu-trigger, .post-menu-action, .feature-button, .mention-option):focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; }
body .forum-mention { color: var(--link-color, var(--accent-color)); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
body .forum-mention:hover { text-decoration: underline; }
body .mention-help { margin: 0 0 12px; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
body .post-form textarea[data-mention-input] { font-size: 16px; }
body .mention-menu { position: fixed; z-index: 260; display: grid; gap: 2px; padding: 5px; max-width: calc(100vw - 16px); border: 1px solid var(--border-color); border-radius: 13px; background: var(--card-bg); color: var(--text-primary); box-shadow: var(--shadow-md); overflow-y: auto; overscroll-behavior: contain; }
body .mention-option { display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text-primary); text-align: left; font: 500 14px/1.4 var(--font-sans, sans-serif); cursor: pointer; overflow-wrap: anywhere; }
body .mention-option:hover, body .mention-option.is-active { background: var(--accent-soft, var(--button-hover)); color: var(--accent-color); }
body .feature-heading h1 { margin: 0 0 8px; font-size: clamp(24px, 4vw, 30px); }
body .feature-heading p { margin-bottom: 12px; color: var(--text-secondary); line-height: 1.6; }
body .feature-layout .main-content { min-width: 0; }
body .feature-actions, body .saved-post-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
body .saved-post-head { font-size: 14px; }
body .saved-post-head>a { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
body .saved-post time, body .notification-item time { color: var(--text-secondary); font-size: 12px; }
body .saved-preview { margin: 16px 0; color: var(--text-primary); font-size: 15px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
body .feature-actions>a { display: inline-flex; align-items: center; min-height: 44px; }
body .notification-item { display: flex; flex-direction: column; gap: 12px; border-inline-start: 3px solid transparent; }
body .notification-item.is-unread { border-inline-start-color: var(--accent-color); background: var(--accent-soft, var(--card-bg)); }
body .notification-target { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; color: var(--text-primary); font-size: 15px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
body .notification-target:hover { text-decoration: underline; }
body .notification-unread-label { align-self: flex-start; color: var(--accent-color); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
body .notification-item:not(.is-unread) .notification-target { color: var(--text-secondary); }
body .feature-empty { padding-block: 36px; text-align: center; }
body .feature-empty>.forum-icon { width: 32px; height: 32px; margin-bottom: 12px; color: var(--text-secondary); }
body .feature-empty h2 { margin-bottom: 10px; font-size: 19px; }
body .feature-empty p { margin-bottom: 14px; color: var(--text-secondary); line-height: 1.6; }
body .feature-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 20px 0; font-size: 12px; }
body .feature-status { position: fixed; z-index: 1100; right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: min(420px, calc(100vw - 24px)); margin-inline: auto; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 13px; background: var(--card-bg); color: var(--text-primary); box-shadow: var(--shadow-md); font: 500 14px/1.5 var(--font-sans, sans-serif); overflow-wrap: anywhere; }
body .feature-status.is-error { border-color: var(--danger); }
body .comment[id], body .post[id] { scroll-margin-top: 100px; }
body .comment:target { outline: 2px solid var(--accent-color); outline-offset: 4px; border-radius: 8px; }
@media (min-width: 768px) {
    body .notification-item { flex-direction: row; align-items: center; }
}
@media (max-width: 375px) {
    body .navbar { padding-inline: 12px; }
    body .navbar-brand { font-size: 18px; }
    body .navbar-user { flex-wrap: nowrap; gap: 6px; }
    body .site-nav-toggle { min-height: 44px; padding: 8px 10px; }
    body .saved-post .feature-actions { align-items: stretch; flex-direction: column; }
    body .saved-post .feature-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    body .post-menu-panel, body .mention-menu, body .notification-item { animation: none; transition: none; }
}
