:root {
  --hub-brand: #0f172a;
  --hub-brand-2: #1f2937;
  --hub-accent: #f59e0b;
  --hub-bg: #f1f4f8;
  --hub-surface: #ffffff;
  --hub-soft: #f8fafc;
  --hub-line: #dbe3ed;
  --hub-ink: #142033;
  --hub-muted: #627086;
  --hub-green: #08745b;
  --hub-red: #b42318;
  --hub-blue: #175cd3;
  --hub-shadow: 0 12px 34px rgba(15, 23, 42, .09);
  --hub-radius: 18px;
  --hub-topbar: 70px;
  --hub-sidebar: 286px;
  --hub-text-scale: 1;
  color-scheme: light;
}

* { box-sizing: border-box; }
.hub-icon-sprite {
  position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none;
}
.hub-icon {
  display: block; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
html { min-height: 100%; font-size: calc(17px * var(--hub-text-scale)); scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--hub-bg);
  color: var(--hub-ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
a { color: var(--hub-blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hub-accent) 74%, #fff);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; z-index: 99999; top: 10px; left: 10px; padding: 12px 16px;
  border-radius: 10px; background: #fff; color: #111; font-weight: 800;
  transform: translateY(-150%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.hub-topbar {
  position: fixed; z-index: 100; top: 0; right: 0; left: var(--hub-sidebar); height: var(--hub-topbar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px;
  border-bottom: 1px solid rgba(219, 227, 237, .9); background: rgba(255,255,255,.95);
  box-shadow: 0 2px 12px rgba(15,23,42,.04); backdrop-filter: blur(14px);
}
.hub-menu-button { display: none; }
.hub-topbar-brand { display: none; text-decoration: none; }
.hub-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hub-icon-link, .hub-avatar-link {
  position: relative; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--hub-line);
  border-radius: 13px; background: #fff; color: var(--hub-brand); text-decoration: none; font-weight: 900;
}
.hub-icon-link:hover, .hub-avatar-link:hover { border-color: var(--hub-accent); background: #fffbeb; color: var(--hub-brand); }
.hub-icon-link .hub-icon { width: 22px; height: 22px; }
.hub-avatar-link { border: 0; background: linear-gradient(135deg, var(--hub-brand), var(--hub-brand-2)); color: #fff; overflow: hidden; }
.hub-count, .hub-mobile-nav b {
  position: absolute; display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 4px;
  border: 2px solid #fff; border-radius: 99px; background: var(--hub-red); color: #fff; font-size: .66rem; line-height: 1;
}
.hub-count { top: -5px; right: -5px; }

.hub-sidebar {
  position: fixed; z-index: 120; inset: 0 auto 0 0; width: var(--hub-sidebar); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--hub-brand), var(--hub-brand-2)); color: #fff; box-shadow: 8px 0 32px rgba(15,23,42,.18);
}
.hub-sidebar-heading { min-height: 100px; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.11); }
.hub-sidebar-brand, .public-brand, .hub-topbar-brand {
  display: flex; min-width: 0; align-items: center; gap: 12px; color: inherit; text-decoration: none;
}
.hub-sidebar-brand img, .public-brand img, .hub-topbar-brand img {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 13px; object-fit: contain; background: #fff; padding: 4px;
}
.hub-logo-fallback {
  display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; border-radius: 13px;
  background: var(--hub-accent); color: #111827; font-weight: 900; letter-spacing: -.03em;
}
.hub-sidebar-brand > span:last-child, .public-brand > span:last-child, .hub-topbar-brand > span:last-child { min-width: 0; display: grid; }
.hub-sidebar-brand strong, .public-brand strong, .hub-topbar-brand strong { overflow: hidden; text-overflow: ellipsis; font-size: 1.04rem; white-space: nowrap; }
.hub-sidebar-brand small, .public-brand small, .hub-topbar-brand small { opacity: .72; font-size: .75rem; }
.hub-sidebar-close { display: none; }
.hub-nav { overflow-y: auto; flex: 1; padding: 16px 12px; scrollbar-width: thin; }
.hub-nav-label {
  display: block; margin: 12px 11px 7px; color: rgba(255,255,255,.55); font-size: .67rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
}
.hub-nav > a, .hub-sidebar-footer > a {
  position: relative; display: flex; min-height: 58px; align-items: center; gap: 12px; margin: 4px 0; padding: 9px 12px;
  border: 1px solid transparent; border-radius: 13px; color: rgba(255,255,255,.85); text-decoration: none;
}
.hub-nav > a:hover, .hub-sidebar-footer > a:hover { background: rgba(255,255,255,.08); color: #fff; }
.hub-nav > a.is-active { border-color: rgba(255,255,255,.18); background: var(--hub-accent); color: #111827; box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.hub-nav > a > span:nth-child(2), .hub-sidebar-footer > a > span:nth-child(2) { min-width: 0; display: grid; }
.hub-nav > a strong, .hub-sidebar-footer > a strong { font-size: .87rem; }
.hub-nav > a small, .hub-sidebar-footer > a small { overflow: hidden; opacity: .7; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.hub-nav-symbol {
  display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 10px;
  background: rgba(255,255,255,.1); color: inherit; font-size: .78rem; font-weight: 900;
}
.hub-nav-symbol .hub-icon { width: 20px; height: 20px; }
.hub-nav > a.is-active .hub-nav-symbol { background: rgba(255,255,255,.58); }
.hub-nav > a > b { margin-left: auto; padding: 2px 7px; border-radius: 99px; background: #fff; color: var(--hub-red); font-size: .7rem; }
.hub-sidebar-footer { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.11); }
.hub-sidebar-footer > a { margin: 0 0 8px; padding: 7px; min-height: 48px; }
.hub-sidebar-user { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px 6px; }
.hub-sidebar-user > span:last-child { min-width: 0; display: grid; }
.hub-sidebar-user strong, .hub-sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-sidebar-user strong { font-size: .8rem; }
.hub-sidebar-user small { color: rgba(255,255,255,.58); font-size: .68rem; }
.hub-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--hub-accent); color: #111827; font-weight: 900; }
.hub-avatar-topbar { display: grid; width: 100%; height: 100%; place-items: center; border-radius: inherit; font-weight: 900; }
.hub-signout { width: 100%; min-height: 42px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.07); color: #fff; font-weight: 800; }
.hub-signout:hover { background: rgba(255,255,255,.13); }
.hub-sidebar-backdrop { display: none; }

.hub-main { min-height: 100vh; margin-left: var(--hub-sidebar); padding: calc(var(--hub-topbar) + 34px) clamp(22px, 4vw, 54px) 56px; }
.hub-mobile-nav { display: none; }
.hub-page-stage { min-width: 0; }
.page-wrap { width: min(1180px, 100%); margin: 0 auto; }
.page-wrap.narrow { width: min(790px, 100%); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 25px; }
.page-heading h1 { margin: 0; color: var(--hub-ink); font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 820; letter-spacing: -.045em; }
.page-heading p { max-width: 720px; margin: 6px 0 0; color: var(--hub-muted); }
.page-heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }

.hub-card {
  border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: var(--hub-surface); box-shadow: var(--hub-shadow);
}
.hub-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid var(--hub-line); }
.hub-card-header h2, .hub-card-header h3 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.hub-card-body { padding: 22px; }
.hub-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 18px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: 1 / -1; }
.stack { display: grid; gap: 18px; }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 22px; align-items: start; }

.hub-button, a.hub-button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px;
  border: 1px solid transparent; border-radius: 12px; background: var(--hub-accent); color: #111827; text-decoration: none;
  font-weight: 800; line-height: 1.2; cursor: pointer;
}
.hub-button:hover { filter: brightness(.96); color: #111827; transform: translateY(-1px); }
.hub-button .hub-icon { width: 18px; height: 18px; }
.hub-button.secondary { border-color: var(--hub-line); background: #fff; color: var(--hub-ink); }
.hub-button.dark { background: var(--hub-brand); color: #fff; }
.hub-button.danger { background: var(--hub-red); color: #fff; }
.hub-button.small { min-height: 39px; padding: 7px 13px; border-radius: 10px; font-size: .82rem; }
.hub-button:disabled { cursor: not-allowed; filter: grayscale(.5); opacity: .58; transform: none; }
.link-button { padding: 0; border: 0; background: none; color: var(--hub-blue); font-weight: 750; text-decoration: underline; }

.hub-field { display: grid; gap: 7px; margin-bottom: 17px; }
.hub-field label { color: var(--hub-ink); font-size: .84rem; font-weight: 800; }
.hub-field .hint { margin: -2px 0 2px; color: var(--hub-muted); font-size: .77rem; }
.hub-input, .hub-select, .hub-textarea, .form-control, .form-select {
  width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #cbd5e1; border-radius: 11px;
  background: #fff; color: var(--hub-ink); box-shadow: none;
}
.hub-textarea { min-height: 135px; resize: vertical; }
.hub-input:focus, .hub-select:focus, .hub-textarea:focus, .form-control:focus, .form-select:focus {
  border-color: var(--hub-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hub-accent) 20%, transparent);
}
.field-validation-error, .validation-summary-errors, .text-danger { color: var(--hub-red) !important; font-size: .8rem; font-weight: 700; }
.input-validation-error { border-color: var(--hub-red) !important; }
.check-row { display: flex; align-items: flex-start; gap: 10px; }
.check-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--hub-brand); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.text-size-setting { padding: 19px; border: 1px solid var(--hub-line); border-radius: 16px; background: var(--hub-soft); }
.text-size-setting-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.text-size-setting-heading h2 { margin: 0; font-size: 1rem; }
.text-size-setting-heading p { margin: 3px 0 0; color: var(--hub-muted); font-size: .78rem; }
.text-size-setting-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.text-size-setting output { min-width: 62px; padding: 7px 10px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-surface); color: var(--hub-brand); font-weight: 900; text-align: center; }
.text-size-slider-row { display: grid; grid-template-columns: 30px minmax(0,1fr) 38px; align-items: center; gap: 12px; margin-top: 22px; }
.text-size-example { color: var(--hub-brand); font-weight: 900; text-align: center; }
.text-size-example.small { font-size: .8rem; }
.text-size-example.large { font-size: 1.45rem; }
.text-size-slider { --slider-progress: 25%; width: 100%; height: 30px; margin: 0; appearance: none; background: transparent; cursor: pointer; }
.text-size-slider::-webkit-slider-runnable-track { height: 9px; border-radius: 999px; background: linear-gradient(to right,var(--hub-brand) 0 var(--slider-progress),var(--hub-line) var(--slider-progress) 100%); }
.text-size-slider::-webkit-slider-thumb { width: 27px; height: 27px; margin-top: -9px; appearance: none; border: 4px solid var(--hub-surface); border-radius: 50%; background: var(--hub-accent); box-shadow: 0 0 0 2px var(--hub-brand),0 4px 10px rgba(15,23,42,.2); }
.text-size-slider::-moz-range-track { height: 9px; border-radius: 999px; background: var(--hub-line); }
.text-size-slider::-moz-range-progress { height: 9px; border-radius: 999px; background: var(--hub-brand); }
.text-size-slider::-moz-range-thumb { width: 21px; height: 21px; border: 4px solid var(--hub-surface); border-radius: 50%; background: var(--hub-accent); box-shadow: 0 0 0 2px var(--hub-brand),0 4px 10px rgba(15,23,42,.2); }
.text-size-scale { position: relative; height: 19px; margin: 1px 48px 0 42px; color: var(--hub-muted); font-size: .65rem; font-weight: 750; }
.text-size-scale span { position: absolute; top: 0; white-space: nowrap; }
.text-size-scale span:first-child { left: 0; }
.text-size-scale span:nth-child(2) { left: 25%; transform: translateX(-50%); }
.text-size-scale span:last-child { right: 0; }
.text-size-preview { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-surface); }
.text-size-preview > span { color: var(--hub-muted); font-size: .65rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.text-size-preview p { margin: 4px 0 0; color: var(--hub-ink); }

.hub-alert { display: flex; width: min(1180px, 100%); align-items: center; justify-content: space-between; gap: 12px; margin: 0 auto 18px; padding: 13px 15px; border: 1px solid #a7f3d0; border-radius: 13px; background: #ecfdf5; color: #065f46; font-weight: 700; }
.hub-alert.warning { border-color: #fde68a; background: #fffbeb; color: #854d0e; }
.hub-alert.danger { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.hub-alert button { display: grid; width: 32px; height: 32px; place-items: center; border: 0; background: none; color: inherit; line-height: 1; }
.hub-alert button .hub-icon { width: 20px; height: 20px; }
.hub-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: #eef2f7; color: #40506a; font-size: .7rem; font-weight: 850; }
.hub-badge.announcement { background: #fff2d6; color: #8a4b00; }
.hub-badge.poll { background: #eaf2ff; color: #164c96; }
.hub-badge.success { background: #dcfae6; color: #067647; }
.hub-badge.danger { background: #fee4e2; color: #b42318; }

.metric-card { min-height: 152px; padding: 20px; border: 1px solid var(--hub-line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.metric-card .metric-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: #fff3d6; color: #7a4500; font-weight: 900; }
.metric-card .metric-icon .hub-icon { width: 22px; height: 22px; }
.metric-card strong { display: block; margin: 12px 0 1px; font-size: 1.65rem; letter-spacing: -.04em; }
.metric-card small { color: var(--hub-muted); }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.quick-action { display: grid; min-height: 126px; align-content: space-between; padding: 17px; border: 1px solid var(--hub-line); border-radius: 15px; background: #fff; color: var(--hub-ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.quick-action:hover { color: var(--hub-ink); transform: translateY(-3px); box-shadow: var(--hub-shadow); }
.quick-action span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--hub-brand); color: #fff; font-weight: 900; }
.quick-action span .hub-icon { width: 22px; height: 22px; }
.quick-action strong { font-size: .92rem; }

.empty-state { display: grid; min-height: 240px; place-items: center; padding: 35px; text-align: center; }
.empty-state > div { max-width: 440px; }
.empty-state .empty-symbol { display: grid; width: 62px; height: 62px; place-items: center; margin: 0 auto 15px; border-radius: 18px; background: #eef2f7; color: var(--hub-brand); font-weight: 900; }
.empty-state .empty-symbol .hub-icon { width: 32px; height: 32px; }
.empty-state h2, .empty-state h3 { margin: 0 0 7px; font-size: 1.18rem; }
.empty-state p { margin: 0 0 18px; color: var(--hub-muted); }

.feed-list { display: grid; gap: 16px; }
.feed-card { overflow: hidden; border: 1px solid var(--hub-line); border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.feed-card.is-pinned { border-top: 4px solid var(--hub-accent); }
.feed-card.style-classic { border-left: 4px solid var(--post-accent, var(--hub-accent)); }
.feed-card.style-spotlight { border-color: color-mix(in srgb, var(--post-accent, var(--hub-accent)) 62%, var(--hub-line)); box-shadow: 0 14px 36px color-mix(in srgb, var(--post-accent, var(--hub-accent)) 13%, transparent); }
.feed-card.style-spotlight .feed-card-main { padding-top: 26px; padding-bottom: 26px; background: linear-gradient(145deg, color-mix(in srgb, var(--post-accent, var(--hub-accent)) 10%, var(--hub-surface)), var(--hub-surface) 65%); }
.feed-card.style-spotlight h1, .feed-card.style-spotlight h2 { font-size: clamp(1.32rem,3vw,1.8rem); }
.feed-card.style-compact .feed-card-main { padding-top: 15px; padding-bottom: 15px; }
.feed-card.style-compact .feed-meta { margin-bottom: 7px; }
.feed-card.align-center .feed-card-main { text-align: center; }
.feed-card.align-center .feed-meta, .feed-card.align-center .feed-card-footer { justify-content: center; }
.feed-card-main { padding: 20px 22px; }
.feed-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 12px; color: var(--hub-muted); font-size: .76rem; }
.feed-author { display: flex; align-items: center; gap: 8px; color: var(--hub-ink); font-weight: 800; }
.mini-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--hub-brand); color: #fff; font-size: .75rem; font-weight: 900; }
.mini-avatar.has-photo, .hub-avatar.has-photo, .profile-photo-preview.has-photo { background: var(--hub-soft); overflow: hidden; }
.mini-avatar img, .hub-avatar img, .hub-avatar-link img, .profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-photo-editor { display: grid; grid-template-columns: 112px minmax(0,1fr); align-items: center; gap: 22px; padding: 18px; border: 1px solid var(--hub-line); border-radius: 16px; background: var(--hub-soft); }
.profile-photo-editor h2 { margin: 0 0 5px; font-size: 1.08rem; }
.profile-photo-preview { display: grid; width: 112px; height: 112px; place-items: center; border-radius: 50%; background: var(--hub-brand); color: #fff; font-size: 2.35rem; font-weight: 900; box-shadow: 0 0 0 5px color-mix(in srgb, var(--hub-accent) 18%, transparent); }
.profile-photo-editor .hub-check { margin-top: 12px; }
.profile-photo-editor [data-avatar-filename] { margin-left: 10px; color: var(--hub-muted); font-size: .85rem; }
.feed-card h2 { margin: 0 0 8px; font-size: 1.18rem; letter-spacing: -.025em; }
.feed-card h2 a { color: var(--hub-ink); text-decoration: none; }
.feed-card h2 a:hover { color: var(--hub-blue); text-decoration: underline; }
.feed-card p { margin: 0; white-space: pre-line; }
.feed-card-footer { display: flex; align-items: center; gap: 9px; padding: 11px 20px; border-top: 1px solid var(--hub-line); background: var(--hub-soft); }
.feed-action { display: inline-flex; min-height: 38px; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 9px; background: transparent; color: #536177; font-size: .78rem; font-weight: 800; text-decoration: none; }
.feed-action:hover, .feed-action.is-active { background: #fff; color: var(--hub-blue); }

.post-composer-section { padding: 20px; border: 1px solid var(--hub-line); border-radius: 16px; background: var(--hub-soft); }
.post-composer-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.post-composer-heading > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--hub-accent) 22%, var(--hub-surface)); color: var(--hub-brand); }
.post-composer-heading h2 { margin: 0; font-size: 1.05rem; }
.post-composer-heading p { margin: 3px 0 0; color: var(--hub-muted); font-size: .78rem; }
.post-media-picker { position: relative; display: grid; min-height: 112px; place-items: center; padding: 18px; border: 2px dashed color-mix(in srgb, var(--hub-brand) 30%, var(--hub-line)); border-radius: 14px; background: var(--hub-surface); cursor: pointer; text-align: center; }
.post-media-picker:hover { border-color: var(--hub-accent); background: color-mix(in srgb, var(--hub-accent) 6%, var(--hub-surface)); }
.post-media-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.post-media-picker > span { display: grid; justify-items: center; gap: 3px; }
.post-media-picker .hub-icon { width: 25px; height: 25px; margin-bottom: 3px; color: var(--hub-brand); }
.post-media-picker small { color: var(--hub-muted); }
.post-upload-preview { display: grid; gap: 10px; margin-top: 12px; }
.post-upload-item { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 13px; padding: 12px; border: 1px solid var(--hub-line); border-radius: 13px; background: var(--hub-surface); }
.post-upload-item > img, .post-upload-item > video { width: 92px; height: 92px; border-radius: 10px; background: #0b1220; object-fit: cover; }
.post-upload-item-fields { min-width: 0; display: grid; gap: 7px; }
.post-upload-item-fields strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.post-upload-item-fields label { display: grid; gap: 3px; color: var(--hub-muted); font-size: .7rem; font-weight: 750; }
.post-upload-item-fields input { min-height: 39px; padding: 7px 10px; }
.post-style-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
.post-style-controls .hub-field { margin-bottom: 13px; }
.colour-input-row { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 6px 11px; border: 1px solid #cbd5e1; border-radius: 11px; background: var(--hub-surface); }
.colour-input-row input { width: 46px; height: 32px; padding: 0; border: 0; border-radius: 7px; background: none; cursor: pointer; }
.colour-input-row output { color: var(--hub-muted); font-size: .8rem; font-weight: 800; }
.post-style-preview { display: grid; gap: 4px; margin-top: 3px; padding: 17px 18px; border: 1px solid var(--hub-line); border-left: 5px solid var(--post-accent, var(--hub-accent)); border-radius: 13px; background: var(--hub-surface); }
.post-style-preview > span { color: var(--post-accent, var(--hub-accent)); font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.post-style-preview > small { color: var(--hub-muted); }
.post-style-preview.style-spotlight { border-color: color-mix(in srgb, var(--post-accent) 62%, var(--hub-line)); background: linear-gradient(145deg, color-mix(in srgb, var(--post-accent) 11%, var(--hub-surface)), var(--hub-surface)); box-shadow: 0 10px 24px color-mix(in srgb, var(--post-accent) 12%, transparent); }
.post-style-preview.style-compact { padding-top: 11px; padding-bottom: 11px; }
.post-style-preview.align-center { text-align: center; }
.post-existing-media { display: grid; gap: 12px; margin-bottom: 13px; }
.post-existing-media-item { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 15px; padding: 13px; border: 1px solid var(--hub-line); border-radius: 14px; background: var(--hub-surface); }
.post-existing-media-preview { min-width: 0; }
.post-existing-media-preview img, .post-existing-media-preview video { display: block; width: 100%; height: 155px; border-radius: 10px; background: #0b1220; object-fit: contain; }
.post-existing-media-preview strong { display: block; overflow: hidden; margin-top: 6px; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }

.feed-media-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 0 4px 4px; }
.feed-card-main + .feed-media-gallery { margin-top: -1px; }
.feed-media-item { position: relative; min-width: 0; margin: 0; overflow: hidden; border-radius: 7px; background: #0b1220; }
.feed-media-item:only-child { grid-column: 1 / -1; }
.feed-media-open { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.feed-media-item img, .feed-media-item video { display: block; width: 100%; height: clamp(210px,35vw,430px); background: #0b1220; object-fit: cover; }
.feed-media-gallery.layout-feature .feed-media-item.is-first { grid-column: 1 / -1; }
.feed-media-gallery.layout-feature .feed-media-item.is-first img, .feed-media-gallery.layout-feature .feed-media-item.is-first video { height: clamp(270px,48vw,540px); }
.feed-media-gallery.layout-strip { display: flex; overflow-x: auto; padding: 0 4px 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.feed-media-gallery.layout-strip .feed-media-item { width: min(78%,520px); flex: 0 0 auto; scroll-snap-align: start; }
.feed-media-gallery.layout-strip .feed-media-item img, .feed-media-gallery.layout-strip .feed-media-item video { height: clamp(230px,42vw,450px); }
.feed-media-item figcaption { padding: 8px 10px; background: var(--hub-surface); color: var(--hub-muted); font-size: .74rem; }
.feed-media-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(7,16,29,.64); color: #fff; font-size: 1.2rem; font-weight: 850; pointer-events: none; }
.public-news-card .feed-media-gallery { margin: 2px -10px 0; }
.public-news-card .feed-media-item img, .public-news-card .feed-media-item video { height: 190px; }
.public-article > .feed-media-gallery { padding: 5px; }
.public-article > .feed-media-gallery .feed-media-item img, .public-article > .feed-media-gallery .feed-media-item video { height: clamp(260px,50vw,560px); }
.public-news-card.style-classic { border-top: 4px solid var(--post-accent, var(--hub-accent)); }
.public-news-card.style-spotlight, .public-article.style-spotlight { border-color: color-mix(in srgb, var(--post-accent, var(--hub-accent)) 62%, var(--hub-line)); box-shadow: 0 16px 40px color-mix(in srgb, var(--post-accent, var(--hub-accent)) 13%, transparent); }
.public-news-card.align-center, .public-article.align-center { text-align: center; }
.public-news-card.align-center .public-news-meta, .public-news-card.align-center .public-news-byline { justify-content: center; }
.media-lightbox { width: min(1060px,calc(100% - 28px)); max-width: none; padding: 0; border: 1px solid color-mix(in srgb, var(--hub-accent) 58%, var(--hub-line)); border-radius: 18px; background: #07101d; color: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.media-lightbox::backdrop { background: rgba(4,10,20,.8); backdrop-filter: blur(6px); }
.media-lightbox-content { position: relative; display: grid; max-height: 90vh; place-items: center; padding: 48px 18px 18px; }
.media-lightbox-content img { display: block; max-width: 100%; max-height: calc(90vh - 66px); object-fit: contain; }
.media-lightbox-close { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 11px; background: rgba(255,255,255,.12); color: #fff; font-size: 1.35rem; line-height: 1; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--hub-line); }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.comment-head strong { font-size: .85rem; }
.comment-head time { color: var(--hub-muted); font-size: .72rem; }
.comment p { margin: 0; white-space: pre-line; }

.poll-options { display: grid; gap: 10px; margin: 16px 0; }
.poll-option { position: relative; overflow: hidden; display: flex; min-height: 50px; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--hub-line); border-radius: 11px; background: #fff; }
.poll-option .poll-fill { position: absolute; z-index: 0; inset: 0 auto 0 0; background: #eaf2ff; }
.poll-option > *:not(.poll-fill) { position: relative; z-index: 1; }
.poll-option input { width: 20px; height: 20px; accent-color: var(--hub-brand); }
.poll-option label { flex: 1; font-weight: 750; }
.poll-option b { font-size: .8rem; }

.conversation-list { overflow: hidden; }
.conversation-row { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-bottom: 1px solid var(--hub-line); color: var(--hub-ink); text-decoration: none; }
.conversation-row:last-child { border-bottom: 0; }
.conversation-row:hover { background: var(--hub-soft); color: var(--hub-ink); }
.conversation-row > span:nth-child(2) { min-width: 0; flex: 1; display: grid; }
.conversation-row strong, .conversation-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-row small { color: var(--hub-muted); }
body.hub-thread-layout { height: 100vh; height: 100dvh; overflow: hidden; }
body.hub-thread-layout .hub-main { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.hub-thread-layout .hub-page-stage { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.message-thread-page { display: grid; width: min(790px,100%); max-height: 830px; min-height: 0; flex: 1; grid-template-rows: auto minmax(0,1fr); }
.thread { display: flex; min-height: 0; height: 100%; flex-direction: column; overflow: hidden; }
.thread-messages { min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; display: grid; align-content: start; gap: 12px; padding: 22px; background: #f8fafc; }
.message { width: fit-content; max-width: min(76%, 680px); padding: 11px 14px; border: 1px solid var(--hub-line); border-radius: 7px 16px 16px; background: #fff; box-shadow: 0 3px 12px rgba(15,23,42,.05); }
.message.mine { margin-left: auto; border-color: color-mix(in srgb, var(--hub-brand) 32%, #fff); border-radius: 16px 7px 16px 16px; background: #eaf1fb; }
.message.is-deleted, .message.mine.is-deleted { border-color: color-mix(in srgb, var(--hub-red) 48%, var(--hub-line)); background: color-mix(in srgb, var(--hub-red) 12%, var(--hub-surface)); color: var(--hub-red); box-shadow: 0 5px 16px color-mix(in srgb, var(--hub-red) 10%, transparent); }
.message.is-deleted p { font-weight: 850; }
.message small { display: block; margin-bottom: 3px; color: var(--hub-muted); font-size: .7rem; font-weight: 750; }
.message p { margin: 0; white-space: pre-line; }
.thread-composer { display: grid; gap: 8px; padding: 14px; border-top: 1px solid var(--hub-line); background: #fff; }
.thread-composer-main { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; gap: 10px; }
.thread-compose-fields { display: grid; min-width: 0; }
.thread-composer textarea { width: 100%; height: 100%; min-height: 76px; max-height: 150px; resize: vertical; }
.thread-composer-actions { display: flex; align-items: center; gap: 8px; }
.message-compose-popover-host { display: contents; }
.message-compose-icon-button { display: grid; width: 44px; height: 44px; flex: 0 0 auto; padding: 0; place-items: center; border: 1px solid var(--hub-line); border-radius: 12px; background: var(--hub-surface); color: var(--hub-brand); cursor: pointer; }
.message-compose-icon-button:hover, .message-compose-icon-button[aria-expanded="true"] { border-color: color-mix(in srgb,var(--hub-accent) 60%,var(--hub-line)); background: var(--hub-soft); transform: translateY(-1px); }
.message-compose-icon-button:focus-visible { outline: 0; border-color: var(--hub-accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--hub-accent) 20%,transparent); }
.message-compose-icon-button:disabled { cursor: default; opacity: .55; transform: none; }
.message-compose-icon-button .hub-icon { width: 21px; height: 21px; }
.message-send-button { min-width: 104px; min-height: 44px; height: 44px; align-self: center; }
.message-attachment-menu .overflow-menu-item > span { display: grid; min-width: 0; }
.message-attachment-menu .overflow-menu-item strong { color: inherit; font-size: .8rem; }
.message-attachment-menu .overflow-menu-item small { color: var(--hub-muted); font-size: .68rem; font-weight: 600; }
.message-emoji-panel { margin-top: 5px; padding-top: 7px; border-top: 1px solid var(--hub-line); }
.message-emoji-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 4px; padding: 3px; }
.message-emoji-grid button { display: grid; min-width: 0; height: 40px; padding: 0; place-items: center; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; font-size: 1.25rem; }
.message-emoji-grid button:hover, .message-emoji-grid button:focus-visible { border-color: var(--hub-line); outline: 0; background: var(--hub-soft); transform: translateY(-1px); }
.thread-attachment-tray { display: grid; gap: 7px; padding: 8px 10px; border: 1px solid color-mix(in srgb,var(--hub-brand) 40%,var(--hub-line)); border-radius: 12px; background: color-mix(in srgb,var(--hub-accent) 7%,var(--hub-surface)); }
.thread-attachment-tray-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--hub-muted); font-size: .7rem; }
.thread-attachment-tray-heading strong { color: var(--hub-ink); }
.attachment-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--hub-line); border-radius: 9px; background: var(--hub-soft); color: var(--hub-ink); cursor: pointer; font-weight: 800; }
.attachment-button:hover { border-color: var(--hub-accent); }
.attachment-button:focus-visible { outline: 0; border-color: var(--hub-accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--hub-accent) 20%,transparent); }
.attachment-button:disabled { cursor: default; opacity: .6; }
.attachment-button .hub-icon { width: 17px; height: 17px; }
.message-attachments { display: grid; gap: 8px; margin-top: 9px; }
.message-media { display: grid; gap: 6px; color: var(--hub-muted); font-size: .72rem; text-decoration: none; }
.message-media img, .message-media video { display: block; width: min(460px, 100%); max-height: 340px; border: 1px solid var(--hub-line); border-radius: 11px; background: #081018; object-fit: contain; }
.message-media.image:hover img { border-color: var(--hub-accent); }
.message-media-button { width: 100%; padding: 0; border: 0; background: transparent; font: inherit; text-align: left; cursor: zoom-in; }
.message-media.video > a { color: var(--hub-brand); font-weight: 800; }
.message-file { display: flex; min-width: min(370px, 62vw); align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-soft); color: var(--hub-ink); text-decoration: none; }
.message-file .hub-icon { width: 23px; height: 23px; color: var(--hub-brand); }
.message-file > span { min-width: 0; flex: 1; display: grid; }
.message-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-file small { margin: 0; }
.message-file b { color: var(--hub-brand); font-size: .74rem; }
.message-preview-dialog { width: min(920px,calc(100% - 28px)); }
.message-preview-dialog .hub-dialog-body { display: grid; min-height: 180px; place-items: center; background: #081018; }
.message-preview-dialog [data-message-preview-image] { display: block; max-width: 100%; max-height: min(68vh,720px); object-fit: contain; }
.message-attachment-picker { display: grid; gap: 10px; padding: 14px; border: 1px dashed var(--hub-line); border-radius: 13px; background: var(--hub-soft); transition: border-color .16s ease, background .16s ease; }
.message-attachment-picker.is-compact { gap: 7px; margin-top: 8px; padding: 8px 10px; border-style: solid; background: color-mix(in srgb,var(--hub-soft) 78%,var(--hub-surface)); }
.message-attachment-picker.has-files { border-color: color-mix(in srgb,var(--hub-brand) 40%,var(--hub-line)); background: color-mix(in srgb,var(--hub-accent) 7%,var(--hub-surface)); }
.message-file-picker-toolbar { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.message-file-picker-toolbar .attachment-button { margin: 0; font: inherit; }
.message-file-picker-count { margin-left: auto; color: var(--hub-muted); font-size: .75rem; font-weight: 750; }
.message-file-picker-help, .message-file-picker-notice { margin: 0; color: var(--hub-muted); font-size: .73rem; }
.message-file-picker-notice { color: var(--hub-red); font-weight: 750; }
.message-file-selection { display: flex; min-width: 0; flex-wrap: wrap; gap: 7px; }
.message-selected-file { display: grid; min-width: min(225px,100%); max-width: 100%; flex: 1 1 225px; grid-template-columns: 30px minmax(0,1fr) 30px; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--hub-line); border-radius: 10px; background: var(--hub-surface); box-shadow: 0 2px 7px rgba(15,23,42,.04); }
.message-selected-file-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: var(--hub-soft); color: var(--hub-brand); }
.message-selected-file-icon .hub-icon { width: 18px; height: 18px; }
.message-selected-file-details { display: grid; min-width: 0; line-height: 1.2; }
.message-selected-file-details strong { overflow: hidden; color: var(--hub-ink); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.message-selected-file-details small { color: var(--hub-muted); font-size: .66rem; }
.message-selected-file-remove { display: grid; width: 30px; height: 30px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--hub-muted); cursor: pointer; font: inherit; font-size: 1.15rem; line-height: 1; }
.message-selected-file-remove:hover, .message-selected-file-remove:focus-visible { border-color: color-mix(in srgb,var(--hub-red) 35%,var(--hub-line)); outline: 0; background: color-mix(in srgb,var(--hub-red) 9%,var(--hub-surface)); color: var(--hub-red); }

html.hub-page-booting .hub-page-stage { opacity: 0; transform: translateY(7px); }
html.hub-page-entering .hub-page-stage { animation: hub-page-enter .2s cubic-bezier(.2,.75,.3,1) both; }
html.hub-page-exiting .hub-page-stage { pointer-events: none; animation: hub-page-exit .13s ease-in both; }
@keyframes hub-page-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hub-page-exit { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-4px); } }

.file-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.file-toolbar .hub-input { max-width: 370px; }
.document-search-toolbar { display: grid; grid-template-columns: minmax(190px,1.2fr) minmax(210px,.9fr) auto; align-items: stretch; }
.file-toolbar.document-search-toolbar .hub-input { max-width: none; }
.document-search-toolbar .hub-button { min-height: 48px; white-space: nowrap; }
.folder-card-header { min-height: 70px; }
.folder-card-header .hub-button { flex: 0 0 auto; }
.folder-card-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.folder-browser-toolbar { margin-bottom: 0; }
.folder-empty-text { margin: 0; color: var(--hub-muted); font-size: .8rem; }
.folder-browser-toolbar:not(:empty) + .folder-empty-text { margin-top: 12px; }
.folder-create-dialog .hub-dialog-body p { margin-bottom: 17px; color: var(--hub-muted); }
.folder-create-dialog .hub-dialog-body p strong { color: var(--hub-ink); }
.folder-create-dialog .hub-dialog-card > footer .hub-button { min-height: 48px; }
.folder-manage-dialog { width: min(640px,calc(100% - 28px)); }
.folder-manage-dialog .hub-dialog-card > header p { overflow: hidden; margin: 2px 0 0; color: var(--hub-muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.folder-manage-body { display: grid; gap: 16px; }
.folder-manage-section { padding: 17px; border: 1px solid var(--hub-line); border-radius: 14px; background: var(--hub-surface); }
.folder-manage-section-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; }
.folder-manage-section-heading > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--hub-soft); color: var(--hub-brand); }
.folder-manage-section-heading .hub-icon { width: 20px; height: 20px; }
.folder-manage-section h3, .folder-danger-zone h3 { margin: 0; color: var(--hub-ink); font-size: .92rem; }
.folder-manage-section p, .folder-danger-zone p { margin: 3px 0 0; color: var(--hub-muted); font-size: .76rem; }
.folder-manage-rename-form .hub-field { margin-bottom: 0; }
.folder-manage-rename-form .form-actions { justify-content: flex-end; margin-top: 13px; }
.folder-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 17px; border: 1px solid color-mix(in srgb,var(--hub-red) 32%,var(--hub-line)); border-radius: 14px; background: color-mix(in srgb,var(--hub-red) 6%,var(--hub-surface)); }
.folder-danger-zone > div { min-width: 0; }
.folder-danger-zone form { flex: 0 0 auto; margin: 0; }
.document-upload-dialog { width: min(720px,calc(100% - 28px)); }
.document-upload-body { max-height: min(70vh,700px); overflow-y: auto; }
.document-upload-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.document-upload-grid .hub-field { margin-bottom: 0; }
.document-upload-grid .span-full { grid-column: 1 / -1; }
.document-upload-dialog .hub-dialog-card > footer .hub-button { min-height: 48px; }
.document-file-picker { position: relative; display: grid; min-height: 58px; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 13px; padding: 7px; border: 1px solid #cbd5e1; border-radius: 12px; background: var(--hub-surface); transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.document-file-picker:hover { border-color: color-mix(in srgb,var(--hub-accent) 56%,#cbd5e1); background: color-mix(in srgb,var(--hub-soft) 70%,var(--hub-surface)); }
.document-file-picker:has(.document-file-picker-input:focus-visible) { border-color: var(--hub-accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--hub-accent) 20%,transparent); }
.document-file-picker-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; }
.document-file-picker-button { min-height: 42px; margin: 0; padding: 8px 14px; border-radius: 9px; white-space: nowrap; }
.document-file-picker-name { min-width: 0; overflow: hidden; color: var(--hub-muted); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.document-file-picker.has-file { border-color: color-mix(in srgb,var(--hub-green) 42%,var(--hub-line)); background: color-mix(in srgb,var(--hub-green) 5%,var(--hub-surface)); }
.document-file-picker.has-file .document-file-picker-name { color: var(--hub-ink); font-weight: 750; }
.feed-filter-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) minmax(220px,300px) auto; align-items: stretch; }
.file-toolbar.feed-filter-toolbar .hub-input { max-width: none; }
.feed-filter-toolbar .hub-button { min-height: 48px; white-space: nowrap; }
.file-list { overflow: hidden; }
.file-row { display: grid; grid-template-columns: minmax(220px, 1.7fr) minmax(120px,.7fr) minmax(100px,.5fr) auto; align-items: center; gap: 15px; padding: 14px 18px; border-bottom: 1px solid var(--hub-line); }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: var(--hub-soft); }
.file-name { min-width: 0; display: flex; align-items: center; gap: 11px; }
.file-symbol { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #eef2f7; color: var(--hub-brand); font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.file-name > span:last-child { min-width: 0; display: grid; }
.file-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name small, .file-row > span { color: var(--hub-muted); font-size: .76rem; }
.file-actions { display: flex; justify-content: flex-end; gap: 7px; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 15px; }
.person-card { display: grid; gap: 12px; padding: 19px; border: 1px solid var(--hub-line); border-radius: 16px; background: #fff; }
.person-card-head { display: flex; align-items: center; gap: 12px; }
.person-card h2 { margin: 0; font-size: 1rem; }
.person-card p { min-height: 46px; margin: 0; color: var(--hub-muted); font-size: .82rem; }

.recipient-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.recipient-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recipient-picker legend { width: auto; margin: 0; color: var(--hub-ink); font-size: 1rem; font-weight: 850; }
.recipient-search { position: relative; margin-top: 14px; }
.recipient-search .hub-icon { position: absolute; z-index: 1; top: 50%; left: 14px; width: 19px; height: 19px; color: var(--hub-muted); transform: translateY(-50%); }
.recipient-search .hub-input { padding-left: 44px; }
.recipient-list { display: grid; max-height: 360px; gap: 9px; margin-top: 14px; overflow-y: auto; padding: 2px 5px 2px 2px; }
.recipient-option {
  display: grid; min-width: 0; grid-template-columns: auto auto minmax(0,1fr) auto; align-items: center; gap: 12px;
  padding: 12px 13px; border: 1px solid var(--hub-line); border-radius: 13px; background: #fff; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.recipient-option:hover { border-color: color-mix(in srgb, var(--hub-accent) 68%, var(--hub-line)); background: var(--hub-soft); }
.recipient-option:has(input:checked) { border-color: var(--hub-accent); background: #fffbeb; box-shadow: 0 0 0 2px color-mix(in srgb, var(--hub-accent) 18%, transparent); }
.recipient-option > input { width: 22px; height: 22px; margin: 0; accent-color: var(--hub-brand); }
.recipient-details { min-width: 0; display: grid; }
.recipient-details strong, .recipient-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recipient-details small { color: var(--hub-muted); font-size: .75rem; }
.recipient-selected { display: grid; width: 30px; height: 30px; place-items: center; color: var(--hub-green); opacity: 0; }
.recipient-selected .hub-icon { width: 22px; height: 22px; }
.recipient-option:has(input:checked) .recipient-selected { opacity: 1; }
.recipient-list.search-results .recipient-option { width: 100%; grid-template-columns: auto minmax(0,1fr) auto; color: var(--hub-ink); text-align: left; }
.recipient-list.search-results .recipient-selected { width: auto; padding: 0 5px; color: var(--hub-brand); opacity: 1; font-size: .75rem; font-weight: 850; }
.recipient-search-status { margin-top: 10px; color: var(--hub-muted); font-size: .78rem; }
.selected-recipients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.selected-recipient-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px 5px 5px; border: 1px solid color-mix(in srgb, var(--hub-accent) 55%, var(--hub-line)); border-radius: 999px; background: color-mix(in srgb, var(--hub-accent) 10%, #fff); color: var(--hub-ink); cursor: pointer; }
.selected-recipient-chip .mini-avatar { width: 28px; height: 28px; }
.selected-recipient-chip b { color: var(--hub-muted); font-size: 1rem; }
.recipient-no-match { margin: 14px 0 0; padding: 14px; border-radius: 11px; background: var(--hub-soft); color: var(--hub-muted); text-align: center; }
.recipient-empty { display: flex; align-items: flex-start; gap: 15px; margin-top: 15px; padding: 18px; border: 1px solid var(--hub-line); border-radius: 15px; background: var(--hub-soft); }
.recipient-empty > span { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #fff; color: var(--hub-brand); }
.recipient-empty > span .hub-icon { width: 25px; height: 25px; }
.recipient-empty h2 { margin: 0 0 5px; font-size: 1rem; }
.recipient-empty p { margin: 0 0 13px; color: var(--hub-muted); font-size: .82rem; }

.notification-row { display: flex; gap: 13px; padding: 17px 19px; border-bottom: 1px solid var(--hub-line); color: var(--hub-ink); text-decoration: none; }
.notification-row:last-child { border-bottom: 0; }
.notification-row.unread { background: #f5f9ff; }
.notification-symbol { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: #eaf2ff; color: var(--hub-blue); font-weight: 900; }
.notification-symbol .hub-icon { width: 22px; height: 22px; }
.notification-row > span:nth-child(2) { min-width: 0; flex: 1; display: grid; }
.notification-row small { color: var(--hub-muted); }

.settings-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.settings-option {
  display: grid; min-width: 0; min-height: 142px; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 15px;
  padding: 20px; border: 1px solid var(--hub-line); border-radius: 17px; background: var(--hub-surface); color: var(--hub-ink);
  box-shadow: 0 9px 24px rgba(15,23,42,.06); text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.settings-option:hover { border-color: color-mix(in srgb,var(--hub-accent) 58%,var(--hub-line)); color: var(--hub-ink); box-shadow: var(--hub-shadow); transform: translateY(-2px); }
.settings-option-icon { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: color-mix(in srgb,var(--hub-blue) 10%,var(--hub-surface)); color: var(--hub-brand); }
.settings-option-icon .hub-icon { width: 24px; height: 24px; }
.settings-option-copy { display: grid; min-width: 0; gap: 4px; }
.settings-option-copy strong { font-size: .96rem; line-height: 1.3; }
.settings-option-copy small { color: var(--hub-muted); font-size: .76rem; line-height: 1.5; }
.settings-option-arrow { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 11px; background: var(--hub-soft); color: var(--hub-muted); transition: background .16s ease, color .16s ease, transform .16s ease; }
.settings-option-arrow .hub-icon { width: 19px; height: 19px; }
.settings-option:hover .settings-option-arrow { background: color-mix(in srgb,var(--hub-accent) 18%,var(--hub-surface)); color: var(--hub-brand); transform: translateX(3px); }

.admin-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 16px; margin-top: 18px; }
.admin-nav-group { display: grid; overflow: hidden; grid-template-rows: auto 1fr; border: 1px solid var(--hub-line); border-radius: 17px; background: #fff; box-shadow: 0 9px 24px rgba(15,23,42,.06); }
.admin-nav-heading { display: grid; min-height: 96px; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; padding: 16px 17px; border-bottom: 1px solid var(--hub-line); background: var(--hub-soft); }
.admin-nav-heading > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #fff; color: var(--hub-brand); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.admin-nav-heading .hub-icon { width: 23px; height: 23px; }
.admin-nav-heading h2 { margin: 0; font-size: .96rem; }
.admin-nav-heading p { margin: 3px 0 0; color: var(--hub-muted); font-size: .72rem; }
.admin-nav-items { display: grid; grid-template-rows: repeat(3,minmax(126px,1fr)); }
.admin-link { display: grid; min-width: 0; grid-template-columns: auto minmax(0,1fr); align-items: start; align-content: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--hub-line); background: #fff; color: var(--hub-ink); text-decoration: none; transition: background .15s ease, box-shadow .15s ease; }
.admin-link:last-child { border-bottom: 0; }
.admin-link:hover { background: color-mix(in srgb,var(--hub-soft) 72%,#fff); color: var(--hub-ink); box-shadow: inset 4px 0 var(--hub-accent); }
.admin-link span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: #eef2f7; color: var(--hub-brand); font-weight: 900; }
.admin-link span .hub-icon { width: 22px; height: 22px; }
.admin-link strong { display: block; margin-bottom: 3px; }
.admin-link small { display: block; color: var(--hub-muted); line-height: 1.45; }
.data-table-wrap { overflow-x: auto; }
.hub-table { width: 100%; border-collapse: collapse; }
.hub-table th, .hub-table td { padding: 12px 14px; border-bottom: 1px solid var(--hub-line); text-align: left; vertical-align: middle; }
.hub-table th { background: var(--hub-soft); color: #4e5d73; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.hub-table tbody tr:hover { background: #fbfcfe; }
.admin-content-table .admin-content-controls { width: 76px; text-align: center; }
.admin-content-overflow-menu { display: inline-block; vertical-align: middle; }

.text-action { border: 0; padding: 5px 2px; background: transparent; color: var(--hub-blue); font-weight: 800; text-decoration: underline; cursor: pointer; }
.text-action.danger, .danger-text { color: var(--hub-red); }
.muted { color: var(--hub-muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 18px; color: var(--hub-muted); font-size: .82rem; }
.breadcrumbs a { color: var(--hub-ink); font-weight: 800; }
.selection-list { max-height: 260px; overflow: auto; gap: 8px; margin-top: 12px; padding: 4px; }
.action-menu { position: relative; }
.action-menu > summary { list-style: none; cursor: pointer; }
.action-menu > summary::-webkit-details-marker { display: none; }
.action-menu-panel { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(320px, calc(100vw - 35px)); display: grid; gap: 10px; padding: 16px; border: 1px solid var(--hub-line); border-radius: 14px; background: #fff; box-shadow: var(--hub-shadow); }

.feed-card, .post-card-container, .hub-card.has-overflow-menu, .comment, .message { position: relative; }
.feed-card.has-overflow-menu .feed-card-main, .post-card-container.has-overflow-menu .hub-card-body, .hub-card.has-overflow-menu .hub-card-body { padding-right: 66px; }
.comment.has-overflow-menu { padding-right: 52px; }
.message.has-overflow-menu { padding-right: 60px; }
.overflow-menu-host { position: absolute; z-index: 8; top: 11px; right: 11px; text-align: left; }
.overflow-menu-host.comment-overflow-menu { top: 11px; right: 0; }
.overflow-menu-host.message-overflow-menu { top: 7px; right: 7px; }
.overflow-menu-host.is-inline { position: relative; top: auto; right: auto; }
.overflow-menu-trigger {
  display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid color-mix(in srgb, var(--hub-line) 80%, transparent);
  border-radius: 12px; background: color-mix(in srgb, var(--hub-surface) 90%, transparent); color: var(--hub-muted);
  box-shadow: 0 3px 10px rgba(15,23,42,.07); cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.overflow-menu-trigger:hover, .overflow-menu-trigger[aria-expanded="true"] { border-color: color-mix(in srgb, var(--hub-accent) 55%, var(--hub-line)); background: var(--hub-surface); color: var(--hub-brand); transform: translateY(-1px); }
.overflow-menu-trigger .hub-icon { width: 21px; height: 21px; }
.overflow-menu-panel[popover] {
  position: fixed; inset: auto; width: min(285px,calc(100vw - 24px)); margin: 0; padding: 8px;
  border: 1px solid var(--hub-line); border-radius: 15px; background: var(--hub-surface); color: var(--hub-ink);
  box-shadow: 0 18px 50px rgba(15,23,42,.2); text-align: left;
}
.overflow-menu-panel[popover]:popover-open { display: grid; gap: 2px; animation: overflow-menu-in .14s ease-out; }
.overflow-menu-panel form { margin: 0; }
.overflow-menu-heading { display: block; padding: 8px 11px 7px; color: var(--hub-muted); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; }
.overflow-menu-item {
  display: flex; width: 100%; min-height: 44px; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 10px;
  background: transparent; color: var(--hub-ink); font-size: .82rem; font-weight: 780; line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer;
}
.overflow-menu-item:hover, .overflow-menu-item:focus-visible { background: var(--hub-soft); color: var(--hub-brand); }
.overflow-menu-item.danger { color: var(--hub-red); }
.overflow-menu-item.danger:hover, .overflow-menu-item.danger:focus-visible { background: color-mix(in srgb, var(--hub-red) 9%, var(--hub-surface)); color: var(--hub-red); }
.overflow-menu-item .hub-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.overflow-menu-divider { height: 1px; margin: 6px 5px; background: var(--hub-line); }
.overflow-menu-note { display: flex; align-items: flex-start; gap: 8px; margin: 4px; padding: 10px; border-radius: 10px; background: var(--hub-soft); color: var(--hub-muted); font-size: .73rem; }
.overflow-menu-note .hub-icon { width: 17px; height: 17px; flex: 0 0 auto; }

.hub-dialog { width: min(560px,calc(100% - 28px)); max-width: none; padding: 0; border: 0; border-radius: 19px; background: transparent; color: var(--hub-ink); overflow: visible; }
.hub-dialog::backdrop { background: rgba(7,16,29,.66); backdrop-filter: blur(5px); }
.hub-dialog[open] { animation: hub-dialog-in .17s ease-out; }
.hub-dialog-card { overflow: hidden; border: 1px solid color-mix(in srgb, var(--hub-accent) 45%, var(--hub-line)); border-radius: 19px; background: var(--hub-surface); box-shadow: 0 28px 80px rgba(7,16,29,.32); }
.hub-dialog-card > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 19px; border-bottom: 1px solid var(--hub-line); background: var(--hub-soft); }
.hub-dialog-card > header > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.hub-dialog-card h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.025em; }
.hub-dialog-symbol { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--hub-accent) 18%, var(--hub-surface)); color: var(--hub-brand); }
.hub-dialog-symbol.danger { background: color-mix(in srgb, var(--hub-red) 10%, var(--hub-surface)); color: var(--hub-red); }
.hub-dialog-symbol .hub-icon { width: 20px; height: 20px; }
.hub-dialog-close { display: grid; width: 38px; height: 38px; flex: 0 0 auto; padding: 0; place-items: center; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-surface); color: var(--hub-muted); }
.hub-dialog-close:hover { border-color: var(--hub-accent); color: var(--hub-brand); }
.hub-dialog-close .hub-icon { width: 19px; height: 19px; }
.hub-dialog-body { padding: 20px; }
.hub-dialog-body > p:first-child { margin-top: 0; }
.hub-dialog-body > p:last-child, .hub-dialog-body .hub-field:last-child { margin-bottom: 0; }
.hub-dialog-card > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 19px; border-top: 1px solid var(--hub-line); background: var(--hub-soft); }

.audit-page { width: min(1240px,100%); }
.audit-page-heading { align-items: center; }
.audit-summary-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.audit-summary-card {
  display: flex; min-height: 104px; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--hub-line);
  border-radius: 15px; background: var(--hub-surface); color: var(--hub-ink); text-decoration: none; box-shadow: 0 7px 22px rgba(15,23,42,.055);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.audit-summary-card:hover { border-color: color-mix(in srgb, var(--hub-accent) 58%, var(--hub-line)); color: var(--hub-ink); box-shadow: var(--hub-shadow); transform: translateY(-2px); }
.audit-summary-card > span:last-child { display: grid; min-width: 0; }
.audit-summary-card strong { font-size: 1.55rem; line-height: 1.1; letter-spacing: -.04em; }
.audit-summary-card small { margin-top: 3px; color: var(--hub-muted); font-size: .72rem; line-height: 1.35; }
.audit-summary-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--hub-blue) 10%, var(--hub-surface)); color: var(--hub-blue); }
.audit-summary-icon .hub-icon { width: 22px; height: 22px; }
.audit-summary-card.security .audit-summary-icon { background: color-mix(in srgb, var(--hub-red) 9%, var(--hub-surface)); color: var(--hub-red); }
.audit-filter-panel { margin-bottom: 24px; padding: 21px; }
.audit-filter-heading, .audit-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.audit-filter-heading { margin-bottom: 17px; }
.audit-filter-heading h2, .audit-results-heading h2 { margin: 0; font-size: 1.06rem; font-weight: 850; letter-spacing: -.02em; }
.audit-filter-heading p, .audit-results-heading p { margin: 3px 0 0; color: var(--hub-muted); font-size: .78rem; }
.audit-filter-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.audit-filter-grid > label { display: grid; align-content: end; gap: 6px; min-width: 0; color: var(--hub-ink); font-size: .77rem; font-weight: 800; }
.audit-filter-search { grid-column: span 2; }
.input-with-icon { position: relative; }
.input-with-icon > .hub-icon { position: absolute; z-index: 1; top: 50%; left: 13px; width: 19px; height: 19px; color: var(--hub-muted); transform: translateY(-50%); }
.input-with-icon .hub-input { padding-left: 42px; }
.audit-filter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.audit-results-heading { margin: 0 2px 12px; }
.audit-results-heading > span { color: var(--hub-muted); font-size: .76rem; }
.audit-event-list { display: grid; gap: 12px; }
.audit-event-card {
  --audit-tone: var(--hub-blue); position: relative; display: grid; grid-template-columns: 50px minmax(0,1fr) auto 42px;
  gap: 15px; align-items: start; padding: 18px 16px 18px 18px; border: 1px solid var(--hub-line); border-left: 5px solid var(--audit-tone);
  border-radius: 16px; background: var(--hub-surface); box-shadow: 0 7px 22px rgba(15,23,42,.055);
}
.audit-event-card.severity-success { --audit-tone: var(--hub-green); }
.audit-event-card.severity-attention { --audit-tone: #b15c00; }
.audit-event-card.severity-critical { --audit-tone: var(--hub-red); }
.audit-event-icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--audit-tone) 10%, var(--hub-surface)); color: var(--audit-tone); }
.audit-event-icon .hub-icon { width: 23px; height: 23px; }
.audit-event-main { min-width: 0; }
.audit-event-main h2 { margin: 5px 0 2px; font-size: 1.03rem; font-weight: 850; letter-spacing: -.02em; }
.audit-event-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.audit-category-badge, .audit-severity-badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: var(--hub-soft); color: var(--hub-muted); font-size: .64rem; font-weight: 850; }
.audit-severity-badge { background: color-mix(in srgb, var(--audit-tone) 10%, var(--hub-surface)); color: var(--audit-tone); }
.audit-event-summary { max-width: 850px; margin: 0; color: var(--hub-ink); font-size: .88rem; overflow-wrap: anywhere; }
.audit-event-subject { margin: 5px 0 0; color: var(--hub-muted); font-size: .76rem; overflow-wrap: anywhere; }
.audit-event-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 10px; color: var(--hub-muted); font-size: .7rem; }
.audit-event-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.audit-event-meta .hub-icon { width: 15px; height: 15px; }
.audit-event-meta strong { color: var(--hub-ink); }
.audit-event-time { padding-top: 3px; color: var(--hub-muted); font-size: .72rem; white-space: nowrap; }
.audit-event-menu { align-self: start; }
.audit-event-dialog { width: min(780px,calc(100% - 28px)); }
.audit-event-dialog .hub-dialog-card > header p { margin: 2px 0 0; color: var(--hub-muted); font-size: .7rem; }
.audit-dialog-body { max-height: min(72vh,720px); overflow-y: auto; }
.audit-dialog-summary { margin: 0 0 17px; padding: 14px 15px; border-left: 4px solid var(--hub-accent); border-radius: 0 11px 11px 0; background: var(--hub-soft); font-weight: 700; overflow-wrap: anywhere; }
.audit-detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
.audit-detail-grid > div { min-width: 0; padding: 12px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-soft); }
.audit-detail-grid dt, .audit-change-list dt, .audit-technical-details dt { color: var(--hub-muted); font-size: .65rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.audit-detail-grid dd, .audit-change-list dd, .audit-technical-details dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.audit-detail-grid dd small { display: block; margin-top: 2px; color: var(--hub-muted); font-size: .7rem; }
.audit-change-list { margin-top: 18px; }
.audit-change-list h3 { margin: 0 0 9px; font-size: .92rem; }
.audit-change-list dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-line); }
.audit-change-list dl > div { min-width: 0; padding: 11px 12px; background: var(--hub-surface); }
.audit-technical-details { margin-top: 18px; border: 1px solid var(--hub-line); border-radius: 11px; background: var(--hub-soft); }
.audit-technical-details > summary { padding: 12px 14px; color: var(--hub-ink); font-size: .78rem; font-weight: 800; }
.audit-technical-details > dl { display: grid; gap: 9px; margin: 0; padding: 0 14px 14px; }
.audit-technical-details dd { font-size: .78rem; }
.audit-technical-details code { color: inherit; }
.audit-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.audit-pagination > span { color: var(--hub-muted); font-size: .78rem; }
.hub-button.disabled, a.hub-button[aria-disabled="true"] { pointer-events: none; opacity: .48; }
@keyframes overflow-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes hub-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.message-actions { margin-top: 7px; font-size: .74rem; }
.message-actions > summary { color: var(--hub-muted); cursor: pointer; font-weight: 800; }
.message-actions form { margin-top: 8px; }
.global-search-page { display: flex; gap: 10px; margin: 0 0 20px; }
.global-search-page .hub-input { flex: 1; min-height: 54px; font-size: 1rem; }
.search-summary { color: var(--hub-muted); font-weight: 750; }
.simple-result-list {
  display: grid; overflow: hidden;
  border-radius: 0 0 calc(var(--hub-radius) - 1px) calc(var(--hub-radius) - 1px);
}
.simple-result-list > a { display: grid; gap: 3px; padding: 15px 18px; border-bottom: 1px solid var(--hub-line); color: var(--hub-ink); text-decoration: none; }
.simple-result-list > a:last-child { border-bottom: 0; }
.simple-result-list > a:hover { background: var(--hub-soft); }
.simple-result-list small { overflow: hidden; color: var(--hub-muted); text-overflow: ellipsis; white-space: nowrap; }
.simple-result-list > p { padding: 18px; color: var(--hub-muted); }
.help-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 16px; }
.help-topic-group { overflow: hidden; border: 1px solid var(--hub-line); border-radius: 17px; background: #fff; box-shadow: 0 9px 24px rgba(15,23,42,.06); }
.help-topic-heading { display: grid; min-height: 92px; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 12px; padding: 16px 17px; border-bottom: 1px solid var(--hub-line); background: var(--hub-soft); }
.help-topic-heading > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: #fff; color: var(--hub-brand); box-shadow: 0 2px 8px rgba(15,23,42,.06); }
.help-topic-heading .hub-icon { width: 23px; height: 23px; }
.help-topic-heading h2 { margin: 0; font-size: .96rem; }
.help-topic-heading p { margin: 3px 0 0; color: var(--hub-muted); font-size: .72rem; }
.help-topic-items details { border-bottom: 1px solid var(--hub-line); background: #fff; }
.help-topic-items details:last-child { border-bottom: 0; }
.help-topic-items summary { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; list-style: none; cursor: pointer; font-size: .82rem; font-weight: 850; line-height: 1.35; }
.help-topic-items summary::-webkit-details-marker { display: none; }
.help-topic-items summary::after { content: "+"; display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: var(--hub-soft); color: var(--hub-brand); font-size: 1.15rem; line-height: 1; transition: transform .16s ease, background .16s ease; }
.help-topic-items details[open] summary::after { background: color-mix(in srgb,var(--hub-accent) 22%,#fff); transform: rotate(45deg); }
.help-topic-items summary:hover { background: color-mix(in srgb,var(--hub-soft) 72%,#fff); }
.help-topic-items details > div { padding: 0 16px 17px; color: var(--hub-muted); font-size: .81rem; }
.help-topic-items details > div p { margin: 0; }
.help-support-card { margin-top: 18px; }
.help-support-card .hub-card-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.help-support-card h2 { margin: 0; font-size: 1.15rem; }
.help-support-card p { margin: 4px 0 0; color: var(--hub-muted); }
.help-support-card .hub-button { max-width: 100%; overflow-wrap: anywhere; }
.notification-list-card { overflow: hidden; isolation: isolate; }
.notification-item { position: relative; border-bottom: 1px solid var(--hub-line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item form:first-child { min-width: 0; }
.notification-row { width: 100%; padding-right: 70px; border: 0; text-align: left; }
.notification-item > form:last-child { position: absolute; z-index: 2; top: 12px; right: 12px; }
.notification-dismiss {
  display: grid; width: 40px; height: 40px; padding: 0; place-items: center;
  border: 1px solid transparent; border-radius: 12px; background: color-mix(in srgb, var(--hub-surface) 72%, transparent);
  color: var(--hub-muted); box-shadow: 0 1px 3px rgba(15,23,42,.04); transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.notification-dismiss .hub-icon { width: 18px; height: 18px; stroke-width: 2.25; }
.notification-dismiss:hover { border-color: color-mix(in srgb, var(--hub-red) 24%, var(--hub-line)); background: color-mix(in srgb, var(--hub-red) 9%, var(--hub-surface)); color: var(--hub-red); }
.notification-dismiss:active { transform: scale(.94); }
.message-report-lock { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; color: var(--hub-muted); font-size: .76rem; }
.message-report-lock .hub-icon { width: 17px; height: 17px; }
.moderation-report-list { display: grid; gap: 18px; }
.moderation-report-card { overflow: hidden; }
.moderation-report-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 21px; border-bottom: 1px solid var(--hub-line); background: var(--hub-soft); }
.moderation-report-header > div { min-width: 0; }
.moderation-report-header h2 { margin: 7px 0 0; font-size: 1.05rem; }
.moderation-report-header time { flex: 0 0 auto; color: var(--hub-muted); font-size: .75rem; }
.moderation-report-body { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(270px,.8fr); }
.moderation-content-panel, .moderation-reason-panel { padding: 21px; }
.moderation-reason-panel { border-left: 1px solid var(--hub-line); background: color-mix(in srgb, var(--hub-soft) 72%, var(--hub-surface)); }
.moderation-section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.moderation-section-heading > .hub-icon { width: 22px; height: 22px; color: var(--hub-brand); }
.moderation-section-heading > div { display: grid; }
.moderation-section-heading small { color: var(--hub-muted); font-size: .72rem; }
.moderation-content-snapshot { min-height: 86px; padding: 16px; border: 1px solid var(--hub-line); border-radius: 13px; background: var(--hub-surface); color: var(--hub-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-content-snapshot.unavailable { color: var(--hub-muted); font-style: italic; }
.moderation-attachments { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 10px; margin-top: 12px; }
.moderation-media { display: grid; gap: 6px; color: var(--hub-muted); font-size: .72rem; text-decoration: none; }
.moderation-media img, .moderation-media video { display: block; width: 100%; height: 180px; border: 1px solid var(--hub-line); border-radius: 11px; background: #081018; object-fit: contain; }
.moderation-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 15px 0 0; }
.moderation-meta > div { display: grid; }
.moderation-meta dt { color: var(--hub-muted); font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.moderation-meta dd { margin: 0; font-size: .8rem; font-weight: 750; overflow-wrap: anywhere; }
.moderation-reason-panel > p { margin: 0; padding: 14px; border-left: 3px solid var(--hub-accent); border-radius: 0 10px 10px 0; background: var(--hub-surface); white-space: pre-wrap; overflow-wrap: anywhere; }
.moderation-actions { display: grid; gap: 9px; margin-top: 18px; }
.moderation-actions .hub-button { width: 100%; }

.public-header {
  display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px clamp(18px,5vw,70px);
  background: linear-gradient(135deg, var(--hub-brand), var(--hub-brand-2)); color: #fff;
}
.public-brand img { width: 50px; height: 50px; }
.public-header nav { display: flex; align-items: center; gap: 18px; }
.public-header nav > a:not(.hub-button) { color: #fff; font-weight: 800; text-decoration: none; }
.public-main { min-height: calc(100vh - 150px); }
.public-footer { display: flex; min-height: 68px; align-items: center; justify-content: center; gap: 22px; padding: 15px; color: var(--hub-muted); font-size: .78rem; }
.public-footer a { color: inherit; }
.public-hero { position: relative; overflow: hidden; min-height: calc(100vh - 150px); display: grid; place-items: center; padding: 70px clamp(18px,5vw,70px); background: linear-gradient(155deg, #f8fafc 0%, #eef3f9 55%, #fff7e8 100%); }
.public-hero::before, .public-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); opacity: .7; }
.public-hero::before { width: 460px; height: 460px; top: -230px; right: -150px; background: color-mix(in srgb, var(--hub-accent) 30%, transparent); }
.public-hero::after { width: 360px; height: 360px; bottom: -240px; left: -100px; background: color-mix(in srgb, var(--hub-brand) 16%, transparent); }
.public-hero-grid { position: relative; z-index: 1; width: min(1150px,100%); display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: clamp(35px,7vw,90px); align-items: center; }
.public-hero-copy .eyebrow { margin: 0 0 15px; color: #8a4b00; font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.public-hero-copy h1 { max-width: 760px; margin: 0; font-size: clamp(2.35rem,6vw,4.9rem); font-weight: 850; letter-spacing: -.065em; line-height: .98; }
.public-hero-copy h1 span { color: var(--hub-brand); }
.public-hero-copy > p { max-width: 650px; margin: 24px 0; color: #536177; font-size: clamp(1rem,2vw,1.22rem); }
.public-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.public-feature-card { position: relative; padding: 24px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 28px 70px rgba(15,23,42,.13); backdrop-filter: blur(12px); }
.public-feature-card > strong { display: block; margin-bottom: 15px; color: var(--hub-muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.public-feature-list { display: grid; gap: 10px; }
.public-feature { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--hub-line); border-radius: 13px; background: #fff; }
.public-feature span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--hub-brand); color: #fff; font-size: .75rem; font-weight: 900; }
.public-feature span .hub-icon { width: 22px; height: 22px; }
.public-feature strong { display: block; font-size: .87rem; }
.public-feature small { display: block; color: var(--hub-muted); font-size: .72rem; }
.section-title { margin: 0; font-size: 1rem; }
.field-help { margin: 5px 0 0; color: var(--hub-muted); font-size: .82rem; }
.hub-badge.access { background: #f1efff; color: #5925dc; }

.document-collections { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 0 0 18px; }
.document-collection { display: grid; min-height: 124px; align-content: center; gap: 4px; padding: 17px; border: 1px solid var(--hub-line); border-radius: var(--hub-radius); background: #fff; color: var(--hub-ink); text-decoration: none; box-shadow: var(--hub-shadow); }
.document-collection > span { display: grid; width: 36px; height: 36px; margin-bottom: 5px; place-items: center; border-radius: 10px; background: var(--hub-soft); color: var(--hub-brand); font-size: .74rem; font-weight: 900; }
.document-collection > span .hub-icon { width: 21px; height: 21px; }
.document-collection strong { font-size: .9rem; }
.document-collection small { color: var(--hub-muted); font-size: .7rem; }
.document-collection:hover, .document-collection.is-active { border-color: color-mix(in srgb, var(--hub-accent) 72%, #d0d5dd); box-shadow: 0 9px 24px rgba(15,23,42,.08); transform: translateY(-1px); }
.document-collection.is-active > span { background: var(--hub-accent); color: #111827; }
.role-guide { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; margin-bottom: 18px; overflow: hidden; }
.role-guide > div { display: grid; gap: 4px; padding: 17px; border-right: 1px solid var(--hub-line); }
.role-guide > div:last-child { border-right: 0; }
.role-guide small { color: var(--hub-muted); font-size: .75rem; }

.public-news-section { padding: 65px clamp(18px,5vw,70px); background: #fff; }
.public-section-heading { display: flex; max-width: 1150px; margin: 0 auto 22px; align-items: end; justify-content: space-between; gap: 20px; }
.public-section-heading .eyebrow, .public-page-heading .eyebrow { margin: 0 0 7px; color: #8a4b00; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.public-section-heading h2 { margin: 0; font-size: clamp(1.8rem,4vw,2.7rem); letter-spacing: -.04em; }
.public-section-heading > a, .public-news-card > a, .public-news-byline a, .public-back-link { color: var(--hub-brand); font-weight: 850; }
.public-news-grid { display: grid; max-width: 1150px; margin: 0 auto; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.public-news-card { display: grid; align-content: start; gap: 12px; padding: 23px; border: 1px solid var(--hub-line); border-radius: 18px; background: #fff; box-shadow: var(--hub-shadow); }
.public-news-card > div:first-child, .public-news-meta, .public-news-byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.public-news-card time, .public-news-byline { color: var(--hub-muted); font-size: .74rem; }
.public-news-card h2, .public-news-card h3 { margin: 0; line-height: 1.16; letter-spacing: -.025em; }
.public-news-card h2 a, .public-news-card h3 a { color: inherit; text-decoration: none; }
.public-news-card p { margin: 0; color: var(--hub-muted); white-space: pre-line; }
.public-page-wrap, .public-article-wrap { width: min(960px,calc(100% - 36px)); margin: 0 auto; padding: 55px 0 70px; }
.public-page-heading { max-width: 760px; margin-bottom: 26px; }
.public-page-heading h1 { margin: 0; font-size: clamp(2.1rem,6vw,3.8rem); letter-spacing: -.055em; }
.public-page-heading > p:last-child { color: var(--hub-muted); font-size: 1.05rem; }
.public-news-filter { display: grid; grid-template-columns: minmax(220px,1fr) minmax(180px,.4fr) auto; gap: 10px; margin-bottom: 22px; }
.public-news-list { display: grid; gap: 15px; }
.public-news-card-wide { padding: clamp(20px,4vw,31px); }
.public-news-byline { margin-top: 3px; padding-top: 14px; border-top: 1px solid var(--hub-line); }
.public-empty-state { padding: 55px 20px; border: 1px dashed var(--hub-line); border-radius: 18px; text-align: center; }
.public-empty-state > span { display: grid; width: 52px; height: 52px; margin: 0 auto 12px; place-items: center; border-radius: 15px; background: var(--hub-accent); font-weight: 900; }
.public-empty-state > span .hub-icon { width: 28px; height: 28px; }
.public-empty-state h2 { margin: 0; }
.public-empty-state p { color: var(--hub-muted); }
.public-article-wrap { width: min(850px,calc(100% - 36px)); }
.public-back-link { display: inline-block; margin-bottom: 22px; }
.public-article { overflow: hidden; border: 1px solid var(--hub-line); border-radius: 22px; background: #fff; box-shadow: var(--hub-shadow); }
.public-article > header { padding: clamp(24px,6vw,52px); background: linear-gradient(145deg,#f8fafc,#fff7e8); }
.public-article h1 { margin: 15px 0; font-size: clamp(2rem,6vw,3.5rem); line-height: 1.04; letter-spacing: -.055em; }
.public-article header p { margin: 0; color: var(--hub-muted); }
.public-article-body { padding: clamp(24px,6vw,52px); font-size: 1.04rem; line-height: 1.8; white-space: pre-line; }
.public-member-callout { display: flex; margin-top: 18px; padding: 20px; align-items: center; justify-content: space-between; gap: 18px; border-radius: 16px; background: var(--hub-brand); color: #fff; }
.public-member-callout p { margin: 3px 0 0; opacity: .8; font-size: .8rem; }

.auth-page { display: grid; min-height: calc(100vh - 150px); place-items: center; padding: 55px 18px; background: linear-gradient(150deg, #f8fafc, #eef3f9 62%, #fff8ea); }
.auth-card { width: min(500px,100%); padding: clamp(24px,5vw,39px); border: 1px solid var(--hub-line); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.13); }
.auth-card h1 { margin: 0 0 7px; font-size: 1.8rem; letter-spacing: -.04em; }
.auth-card > p { margin: 0 0 24px; color: var(--hub-muted); }
.auth-card .form-floating { margin-bottom: 14px; }
.auth-card .btn-primary { width: 100%; min-height: 48px; border: 0; border-radius: 11px; background: var(--hub-accent); color: #111827; font-weight: 850; }
.auth-card .auth-links { display: grid; gap: 7px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hub-line); text-align: center; font-size: .84rem; }

@media (max-width: 1050px) {
  .hub-grid .span-4 { grid-column: span 6; }
  .hub-grid .span-5, .hub-grid .span-7 { grid-column: span 12; }
  .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .split-layout { grid-template-columns: 1fr; }
  .public-hero-grid { grid-template-columns: 1fr; }
  .public-feature-card { max-width: 700px; }
  .help-grid { grid-template-columns: 1fr; }
  .help-topic-heading { min-height: 0; }
  .admin-nav { grid-template-columns: 1fr; }
  .admin-nav-heading { min-height: 0; }
  .admin-nav-items { grid-template-rows: none; grid-auto-rows: auto; }
  .admin-link { min-height: 104px; }
  .document-collections { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .role-guide { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .role-guide > div:nth-child(2) { border-right: 0; }
  .role-guide > div:nth-child(-n+2) { border-bottom: 1px solid var(--hub-line); }
  .audit-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .audit-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 780px), (pointer: coarse) {
  :root { --hub-topbar: 62px; }
  html { font-size: calc(16px * var(--hub-text-scale)); }
  body.hub-authenticated { padding-bottom: 72px; }
  .hub-topbar { left: 0; height: var(--hub-topbar); padding: 0 13px; }
  .hub-menu-button { display: grid; width: 44px; height: 44px; place-content: center; gap: 4px; border: 1px solid var(--hub-line); border-radius: 12px; background: #fff; }
  .hub-menu-button span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--hub-brand); }
  .hub-topbar-brand { display: flex; min-width: 0; flex: 1; }
  .hub-topbar-brand img, .hub-topbar-brand .hub-logo-fallback { width: 40px; height: 40px; border-radius: 11px; }
  .hub-topbar-brand strong { font-size: .9rem; }
  .hub-topbar-brand small { font-size: .65rem; }
  .hub-topbar-actions { margin: 0; gap: 8px; }
  .hub-icon-link, .hub-avatar-link { width: 42px; height: 42px; }
  .hub-avatar-link { display: none; }
  .hub-sidebar { width: min(330px, calc(100vw - 35px)); transform: translateX(-105%); transition: transform .2s ease; }
  .hub-sidebar.is-open { transform: translateX(0); }
  .hub-sidebar-heading { min-height: 88px; padding: 18px; }
  .hub-sidebar-close { display: grid; position: absolute; top: 18px; right: 12px; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; }
  .hub-sidebar-close .hub-icon { width: 22px; height: 22px; }
  .hub-sidebar-brand { padding-right: 43px; }
  .hub-sidebar-backdrop { position: fixed; z-index: 110; inset: 0; display: block; visibility: hidden; background: rgba(15,23,42,.58); opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
  .hub-sidebar-backdrop.is-open { visibility: visible; opacity: 1; }
  body.sidebar-open { overflow: hidden; }
  .hub-main { margin-left: 0; padding: calc(var(--hub-topbar) + 22px) 13px 28px; }
  .hub-mobile-nav { position: fixed; z-index: 95; right: 0; bottom: 0; left: 0; display: grid; height: calc(68px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5,1fr); padding: 5px 5px env(safe-area-inset-bottom); border-top: 1px solid var(--hub-line); background: rgba(255,255,255,.97); box-shadow: 0 -6px 22px rgba(15,23,42,.08); backdrop-filter: blur(12px); }
  .hub-mobile-nav a, .hub-mobile-nav button { position: relative; display: grid; place-items: center; align-content: center; gap: 1px; border: 0; border-radius: 10px; background: transparent; color: #667085; font-size: .65rem; font-weight: 800; text-decoration: none; }
  .hub-mobile-nav a > span, .hub-mobile-nav button > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; font-size: .7rem; font-weight: 900; }
  .hub-mobile-nav .hub-icon { width: 20px; height: 20px; }
  .hub-mobile-nav a.is-active { color: var(--hub-brand); }
  .hub-mobile-nav a.is-active > span { background: var(--hub-accent); color: #111827; }
  .hub-mobile-nav b { top: 3px; right: calc(50% - 23px); }
  .page-heading { align-items: stretch; flex-direction: column; gap: 13px; margin-bottom: 18px; }
  .page-heading-actions .hub-button { flex: 1; }
  .profile-photo-editor { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hub-grid { gap: 13px; }
  .hub-grid .span-4, .hub-grid .span-5, .hub-grid .span-6, .hub-grid .span-7, .hub-grid .span-8 { grid-column: 1 / -1; }
  .hub-card-header, .hub-card-body { padding: 16px; }
  .settings-nav { grid-template-columns: 1fr; gap: 12px; }
  .settings-option { min-height: 116px; padding: 17px; }
  .backup-list > div .hub-button { grid-column: 1 / -1; width: 100%; }
  .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .quick-action { min-height: 112px; padding: 14px; }
  .feed-card-main { padding: 17px; }
  .feed-card-footer { padding: 9px 13px; }
  body.hub-thread-layout { padding-bottom: 0; }
  body.hub-thread-layout .hub-main { height: calc(100vh - 68px - env(safe-area-inset-bottom)); height: calc(100dvh - 68px - env(safe-area-inset-bottom)); }
  .thread-messages { padding: 14px; }
  .message { max-width: 88%; }
  .thread-composer { padding: 10px; }
  .thread-composer-main { gap: 7px; }
  .thread-composer-actions { gap: 5px; }
  .message-compose-icon-button { width: 42px; height: 42px; }
  .thread-composer .hub-button { width: auto; min-width: 74px; }
  .file-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; }
  .file-row > span { display: none; }
  .file-actions { grid-column: 2; grid-row: 1; }
  .feed-filter-toolbar { grid-template-columns: 1fr; }
  .global-search-page { align-items: stretch; flex-direction: column; }
  .help-support-card .hub-card-body { align-items: stretch; flex-direction: column; }
  .help-support-card .hub-button { width: 100%; }
  .moderation-report-header { align-items: stretch; flex-direction: column; gap: 8px; }
  .moderation-report-body { grid-template-columns: 1fr; }
  .moderation-reason-panel { border-top: 1px solid var(--hub-line); border-left: 0; }
  .action-menu-panel { position: fixed; top: 78px; right: 13px; left: 13px; width: auto; }
  .hub-dialog-card > footer { align-items: stretch; flex-direction: column-reverse; }
  .hub-dialog-card > footer .hub-button { width: 100%; }
  .audit-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audit-filter-heading, .audit-results-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .audit-event-card { grid-template-columns: 46px minmax(0,1fr) 42px; gap: 11px; padding: 15px 12px 15px 14px; }
  .audit-event-icon { width: 42px; height: 42px; }
  .audit-event-time { grid-column: 2; padding: 0; }
  .audit-event-menu { grid-column: 3; grid-row: 1; }
  .audit-detail-grid, .audit-change-list dl { grid-template-columns: 1fr; }
  .audit-pagination { justify-content: space-between; gap: 8px; }
  .audit-pagination > span { text-align: center; }
  .public-header { min-height: 70px; padding: 10px 14px; }
  .public-brand img, .public-brand .hub-logo-fallback { width: 43px; height: 43px; border-radius: 11px; }
  .public-brand strong { font-size: .88rem; }
  .public-brand small { font-size: .65rem; }
  .public-header nav > a:not(.hub-button) { display: none; }
  .public-header .public-register { display: none; }
  .public-hero { padding: 48px 18px; }
  .public-hero-copy h1 { font-size: clamp(2.35rem,13vw,3.65rem); }
  .public-hero-actions .hub-button { width: 100%; }
  .public-feature-card { padding: 17px; }
  .public-news-grid { grid-template-columns: 1fr; }
  .public-news-section { padding: 45px 18px; }
  .public-news-filter { grid-template-columns: 1fr; }
  .public-member-callout { align-items: stretch; flex-direction: column; }
  .public-footer { flex-direction: column; gap: 4px; }
  .post-style-controls { grid-template-columns: 1fr; }
  .post-existing-media-item { grid-template-columns: 1fr; }
  .post-existing-media-preview img, .post-existing-media-preview video { height: 220px; }
  .feed-media-item img, .feed-media-item video { height: clamp(190px,58vw,330px); }
}

@media (max-width: 430px) {
  .hub-topbar-brand small { display: none; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .page-heading h1 { font-size: 1.7rem; }
  .hub-button { min-height: 48px; }
  .people-grid { grid-template-columns: 1fr; }
  .document-collections { grid-template-columns: 1fr 1fr; }
  .document-collection { min-height: 112px; }
  .role-guide { grid-template-columns: 1fr; }
  .role-guide > div { border-right: 0; border-bottom: 1px solid var(--hub-line); }
  .role-guide > div:last-child { border-bottom: 0; }
  .public-section-heading { align-items: start; flex-direction: column; }
  .post-composer-section { padding: 14px; }
  .post-upload-item { grid-template-columns: 1fr; }
  .post-upload-item > img, .post-upload-item > video { width: 100%; height: 180px; }
  .feed-media-gallery { grid-template-columns: 1fr; }
  .feed-media-gallery .feed-media-item { grid-column: 1; }
  .audit-summary-grid, .audit-filter-grid { grid-template-columns: 1fr; }
  .audit-filter-search { grid-column: auto; }
  .audit-filter-actions .hub-button { flex: 1; }
  .audit-event-meta { display: grid; }
  .audit-pagination .hub-button { padding-right: 10px; padding-left: 10px; }
}

@media (max-width: 680px) {
  .document-search-toolbar { grid-template-columns: 1fr; }
  .document-search-toolbar .hub-button { width: 100%; }
  .folder-card-header { align-items: stretch; flex-direction: column; }
  .folder-card-actions { display: grid; grid-template-columns: 1fr; }
  .folder-card-header .hub-button { width: 100%; }
  .folder-danger-zone { align-items: stretch; flex-direction: column; }
  .folder-danger-zone .hub-button, .folder-manage-rename-form .hub-button { width: 100%; }
  .document-upload-grid { grid-template-columns: 1fr; }
  .document-upload-grid .span-full { grid-column: auto; }
  .document-file-picker { grid-template-columns: 1fr; }
  .document-file-picker-button { width: 100%; }
  .document-file-picker-name { padding: 2px 7px 5px; text-align: center; }
  .text-size-setting-heading { align-items: stretch; flex-direction: column; }
  .text-size-setting-actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html.hub-page-booting .hub-page-stage { opacity: 1; transform: none; }
}

html.hub-high-contrast { --hub-line: #7a8495; --hub-muted: #3f4b5d; }
html.hub-reduced-motion *, html.hub-reduced-motion *::before, html.hub-reduced-motion *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
html.hub-reduced-motion.hub-page-booting .hub-page-stage { opacity: 1; transform: none; }
.brand-preview { display: block; max-width: 220px; max-height: 100px; margin: 8px 0; padding: 8px; border: 1px solid var(--hub-line); border-radius: 10px; }


@media print {
  .hub-topbar, .hub-sidebar, .hub-mobile-nav, .page-heading-actions { display: none !important; }
  .hub-main { margin: 0; padding: 0; }
  .hub-card, .feed-card { box-shadow: none; }
}
