/* The pre-API appearance lives in general.css, deliberately left unchanged.
 * Only functional additions and narrow-screen adaptations belong here. */
[hidden] { display: none !important; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #064cca; outline-offset: 2px; }
.sub form { display: inline; }
.sub input { width: 170px; }
.banner { text-align: center; }
/* The original referenced a missing banner.png. Keep its 600×200 slot without a broken image request. */
.banner-placeholder {
    display: inline-block; box-sizing: border-box; text-align: left; vertical-align: top; color: inherit; text-decoration: none; 
    background-image: url("/static/banner.png");
}
.site-nav { padding: 5px 0; font-size: 12px; }
.dashboard-nav { margin-bottom: 5px; font-size: 12px; }
.sidebar { padding: 5px; }
.main-content { padding: 5px; vertical-align: top; min-width: 0; }
.news-table td { border: 1px solid #333; background-color: #e6e2e2; padding: 1px; }
.news-date { width: 200px; font-weight: bold; }
#feed-description:empty { display: none; }
.post-table { table-layout: fixed; }
.post-header > * { margin-right: 5px; }
.post-header b a { color: inherit; text-decoration: none; }
.post-number { font-style: italic; color: inherit; text-decoration: none; }
.post-header time { font-size: 11px; }
.avatar { width: 100px; height: 100px; }
.author-name { overflow-wrap: anywhere; }
.post-body { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-status { font-size: 11px; font-style: italic; }
.post-table[data-status=pending] { border-style: dashed; }
.post-table[data-status=pending] .post-status { font-weight: bold; color: #7a4b00; }
/* Deliberately sober, separate operational panels, not floating decorative links. */
.mod-tools { float: none; clear: both; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; margin: 10px 0 6px; padding: 9px 10px; border: 1px solid #8e969d; border-left: 3px solid #4b5965; background: #eef0f2; color: #26333d; text-align: left; }
.mod-tools legend { padding: 0 5px; font-size: 11px; font-weight: bold; font-style: normal; letter-spacing: .04em; }
.mod-tools button { max-width: 100%; overflow-wrap: anywhere; margin: 0; min-height: 30px; padding: 5px 9px; border: 1px solid #7b858e; border-radius: 2px; background: #fff; color: #26333d; font-size: 11px; font-weight: bold; box-shadow: none; }
.mod-tools button:hover:not(:disabled) { background: #dce2e6; border-color: #3d4c58; }
.mod-tools .mod-primary { background: #344956; border-color: #344956; color: #fff; }
.mod-tools .mod-primary:hover:not(:disabled) { background: #243440; color: #fff; }
.mod-tools .mod-danger { color: #8b2828; border-color: #b78080; }
.mod-tools .mod-danger:hover:not(:disabled) { background: #f7e4e4; border-color: #8b2828; }
.mod-tools button:disabled { opacity: .45; }
.attachments .mod-tools { max-width: 520px; }
.thread-live { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; padding: 5px 0; font-size: 11px; color: #44545f; }
.thread-tail { margin-top: 16px; border-top: 2px solid #8e969d; }
.thread-tail h3 { font-size: 12px; }
.banner-placeholder.has-banner { background-image: none; }
.site-banner { display: block; width: 100%; object-fit: contain; }
.post-links { margin: 5px 0; border-top: 1px solid #000; padding-top: 3px; }
.attachments { margin-top: 5px; }
.file-box { box-sizing: border-box; width: 110px; min-height: 100px; height: auto; margin: 2px; overflow-wrap: anywhere; }
.file-box.spoiler, .image-box.spoiler { background: #d0c7d8; }
.image-box { box-sizing: border-box; min-width: 0; max-width: 100%; margin: 2px; overflow-wrap: anywhere; }
.attachment-preview { display: block; max-width: 256px; max-height: 256px; width: auto; height: auto; image-rendering: auto; }
.image-box > a:first-child { display: block; max-width: 100%; }
.image-box .attachment-preview { max-width: min(256px, 100%); }
.spoiler-marker { width: 48px; height: 16px; }
#notice { margin: 5px; padding: 5px; border: 1px solid #888; white-space: pre-wrap; }
#notice.error { border-color: #b34545; color: #9b1717; }
#composer-title, #section-admin h2 { font-size: 16px; font-weight: normal; margin: 5px 0; }
.composer-table { table-layout: fixed; }
.composer-table td { padding: 5px; vertical-align: top; }
.composer-options { width: 200px; }
#topic-fields > label { display: block; margin-bottom: 5px; }
#topic-fields input, #post-form textarea { box-sizing: border-box; }
#topic-fields input { margin-right: 0; }
#publish-flags { padding: 0; margin: 0; border: 0; }
#publish-flags legend { display: none; }
#publish-flags label { display: block; }
#post-submit { width: 100%; height: 100px; }
#file-input { display: block; max-width: 100%; box-sizing: border-box; }
.dnd.drag-over { outline: 2px solid #0754bf; }
#file-list:empty { display: none; }
#file-list li { overflow-wrap: anywhere; }
#file-list label, #file-list button { margin-left: 5px; }
.pow-box { margin: 5px 0; padding: 5px; border: 1px solid #888; font-size: 12px; }
.pow-box p { margin: 5px 0; }
#pow-status { display: inline-block; margin: 5px; }
#cooldown { font-weight: bold; }
#post-result:empty { display: none; }
.pagination { margin: 5px 0; }
.pagination > * { margin-right: 10px; }
.pagination:empty { display: none; }
#section-admin { border-top: 1px solid #888; margin-top: 10px; }
.section-editor { margin-bottom: 15px; }
.section-editor label { display: block; margin: 0 0 5px; }
.section-editor input:not([type=checkbox]), .section-editor textarea, .section-editor select { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; margin: 0 0 10px; font: inherit; font-size: 13px; }
.section-editor input:not([type=checkbox]), .section-editor select { height: auto; min-height: 28px; padding: 3px; }
.section-editor textarea { padding: 5px; resize: vertical; }
.section-editor small { display: block; margin: -5px 0 10px; font-size: 11px; color: #444; }
.field-optional { font-size: 11px; color: #444; }
.section-help { font-size: 12px; line-height: 1.5; margin: 0 0 10px; }
.section-submit { width: 100%; min-height: 60px; }
.section-archive { font-size: 13px; }
.section-archive input { margin: 0 3px 0 0; }
.footer-table { margin: 0 auto; border-spacing: 0; }
.footer-table td { padding: 5px; vertical-align: middle; }
.footer-table hr { width: 100px; }
.empty { margin: 5px 0; }
@media (max-width: 700px) {
  .sub { height: auto; min-height: 30px; }
  .sub input { max-width: 30vw; }
  .main-layout, .main-layout > tbody, .main-layout > tbody > tr, .main-layout > tbody > tr > td { display: block; width: auto; }
  table.main-layout { width: 100%; height: auto; }
  .sidebar-scroll { height: auto; max-height: 200px; }
  .site-nav { font-size: 14px; }
  .scroll { height: auto; max-height: none; padding-right: 0; }
  .banner-placeholder {
    height: 200px; 
  }
  td.post-author { width: 100px; }
  .avatar { width: 80px; height: 80px; }
  .mod-tools { float: none; }
  .composer-table, .composer-table > tbody, .composer-table > tbody > tr, .composer-table > tbody > tr > td { display: block; width: auto; }
  .composer-table { width: 100%; }
  .post-tb { height: 35vh; }
  #post-submit { height: 60px; }
  .footer-table hr { width: 50px; }
  .news-date { width: 110px; }
}

/* Profiles use the forum's existing post and updates styles. */
.profile-card h1 { font-size: 18px; margin: 0 0 5px; overflow-wrap: anywhere; }
.profile-card p { margin: 5px 0; }
#profile-edit-title, .profile-posts-title { font-size: 16px; font-weight: normal; margin: 10px 0 5px; }
.profile-posts-table { table-layout: fixed; }
.profile-posts-table caption { text-align: left; font-size: 12px; padding: 0 0 5px; }
.profile-posts-table th:first-child { width: 200px; }
.profile-posts-table td { vertical-align: top; overflow-wrap: anywhere; padding: 5px; }
.profile-posts-table time { font-size: 12px; font-weight: normal; }
.profile-posts-table time span { display: block; white-space: nowrap; }
.profile-excerpt { font-size: 12px; color: #444; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#profile-result { font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .profile-card .post-author { width: 90px; }
  .profile-posts-table th:first-child { width: 100px; }
}

.avatar { object-fit: contain; }

.user-flag { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 12px; overflow-wrap: anywhere; vertical-align: middle; }
.user-flag img { width: 24px; height: 16px; object-fit: contain; flex-shrink: 0; }
.post-author .user-flag { margin-top: 4px; }
.profile-flag-picker { display: flex; flex-wrap: wrap; gap: 5px 10px; align-items: baseline; margin-bottom: 10px; }
.section-editor .profile-flag-picker select { width: min(100%, 300px); margin-bottom: 0; }
#profile-flag-help { margin-top: 0; }

/* Navigation shares the sign-in strip; it may wrap instead of overflowing. */
.sub { height: auto; min-height: 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 4px 8px; color: #111; }
.sub .site-nav { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0; }
.sub #auth-form { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; font-size: 12px; }
.sub #auth-form input { width: 140px; max-width: 100%; margin: 0; box-sizing: border-box; }
#account { font-size: 12px; }
.section-item { margin-bottom: 10px; }
.section-description { font-size: 11px; margin: 5px 0; }
.section-recent { list-style: none; padding: 0; margin: 5px 0; }
.section-recent li { padding: 4px 0; border-top: 1px solid #777; font-size: 12px; }
.section-recent a { display: block; }
.section-excerpt { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-box { box-sizing: border-box; display: inline-block; vertical-align: top; width: 480px; max-width: 100%; padding: 5px; margin: 2px; border: 1px solid #888; background: #d5d8d8; overflow-wrap: anywhere; }
.attachment-video { display: block; width: 100%; max-height: 60vh; background: #111; margin: 5px 0; }
.video-help { font-size: 12px; }
.viewer-open { overflow: hidden; }
.image-viewer { padding: 10px; border: 1px solid #555; background: #e6e2e2; width: fit-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); box-sizing: border-box; }
.image-viewer::backdrop { background: rgb(0 0 0 / 75%); }
.image-viewer-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 15px; margin-bottom: 10px; font-size: 13px; }
.image-viewer-header strong { overflow-wrap: anywhere; min-width: 0; flex: 1; }
.image-viewer-stage { display: grid; place-items: center; background: #222; }
.image-viewer-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; image-rendering: auto; }
@media (max-width: 700px) {
  .sub { justify-content: center; }
  .sub .site-nav { justify-content: center; font-size: 12px; }
  .sub #auth-form { width: 100%; }
  .sub #auth-form input { min-width: 0; width: 120px; }
}

/* Native modal keeps keyboard focus inside the explicit, bilingual first-visit choice. */
#language-dialog {
  max-width: min(32rem, calc(100vw - 3rem));
  color: inherit;
  background: #fff;
  border: 1px solid #777;
  padding: 1.25rem;
}
#language-dialog::backdrop { background: rgb(0 0 0 / 55%); }
#language-dialog h2 { font-size: 1.1rem; margin: 0 0 1rem; }
#language-dialog button { margin: .25rem; padding: .5rem; }
#language-switch { margin: .25rem; }

/* Review/deletion states remain staff/author-only according to server visibility. */
.post-table[data-status=pending], .post-table[data-status=deleted] {
  opacity: .65;
  background-color: #fff3a8;
}
.post-table[data-status=pending] td, .post-table[data-status=deleted] td { background-color: #fff3a8; }
.profile-posts-table tr[data-status=pending], .profile-posts-table tr[data-status=deleted] { background: #fff3a8; opacity: .65; }
.privacy-notice { margin: 5px; font-size: 11px; color: #444; }
.privacy-notice p { max-width: 70rem; }
.post-identity { display: block; font-size: 10px; overflow-wrap: anywhere; margin-top: 5px; }
.post-identity:empty, .file-tools:empty { display: none; }
.post-identity button, .file-tools button { font-size: 10px; max-width: 100%; }
.file-tools { border-bottom: 1px dashed #888; padding-bottom: 4px; }
.post-table[data-restricted="1"] { opacity: .65; }
.post-table[data-restricted="1"] td { background-color: #fff3a8; }
#profile-locks { color: #7a4b00; font-size: 12px; }

.profile-posts-table tr[data-restricted="1"] { background: #fff3a8; opacity: .65; }

.audio-box { box-sizing: border-box; display: inline-block; vertical-align: top; width: 340px; max-width: 100%; padding: 5px; margin: 2px; border: 1px solid #888; background: #d5d8d8; overflow-wrap: anywhere; }
.attachment-audio { display: block; width: 100%; margin: 5px 0; }
.audio-help { font-size: 12px; }
.post-body .quote-green { color: #397b28; }
.post-body .quote-orange { color: #b65300; }
.post-body .quote-blue { color: #1682b1; }

.quote-help { display: block; overflow-wrap: anywhere; }

.post-reactions { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.reaction-button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; }
.reaction-button img { width: 24px; height: 24px; object-fit: contain; }
.reaction-button[aria-pressed="true"] { outline: 2px solid #397bb5; background: #d5e9fa; }
.read-only-notice { padding: 10px; border: 1px solid #a77600; background: #fff3c4; }

.reaction-add { min-width: 32px; min-height: 32px; font-size: 20px; line-height: 1; }
.reaction-picker { box-sizing: border-box; width: 400px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 12px; overflow: auto; }
.reaction-picker::backdrop { background: rgb(0 0 0 / 40%); }
.reaction-picker-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.reaction-picker-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
.reaction-option { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; min-width: 0; overflow-wrap: anywhere; }
.reaction-option img { width: 32px; height: 32px; object-fit: contain; }
.reaction-option[aria-pressed="true"] { outline: 2px solid #397bb5; background: #d5e9fa; }

.markdown-help { display: block; overflow-wrap: anywhere; }
.post-body.markdown-body { white-space: normal; }
.markdown-body p { white-space: pre-wrap; margin: .5em 0; }
.markdown-body > :first-child { margin-top: 0; }
.markdown-body > :last-child { margin-bottom: 0; }
.markdown-body .quote-green, .markdown-body .quote-orange, .markdown-body .quote-blue { white-space: pre-wrap; }
.markdown-body pre { white-space: pre; overflow-x: auto; max-width: 100%; padding: 8px; background: #e4e7e7; }
.markdown-body code { font-family: monospace; background: #e4e7e7; }
.markdown-body li { margin: .2em 0; }
.markdown-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.markdown-body th, .markdown-body td { border: 1px solid #999; padding: 4px; }
#falseflag-controls label { display: block; margin: 4px 0; }
#falseflag-controls input:not([type="checkbox"]) { display: block; box-sizing: border-box; width: 100%; min-width: 0; }

/* Applied in the head before first paint; old/in-flight private data stays hidden until public reads finish. */
.presentation-safe:not(.presentation-ready) .main-layout,
.presentation-safe:not(.presentation-ready) #news,
.presentation-safe:not(.presentation-ready) #sections,
.presentation-safe dialog:not(#language-dialog),
.presentation-safe dialog:not(#language-dialog)::backdrop,
.presentation-safe .mod-tools,
.presentation-safe .post-identity,
.presentation-safe .post-status,
.presentation-safe #queue-link,
.presentation-safe #queue-tab,
.presentation-safe .dashboard-nav,
.presentation-safe #thread-settings,
.presentation-safe #publish-flags,
.presentation-safe #falseflag-controls,
.presentation-safe #section-admin,
.presentation-safe #profile-actions,
.presentation-safe #profile-editor,
.presentation-safe #composer,
.presentation-safe #account-name,
.presentation-safe #auth-form,
.presentation-safe #logout,
.presentation-safe #my-link,
.presentation-safe #profile-link,
.presentation-safe #notice,
.presentation-safe .read-only-notice,
.presentation-safe .author-rank,
.presentation-safe #profile-meta,
.presentation-safe .post-table[data-status]:not([data-status="approved"]),
.presentation-safe tr[data-status]:not([data-status="approved"]),
.presentation-safe [data-restricted="1"],
.presentation-safe body[data-page="dashboard"] .main-layout,
.presentation-safe body[data-page="dashboard"] #page-title,
.presentation-safe body[data-page="profile"]:has(#profile-editor:not([hidden])) .main-layout {
  display: none !important;
}
.presentation-safe .author-name .role-admin,
.presentation-safe .author-name .role-mod { color: inherit !important; font-weight: inherit !important; }
.presentation-safe .author-name s { text-decoration: none; }
#presentation-toggle { margin: 0 5px; }
#presentation-toggle[aria-pressed="true"] { outline: 2px solid #397bb5; }

.post-emoji { display: inline-block; width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }
.composer-emojis { margin: 5px 0; }
.composer-emoji-options { display: flex; flex-wrap: wrap; gap: 5px; max-height: 180px; overflow-y: auto; padding: 5px 0; }
.composer-emoji { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.composer-emoji img { width: 24px; height: 24px; object-fit: contain; }

.flash-box { max-width: 100%; }
.flash-player { max-width: 100%; }
.attachment-flash { display: block; width: 640px; max-width: 100%; height: 480px; border: 1px solid #999; background: #222; }
@media (max-width: 600px) { .attachment-flash { height: 320px; } }

.site-update-panel { max-width: 760px; overflow-wrap: anywhere; }
#site-update-form label, #site-update-form input { display: block; margin: 5px 0; }
#site-update-form input { box-sizing: border-box; max-width: 100%; }
#site-update-feedback, #site-update-warning { color: #8b270b; }

/* The dashboard navigation is an operational console, not a row of tiny inline links. */
.dashboard-personal { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.dashboard-personal a { display: block; padding: 7px 12px; border: 1px solid #929da7; background: #f4f6f8; color: #26333d; text-decoration: none; }
.moderation-console { margin: 10px 0 18px; padding: 14px; border: 1px solid #86939f; border-top: 4px solid #344956; background: #edf0f3; color: #243440; text-align: left; }
.moderation-console h2 { margin: 0 0 12px; font-size: 16px; }
.moderation-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 14px; }
.moderation-group { min-width: 0; }
.moderation-group h3 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #4a5c69; }
.moderation-links { display: grid; gap: 5px; }
.moderation-links a { display: block; padding: 9px 11px; border: 1px solid #a5b0b9; border-radius: 2px; background: #fff; color: #243d50; font: bold 12px Tahoma, sans-serif; text-decoration: none; overflow-wrap: anywhere; }
.moderation-links a:hover { border-color: #344956; background: #e1e8ed; }
.moderation-links a[aria-current=page] { background: #344956; color: #fff; border-color: #344956; }
.moderation-privacy { margin-top: 14px; padding-top: 12px; border-top: 1px solid #b3bec7; font-size: 12px; }
.moderation-privacy label { display: flex; align-items: flex-start; gap: 7px; }
.moderation-privacy input { margin: 1px 0 0; flex-shrink: 0; }
.move-dialog { box-sizing: border-box; width: 520px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px; border: 1px solid #7b8995; border-top: 4px solid #344956; border-radius: 3px; background: #f5f7f9; color: #243440; text-align: left; }
.move-dialog::backdrop { background: rgb(15 25 35 / 60%); }
.move-dialog h2 { font-size: 18px; margin: 0 0 8px; }
.move-source { color: #536674; font-size: 12px; }
.move-dialog label { display: block; font-weight: bold; margin: 12px 0 5px; }
.move-dialog select, .move-dialog textarea, .move-dialog input { box-sizing: border-box; width: 100%; min-width: 0; padding: 8px; font: inherit; border: 1px solid #9aa9b5; background: #fff; }
.move-dialog textarea { resize: vertical; }
.move-search, .move-actions, .move-pager { display: flex; gap: 8px; }
.move-actions { justify-content: flex-end; }
.move-dialog button { min-height: 34px; padding: 6px 12px; }
.move-submit { background: #344956; border: 1px solid #344956; color: white; font-weight: bold; }
.move-pager { margin-top: 6px; }
.move-feedback { font-size: 12px; overflow-wrap: anywhere; }
.post-reference { color: #245a94; font-weight: bold; text-decoration: underline; }
.post-table:target { outline: 2px solid #577a99; outline-offset: 2px; }

.reference-help { display: block; margin-top: 4px; font-size: 11px; color: #44545f; }

.post-translation-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; padding-top: 8px; border-top: 1px solid #aaa; font-size: 12px; }
.post-translation-controls button { margin: 0; }
.post-translation-controls small { flex-basis: 100%; color: #555; }
.post-translation { overflow-wrap: anywhere; }
.post-translation[hidden], .post-body[hidden] { display: none; }
.post-translation > small { color: #555; }
.post-translation-text { white-space: pre-wrap; margin: 6px 0; }

/* Community: directory, private inbox and structured reporting workspace. */
.community-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid #a5b2bc; }
.community-tabs a { padding: 10px 14px; text-decoration: none; color: #304956; font-weight: bold; font-size: 13px; }
.community-tabs a[aria-current=page] { background: #344f63; color: white; border-radius: 3px 3px 0 0; }
.community-intro { font-size: 12px; color: #4d5d66; line-height: 1.6; max-width: 80ch; }
.community-actions, .community-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.community-actions button, .community-primary-link, .community-form button { border: 1px solid #8a9ca9; border-radius: 3px; padding: 7px 11px; font-size: 12px; margin: 0; background: #f4f7f9; color: #263f50; }
.community-primary-link { text-decoration: none; }
.community-actions button:disabled, .community-form button:disabled { opacity: .55; cursor: not-allowed; }
.community-form { display: grid; gap: 12px; }
.community-form label, .community-filters label { display: grid; gap: 5px; font-size: 12px; font-weight: bold; }
.community-form input:not([type=checkbox]), .community-form textarea, .community-form select, .community-filters select { box-sizing: border-box; width: 100%; min-width: 0; margin: 0; padding: 8px; border: 1px solid #8e9daa; border-radius: 3px; font: inherit; font-weight: normal; background: white; }
.community-form label:has(input[type=checkbox]) { display: flex; align-items: start; line-height: 1.5; font-weight: normal; }
.community-form textarea { resize: vertical; }
.community-error { color: #a32222; white-space: pre-wrap; }
.community-empty { padding: 24px 15px; text-align: center; color: #586875; font-size: 13px; }
.community-badge { display: inline-block; padding: 3px 7px; border-radius: 12px; background: #dce7ed; color: #284453; font-size: 11px; line-height: 1.3; }
.people-search { grid-template-columns: minmax(140px, 2fr) minmax(150px, 1fr) auto; align-items: end; padding: 15px; background: #e4e9ec; border: 1px solid #b7c2cb; border-radius: 4px; margin-bottom: 18px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 12px; }
.person-card { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; padding: 16px; background: #f3f6f8; border: 1px solid #b3c0ca; border-radius: 4px; overflow-wrap: anywhere; }
.person-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.person-card > div > a { font-weight: bold; }
.person-card p { font-size: 11px; color: #5a6873; }
.person-card > .community-actions { grid-column: 1/-1; margin: 0; }
.inbox-layout { display: grid; grid-template-columns: minmax(190px,28%) minmax(0,1fr); min-height: 480px; border: 1px solid #a9bac6; border-radius: 4px; background: #f5f7f8; margin: 15px 0; }
.inbox-list { border-right: 1px solid #a9bac6; min-width: 0; background: #e7edf1; }
.conversation-item { display: grid; gap: 5px; padding: 15px; border-bottom: 1px solid #becbd3; text-decoration: none; color: #273b48; font-size: 12px; }
.conversation-item > span:not(.community-badge) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item[aria-current=page] { background: #d2e1eb; border-left: 4px solid #3e6680; padding-left: 11px; }
.conversation-item small { color: #566775; }
.conversation-item .community-badge { justify-self: start; }
.conversation-pane { min-width: 0; padding: 16px; }
.conversation-pane h2 { font-size: 17px; margin: 0 0 12px; }
.message-history { display: flex; flex-direction: column; gap: 12px; max-height: 65vh; min-height: 180px; overflow-y: auto; padding: 12px 4px; overscroll-behavior: contain; }
.direct-message { align-self: flex-start; max-width: 86%; padding: 12px 14px; border: 1px solid #bbc7d0; border-radius: 7px; background: white; font-size: 13px; box-sizing: border-box; }
.direct-message.own { align-self: flex-end; background: #e0edf5; border-color: #a8bfce; }
.direct-message strong { font-size: 11px; color: #3d586c; }
.direct-message time, .message-receipt { display: inline-block; margin: 8px 6px 0 0; font-size: 10px; color: #526575; }
.direct-message-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 7px 0; }
.report-button { font-size: 10px; padding: 3px 6px; margin: 6px 0; background: transparent; color: #586c7a; border: 1px solid #a9b9c3; border-radius: 3px; }
.message-composer { border-top: 1px solid #bdc9d1; margin-top: 12px; padding-top: 14px; }
.message-composer p:empty { display: none; }
.message-composer button { justify-self: end; background: #34596f; color: white; }
.community-dialog { width: 520px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); box-sizing: border-box; border: 1px solid #738b9c; border-top: 4px solid #34596f; border-radius: 4px; padding: 22px; background: #f2f5f7; color: #273b48; }
.community-dialog::backdrop { background: rgb(15 27 36 / 60%); }
.community-dialog h2 { font-size: 18px; margin: 0 0 18px; }
.community-dialog .community-actions { justify-content: flex-end; }
.reports-list { display: grid; gap: 8px; margin-top: 20px; }
.report-list-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border: 1px solid #b1c0ca; border-radius: 3px; background: #f1f5f7; text-decoration: none; color: #2c4555; font-size: 12px; }
.report-list-item small { margin-left: auto; }
.report-detail { margin: 16px 0; border: 1px solid #aabdc9; padding: 20px; border-radius: 4px; background: #f4f7f9; overflow-wrap: anywhere; }
.report-detail h2 { font-size: 19px; margin-top: 0; }
.report-detail h3 { font-size: 14px; }
.report-evidence { border-left: 3px solid #6a879a; background: white; padding: 12px 16px; margin: 18px 0; }
.report-timeline { padding-left: 24px; font-size: 12px; }
.report-timeline li { padding: 8px 0; }
.report-timeline time { margin-left: 10px; font-size: 11px; color: #637480; }
.staff-note { border-left: 2px solid #be9e65; padding-left: 10px; color: #6a532b; }
.community-live { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 12px; font-size: 11px; color: #58717e; }
.presentation-safe #inbox-link, .presentation-safe #reports-link, .presentation-safe .report-button, .presentation-safe .inbox-layout, .presentation-safe .report-detail, .presentation-safe .reports-list { display: none; }
@media (max-width: 700px) {
  .people-search { grid-template-columns: 1fr; }
  .inbox-layout { grid-template-columns: 1fr; }
  .inbox-list { border-right: 0; border-bottom: 1px solid #a9bac6; max-height: 230px; overflow-y: auto; }
  .conversation-pane { padding: 12px; }
  .direct-message { max-width: 95%; }
  .community-tabs a { padding: 8px 9px; font-size: 12px; }
  .report-detail { padding: 12px; }
}
