:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #152033;
  --muted: #667085;
  --line: #dfe4ea;
  --line-dark: #cad2dc;
  --blue: #3157d5;
  --blue-dark: #2344b0;
  --coral: #ed5a50;
  --violet: #7957d5;
  --gold: #e0a023;
  --green: #318c69;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 28px rgba(16, 24, 40, 0.04);
  --font-body: "Manrope", system-ui, sans-serif;
  --font-display: "Unbounded", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; color: white; background: var(--blue); border-radius: 6px;
}
.skip-link:focus { top: 10px; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: 68px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.topbar__inner { max-width: 1512px; height: 100%; margin: auto; padding: 0 28px; display: flex; align-items: center; gap: 34px; }

.brand { display: grid; grid-template-columns: 34px auto; column-gap: 10px; text-decoration: none; color: var(--ink); min-width: 190px; }
.brand__mark {
  grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 38px;
  color: #fff; background: var(--ink); font-family: var(--font-display); font-size: 17px;
  border-radius: 4px 4px 10px 4px; transform: rotate(-2deg);
}
.brand__name { align-self: end; font-family: var(--font-display); font-size: 16px; font-weight: 800; letter-spacing: -.5px; line-height: 18px; }
.brand__dot { color: var(--coral); }
.brand__tagline { align-self: start; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; line-height: 13px; }

.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 4px; }
.nav-link { position: relative; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.nav-link:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); }
.nav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; background: var(--blue); border-radius: 3px 3px 0 0; }

.search { height: 38px; flex: 1; max-width: 360px; margin-left: auto; padding: 0 9px 0 12px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line-dark); border-radius: 7px; background: var(--surface-soft); transition: .2s; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 87, 213, .1); background: white; }
.search svg { width: 17px; color: #8791a1; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search kbd { border: 1px solid var(--line-dark); border-bottom-width: 2px; border-radius: 4px; padding: 0 6px 1px; color: #8993a2; background: white; font-size: 11px; }

.top-actions { display: flex; align-items: center; gap: 9px; }
.notification-control { position: relative; }
.icon-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; cursor: pointer; }
.icon-button:hover, .profile-button:hover { background: var(--surface-soft); }
.notification-dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); border: 2px solid white; }
.notification-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 61; width: 330px; border: 1px solid var(--line-dark); border-radius: 9px; background: white; box-shadow: 0 18px 50px rgba(16,24,40,.18); overflow: hidden; }
.notification-menu__heading { height: 47px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.notification-menu__heading strong { font-family: var(--font-display); font-size: 10px; }
.notification-menu__heading button { padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 7px; font-weight: 800; cursor: pointer; }
.notification-list { max-height: 350px; overflow: auto; }
.notification-item { padding: 12px 14px; display: grid; grid-template-columns: 7px 1fr; gap: 9px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notification-item:hover { background: #f8f9fb; }
.notification-item__dot { width: 7px; height: 7px; margin-top: 3px; border-radius: 50%; background: var(--blue); }
.notification-item.is-read .notification-item__dot { background: #d6dbe3; }
.notification-item p { margin: 0; color: #4e5b6e; font-size: 9px; line-height: 1.45; }
.notification-item time { display: block; margin-top: 4px; color: #939dac; font-size: 7px; }
.notification-empty { margin: 0; padding: 30px 20px; color: #8e98a7; font-size: 9px; text-align: center; }

.post-card h2[role="link"] { cursor: pointer; transition: color .18s; }
.post-card:not([data-dynamic="true"]) { display: none; }
.post-card h2[role="link"]:hover, .post-card h2[role="link"]:focus-visible { color: var(--blue); outline: 0; }
.dynamic-post-image { width: 100%; max-height: 430px; margin-top: 18px; display: block; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.story-card.story-card--feed { grid-template-columns: 165px minmax(0,1fr); }
.feed-thumbnail { min-height: 205px; display: block; overflow: hidden; border-right: 1px solid var(--line); background: #e8ecf2; cursor: pointer; }
.feed-thumbnail__image { width: 100%; height: 100%; min-height: 205px; display: block; object-fit: cover; object-position: center; transition: transform .35s ease; }
.story-card--feed:hover .feed-thumbnail__image { transform: scale(1.025); }
.story-card--feed .story-card__body { min-width: 0; padding: 22px 24px; }
.story-card--feed .story-card__body>p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.load-more-posts { width: 100%; margin: 18px 0 4px; padding: 13px; border: 1px solid var(--line-dark); border-radius: 9px; background: white; color: var(--blue); font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.load-more-posts:hover { border-color: var(--blue); background: #f7f9ff; }
.load-more-posts:disabled { opacity: .65; cursor: wait; }

.composer-upload { position: relative; }
.composer-upload > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.composer-upload > span { min-height: 82px; padding: 14px; display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px; border: 1px dashed var(--line-dark); border-radius: 8px; background: #fafbfc; cursor: pointer; transition: .18s; }
.composer-upload > span:hover { border-color: var(--blue); background: #f5f7ff; }
.composer-upload b { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: #eaf0ff; color: var(--blue); font-size: 22px; }
.composer-upload strong { align-self: end; font-size: 11px; }
.composer-upload small { align-self: start; margin-top: 3px; color: var(--muted); font-size: 8px; }
.composer-image-preview { position: relative; max-height: 230px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #eef1f5; }
.composer-image-preview img { width: 100%; max-height: 230px; display: block; object-fit: contain; }
.composer-image-preview button { position: absolute; top: 9px; right: 9px; padding: 7px 10px; border: 0; border-radius: 6px; background: rgba(21,32,51,.86); color: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.image-cropper { width: min(820px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 13px; background: transparent; box-shadow: 0 28px 100px rgba(10,20,40,.34); }
.image-cropper::backdrop { background: rgba(16,24,40,.68); backdrop-filter: blur(5px); }
.image-cropper__panel { padding: 23px; border-radius: 13px; background: white; }
.image-cropper__heading { display: flex; align-items: flex-start; justify-content: space-between; }
.image-cropper__heading h2 { margin: 6px 0 4px; font-family: var(--font-display); font-size: 18px; }.image-cropper__heading p { margin: 0; color: var(--muted); font-size: 9px; }.image-cropper__heading>button { border: 0; background: transparent; color: #7f8998; font-size: 26px; cursor: pointer; }
.crop-stage { position: relative; height: min(430px, 48vh); margin-top: 18px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: #111722; user-select: none; touch-action: none; }
.crop-stage canvas { max-width: 100%; max-height: 100%; display: block; box-shadow: 0 0 0 999px rgba(0,0,0,.14); cursor: grab; }.crop-stage.is-dragging canvas { cursor: grabbing; }
.crop-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,transparent 33.2%,rgba(255,255,255,.35) 33.3%,rgba(255,255,255,.35) 33.5%,transparent 33.6%,transparent 66.4%,rgba(255,255,255,.35) 66.5%,rgba(255,255,255,.35) 66.7%,transparent 66.8%),linear-gradient(transparent 33.2%,rgba(255,255,255,.35) 33.3%,rgba(255,255,255,.35) 33.5%,transparent 33.6%,transparent 66.4%,rgba(255,255,255,.35) 66.5%,rgba(255,255,255,.35) 66.7%,transparent 66.8%); opacity:.55; }
.crop-controls { margin-top: 15px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 11px; }.crop-controls label { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }.crop-controls select,.crop-controls input { width: 100%; margin-top: 7px; }.crop-controls select { height: 35px; padding: 0 8px; border: 1px solid var(--line-dark); border-radius: 6px; background:white; font-size:9px; text-transform:none; }.crop-controls input { accent-color: var(--blue); }
.image-cropper__footer { margin-top: 18px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }.image-cropper__footer>span { color: var(--muted); font-size: 8px; }.image-cropper__footer>div { display:flex; gap:8px; }
.rich-editor { overflow: hidden; border: 1px solid var(--line-dark); border-radius: 9px; background: white; }
.rich-editor:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }
.rich-toolbar { padding: 7px; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); background: #f7f8fb; }
.rich-toolbar button,.rich-toolbar select { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #40506a; font-size: 9px; cursor: pointer; }
.rich-toolbar button:hover { border-color: var(--blue); color: var(--blue); }.rich-toolbar>span { width: 1px; height: 21px; margin: 0 2px; background: var(--line-dark); }
.rich-editor__surface { min-height: 220px; max-height: 470px; padding: 18px; overflow-y: auto; outline: 0; color: #28364b; font-size: 13px; line-height: 1.75; }
.rich-editor__surface p { margin: 0 0 12px; }.rich-editor__surface h2 { margin: 18px 0 8px; font-size: 20px; }.rich-editor__surface blockquote { margin: 14px 0; padding: 10px 14px; border-left: 3px solid var(--blue); background: #f5f7ff; }
.rich-editor__surface figure { width: 100%; margin: 18px auto; }.rich-editor__surface figure[data-image-size="small"] { max-width: 42%; }.rich-editor__surface figure[data-image-size="medium"] { max-width: 68%; }.rich-editor__surface figure[data-image-size="full"] { max-width: 100%; }.rich-editor__surface figure img { width: 100%; max-height: 420px; display: block; object-fit: contain; border-radius: 7px; background: #edf0f4; }.rich-editor__surface figcaption { padding: 7px 4px; color: var(--muted); font-size: 9px; text-align: center; }
.account-menu__stats--author { grid-template-columns: repeat(3,1fr); }.author-stats { margin-bottom: 14px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 8px; background: #f8f9fb; }.author-stats div { padding: 12px 7px; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--line); }.author-stats div:last-child { border: 0; }.author-stats strong { font-family: var(--font-display); font-size: 14px; }.author-stats span { margin-top: 3px; color: var(--muted); font-size: 7px; text-transform: uppercase; }

.messages-view { max-width: 980px; }
.messages-shell { min-height: 590px; display: grid; grid-template-columns: 310px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: var(--shadow); overflow: hidden; }
.messages-sidebar { border-right: 1px solid var(--line); background: #fafbfc; }
.message-search { padding: 16px; display: block; border-bottom: 1px solid var(--line); }
.message-search > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.message-search input { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line-dark); border-radius: 7px; outline: 0; background: white; font-size: 11px; }
.message-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }
.message-search-results { position: absolute; z-index: 4; width: 309px; max-height: 270px; overflow: auto; border: 1px solid var(--line-dark); background: white; box-shadow: 0 14px 35px rgba(16,24,40,.15); }
.message-search-results > p { margin: 0; padding: 22px; color: var(--muted); font-size: 10px; text-align: center; }
.message-search-user,.message-thread { width: 100%; padding: 12px 14px; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.message-search-user:hover,.message-thread:hover,.message-thread.is-active { background: #eef2ff; }
.message-search-user .avatar,.message-thread .avatar { width: 36px; height: 36px; }
.message-search-user > span:nth-child(2),.message-thread > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.message-search-user strong,.message-thread strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.message-search-user small,.message-thread small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.message-thread { grid-template-columns: 36px minmax(0,1fr) auto; background: transparent; }
.message-thread__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: #9aa3b1; font-size: 7px; }
.message-thread__meta b { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: 9px; background: var(--blue); color: white; font-size: 8px; }
.message-list-empty { padding: 48px 22px; color: var(--muted); text-align: center; }
.message-list-empty span { font-size: 28px; }.message-list-empty p { font-size: 10px; line-height: 1.5; }
.message-room { min-width: 0; }
.message-room-empty { height: 100%; min-height: 500px; padding: 30px; display: grid; place-items: center; align-content: center; color: var(--muted); text-align: center; }
.message-room-empty > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #eef2ff; color: var(--blue); font-size: 25px; }
.message-room-empty h2 { margin: 15px 0 5px; color: var(--ink); font-family: var(--font-display); font-size: 14px; }
.message-room-empty p { max-width: 340px; margin: 0; font-size: 10px; line-height: 1.6; }
.message-conversation { height: 590px; display: grid; grid-template-rows: 63px minmax(0,1fr) auto; }
.message-conversation > header { padding: 0 18px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.message-conversation > header div { display: flex; flex-direction: column; }.message-conversation > header small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.message-log { padding: 20px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; background: linear-gradient(#fafbfc,#f6f8fb); }
.message-bubble { max-width: 72%; align-self: flex-start; padding: 10px 12px 7px; border: 1px solid var(--line); border-radius: 6px 14px 14px 14px; background: white; box-shadow: 0 2px 8px rgba(16,24,40,.04); }
.message-bubble.is-mine { align-self: flex-end; border-color: #bfcdf9; border-radius: 14px 6px 14px 14px; background: #e9efff; }
.message-bubble p { margin: 0; color: #324056; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-bubble time { margin-top: 5px; display: block; color: #8d97a6; font-size: 7px; text-align: right; }
.message-form { padding: 12px; display: grid; grid-template-columns: 1fr 43px; gap: 9px; border-top: 1px solid var(--line); background: white; }
.message-form textarea { max-height: 100px; padding: 11px 12px; resize: vertical; border: 1px solid var(--line-dark); border-radius: 8px; outline: 0; font-size: 11px; }
.message-form textarea:focus { border-color: var(--blue); }.message-form button { border: 0; border-radius: 9px; background: var(--blue); color: white; cursor: pointer; }
.create-button { height: 38px; padding: 0 14px; display: flex; align-items: center; gap: 7px; color: white; border: 0; border-radius: 7px; background: var(--blue); font-weight: 800; cursor: pointer; box-shadow: 0 3px 10px rgba(49, 87, 213, .18); }
.create-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.create-button svg { width: 16px; }
.profile-button { height: 42px; padding: 3px 7px 3px 3px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.profile-name { font-size: 12px; font-weight: 700; }
.chevron { color: var(--muted); }
.account-control { position: relative; }

.avatar { flex: none; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 7px; color: white; background: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .3px; }
.avatar--me { background: linear-gradient(145deg, #3157d5, #712ea2); }
.avatar--red { background: #c94b53; }
.avatar--blue { background: #2f6ba4; }
.avatar--gold { background: #b7791f; }
.avatar--ink { background: #303949; }
.avatar--violet { background: #7651a8; }
.avatar--green { background: #318c69; }
.avatar--guest { color: #6f7a8a; background: #eef1f5; box-shadow: inset 0 0 0 1px var(--line-dark); }
.avatar[data-color="blue"] { background: #2f6ba4; }
.avatar[data-color="violet"] { background: #7651a8; }
.avatar[data-color="red"] { background: #c94b53; }
.avatar[data-color="gold"] { background: #b7791f; }
.avatar[data-color="green"] { background: #318c69; }
.avatar[data-color="ink"] { background: #303949; }

.account-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 285px;
  padding: 14px; border: 1px solid var(--line-dark); border-radius: 9px; background: white;
  box-shadow: 0 18px 50px rgba(16, 24, 40, .17);
}
.account-menu::before { content: ""; position: absolute; top: -6px; right: 18px; width: 10px; height: 10px; border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); background: white; transform: rotate(45deg); }
.account-menu__eyebrow { display: block; margin-bottom: 7px; color: var(--blue); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.account-menu #guestMenu > strong { display: block; font-family: var(--font-display); font-size: 12px; line-height: 1.4; }
.account-menu #guestMenu > p { margin: 7px 0 13px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.account-menu__primary { width: 100%; height: 36px; border: 0; border-radius: 6px; color: white; background: var(--blue); font-size: 9px; font-weight: 800; cursor: pointer; }
.account-menu__user { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-menu__user .avatar { width: 37px; height: 37px; }
.account-menu__user strong, .account-menu__user small { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__user strong { font-size: 10px; }
.account-menu__user small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.role-badge { padding: 4px 6px; border-radius: 4px; color: var(--blue); background: #eef2ff; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.role-badge[data-role="owner"] { color: #9b6510; background: #fff4d8; }
.role-badge[data-role="moderator"] { color: #8146a4; background: #f5eaff; }
.account-menu__stats { padding: 11px 3px; display: flex; gap: 18px; color: #8a94a4; border-bottom: 1px solid var(--line); font-size: 7px; }
.account-menu__stats b { color: var(--ink); font-size: 9px; }
.account-menu__item { width: 100%; height: 36px; padding: 0 7px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 5px; background: transparent; color: #526074; font-size: 9px; font-weight: 700; text-align: left; cursor: pointer; }
.account-menu__item:hover { color: var(--ink); background: #f2f4f7; }
.account-menu__item span { width: 15px; color: #818c9d; text-align: center; }
.account-menu__item--admin { color: var(--blue); }
.account-menu__item--danger { margin-top: 3px; color: #b5444a; border-top: 1px solid var(--line); border-radius: 0 0 5px 5px; }

.newswire { height: 36px; color: #fff; background: var(--ink); border-bottom: 1px solid #0d1421; overflow: hidden; }
.newswire__inner { max-width: 1512px; height: 100%; padding: 0 28px; margin: auto; display: flex; align-items: center; gap: 22px; font-size: 11px; }
.newswire__label { display: flex; align-items: center; gap: 8px; color: #ff8d86; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap; }
.newswire__label span { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(237,90,80,.16); animation: pulse 1.7s infinite; }
.newswire__track { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; color: #e7ebf1; }
.newswire__marquee { width: max-content; display: flex; align-items: center; animation: newswire-scroll var(--ticker-duration, 420s) linear infinite; will-change: transform; }
.newswire__group { display: flex; align-items: center; gap: 18px; padding-right: 18px; }
.newswire__group i { width: 3px; height: 3px; flex: none; border-radius: 50%; background: #6e7786; }
.newswire__track:hover .newswire__marquee { animation-play-state: paused; }
@keyframes newswire-scroll { to { transform: translateX(-50%); } }
.newswire__time { color: #8993a2; white-space: nowrap; font-variant-numeric: tabular-nums; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.75); } }

.page-shell { max-width: 1512px; margin: 0 auto; padding: 28px; display: grid; grid-template-columns: 210px minmax(520px, 760px) minmax(270px, 320px); justify-content: center; gap: 28px; }
.left-sidebar { min-width: 0; }
.sidebar-block { padding-bottom: 19px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.sidebar-label { margin: 0 0 8px; color: #939cab; font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.sidebar-label-row { display: flex; align-items: center; justify-content: space-between; }
.sidebar-label-row button { margin-top: -9px; border: 0; background: transparent; color: var(--muted); font-size: 19px; cursor: pointer; }
.side-link, .topic-link { width: 100%; height: 38px; padding: 0 9px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 6px; background: transparent; color: #536072; font-size: 13px; text-align: left; cursor: pointer; }
.side-link b, .topic-link b { margin-left: auto; color: #9aa3b1; font-size: 10px; font-weight: 700; }
.side-link:hover, .topic-link:hover { color: var(--ink); background: #e9edf2; }
.side-link.is-active { color: var(--blue); background: #e8edfc; font-weight: 800; }
.topic-link.is-active { color: var(--ink); background: white; box-shadow: inset 0 0 0 1px var(--line-dark); font-weight: 800; }
.side-icon { width: 19px; color: #728097; font-size: 16px; text-align: center; }
.side-link.is-active .side-icon { color: var(--blue); }
.topic-dot { width: 8px; height: 8px; margin-left: 5px; border-radius: 3px; background: #aaa; transform: rotate(45deg); }
.topic-dot--red { background: var(--coral); } .topic-dot--blue { background: var(--blue); } .topic-dot--violet { background: var(--violet); } .topic-dot--gold { background: var(--gold); } .topic-dot--green { background: var(--green); }
.person-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; }
.person-profile { min-width: 0; flex: 1; display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.person-profile > span:last-child { min-width: 0; }
.person-profile:hover strong { color: var(--blue); }
.person-message { width: 25px; height: 25px; display: grid; place-items:center; border-radius:5px; color:#71809a; text-decoration:none; background:#eef1f5; font-size:10px; }
.person-message:hover { color:white; background:var(--blue); }
.person-row > span:nth-child(2) { min-width: 0; flex: 1; }
.person-row strong, .person-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-row strong { font-size: 11px; } .person-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.follow-mini { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 5px; background: white; color: var(--blue); cursor: pointer; }
.follow-mini.is-following { color: white; background: var(--blue); border-color: var(--blue); }
.text-link { margin-top: 6px; padding: 0; color: var(--blue); border: 0; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
.side-footer { color: #8d97a6; font-size: 9px; line-height: 1.9; }
.side-footer a { margin-right: 10px; color: #7f8998; text-decoration: none; } .side-footer a:hover { color: var(--blue); } .side-footer strong { font-size: 9px; letter-spacing: .5px; } .side-footer em { font-style: normal; }

.main-content { min-width: 0; }
.feed-heading { height: 64px; margin-bottom: 18px; display: flex; align-items: start; justify-content: space-between; }
.eyebrow { color: var(--blue); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.feed-heading h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(19px, 2vw, 25px); letter-spacing: -.7px; }
.feed-sort { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: #e9edf1; }
.feed-sort button { height: 29px; padding: 0 12px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.feed-sort button.is-active { color: var(--ink); background: white; box-shadow: 0 1px 4px rgba(16,24,40,.08); }

.post-card { border: 1px solid var(--line-dark); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); transition: opacity .2s, transform .2s; overflow: hidden; }
.post-card[hidden] { display: none; }
.featured-card { display: grid; grid-template-columns: 42% 58%; }
.featured-card__visual { position: relative; min-height: 446px; overflow: hidden; background: #dce1e8; border-right: 1px solid var(--line-dark); isolation: isolate; }
.visual-grid { position: absolute; inset: 0; z-index: -5; opacity: .3; background-image: linear-gradient(rgba(21,32,51,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(21,32,51,.08) 1px, transparent 1px); background-size: 24px 24px; }
.flag { position: absolute; top: 0; bottom: 0; z-index: -4; filter: saturate(.85); }
.flag--blue { left: 0; width: 34%; background: #3454a1; } .flag--white { left: 34%; width: 33%; background: #eeeef0; } .flag--red { right: 0; width: 33%; background: #cd4d54; }
.featured-card__visual::after { content: ""; position: absolute; inset: 0; z-index: 4; background: linear-gradient(180deg, rgba(9,18,35,.05), rgba(9,18,35,.26)); mix-blend-mode: multiply; }
.podium { position: absolute; left: 18%; right: 14%; bottom: 0; height: 151px; z-index: 2; background: #1f2a3b; clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
.podium span { position: absolute; top: 26px; left: 50%; width: 62px; height: 62px; transform: translateX(-50%); border: 2px solid #e8cfa4; border-radius: 50%; }
.podium span::after { content: "NF"; position: absolute; inset: 0; display: grid; place-items: center; color: #e8cfa4; font-family: var(--font-display); font-size: 15px; }
.speaker { position: absolute; left: 25%; bottom: 116px; width: 54%; height: 238px; z-index: 1; }
.speaker__head { position: absolute; top: 0; left: 39%; width: 60px; height: 72px; border-radius: 46% 50% 45% 48%; background: #c6a47e; box-shadow: inset 8px 0 0 #6d543d; }
.speaker__head::before { content: ""; position: absolute; left: 5px; top: -8px; width: 53px; height: 21px; border-radius: 60% 50% 20% 20%; background: #6a5847; transform: rotate(5deg); }
.speaker__body { position: absolute; top: 66px; left: 16%; width: 74%; height: 178px; background: #303b4c; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.speaker__body::after { content: ""; position: absolute; top: 0; left: 46%; width: 9px; height: 68%; background: #182231; clip-path: polygon(50% 0, 100% 12%, 65% 100%, 35% 100%, 0 12%); }
.speaker__arm { position: absolute; top: 94px; right: -14px; width: 87px; height: 25px; background: #303b4c; transform: rotate(-28deg); border-radius: 12px; }
.speaker__arm::after { content: ""; position: absolute; right: -15px; top: -1px; width: 26px; height: 25px; border-radius: 50%; background: #c6a47e; }
.visual-stamp { position: absolute; top: 24px; left: 22px; z-index: 7; padding: 6px 10px; color: #fff; border: 2px solid rgba(255,255,255,.86); font-size: 9px; font-weight: 800; letter-spacing: 1.1px; line-height: 1.35; text-align: center; text-transform: uppercase; transform: rotate(-4deg); text-shadow: 0 1px 1px rgba(0,0,0,.2); }
.visual-caption { position: absolute; left: 16px; bottom: 12px; z-index: 7; color: rgba(255,255,255,.8); font-size: 8px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.featured-card__content { padding: 23px 25px 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; color: #8c96a5; font-size: 9px; font-weight: 600; }
.more-button { margin-left: auto; padding: 0 3px; border: 0; background: transparent; color: #798494; font-weight: 800; letter-spacing: 1px; cursor: pointer; }
.category { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 4px; font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.category::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.category--politics { color: #c94145; background: #fff0f0; } .category--tech { color: var(--blue); background: #eef2ff; } .category--society { color: #a16b07; background: #fff7df; } .category--science { color: var(--violet); background: #f3efff; }
.category--culture { color: var(--green); background: #eaf8f2; }
.pending-badge { padding: 4px 6px; border-radius: 4px; color: #936813; background: #fff4d8; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.post-card.is-pending { border-style: dashed; opacity: .88; }
.post-card.is-highlighted { outline: 3px solid rgba(49,87,213,.2); border-color: var(--blue); }
.featured-card h2, .story-card h2 { color: #1b2638; font-family: var(--font-display); letter-spacing: -.6px; }
.featured-card h2 { margin: 16px 0 12px; font-size: clamp(19px, 2.1vw, 26px); line-height: 1.28; }
.lead { margin: 0; color: #536072; font-size: 12px; line-height: 1.65; }
.plausibility { margin: 19px 0; padding: 10px 12px; border: 1px dashed #cad1dc; border-radius: 6px; background: #fafbfc; }
.plausibility__label { display: flex; justify-content: space-between; color: #7c8796; font-size: 8px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.plausibility__label strong { color: var(--coral); }
.plausibility__bar { height: 4px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #e5e9ee; }
.plausibility__bar span { display: block; height: 100%; border-radius: 3px; background: var(--coral); }
.post-author { display: flex; align-items: center; gap: 9px; }
.post-author.dynamic-profile-link { width: max-content; max-width: 100%; color: inherit; text-decoration: none; border-radius: 7px; }
.post-author.dynamic-profile-link:hover strong { color: var(--blue); }
.recommendation-reason{padding:3px 6px;border-radius:4px;background:#f0ecff;color:#6f4bc2;font-size:7px;font-weight:800}
.post-author > span:nth-child(2) { min-width: 0; }
.post-author strong, .post-author small { display: block; }
.post-author strong { font-size: 10px; }
.post-author small { margin-top: 2px; color: #8791a1; font-size: 8px; }
.follow-button { height: 27px; margin-left: auto; padding: 0 10px; border: 1px solid var(--blue); border-radius: 5px; color: var(--blue); background: white; font-size: 9px; font-weight: 800; cursor: pointer; }
.follow-button.is-following { color: white; background: var(--blue); }
.post-actions { margin-top: 17px; padding-top: 13px; display: flex; align-items: center; gap: 5px; border-top: 1px solid var(--line); }
.action-button { height: 30px; padding: 0 8px; display: flex; align-items: center; gap: 6px; border: 0; border-radius: 5px; background: transparent; color: #717d8f; font-size: 9px; font-weight: 700; cursor: pointer; }
.action-button:hover { color: var(--blue); background: #f0f3f7; }
.action-button svg { width: 16px; height: 16px; }
.like-button.is-liked { color: #d94951; background: #fff1f2; }
.like-button.is-liked svg { fill: currentColor; }
.bookmark-button { margin-left: auto; }
.bookmark-button.is-saved { color: var(--blue); background: #eef2ff; }
.bookmark-button.is-saved svg { fill: currentColor; }

.comments-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.comment-preview { display: flex; gap: 8px; margin-bottom: 10px; }
.comment-preview .avatar, .quick-comment .avatar { width: 28px; height: 28px; border-radius: 6px; font-size: 8px; }
.comment-preview p { margin: 0; color: #596678; font-size: 9px; line-height: 1.5; }
.comment-preview strong { color: var(--ink); }
.comment-profile-link { color: var(--ink); font-weight: 800; text-decoration: none; }
.comment-profile-link:hover { color: var(--blue); }
.discussion-author { color: var(--blue); text-decoration: none; }
.discussion-author:hover { text-decoration: underline; }
.quick-comment { display: flex; align-items: center; gap: 7px; }
.quick-comment input { min-width: 0; height: 32px; flex: 1; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 6px; outline: none; font-size: 9px; }
.quick-comment input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(49,87,213,.1); }
.quick-comment button { height: 32px; padding: 0 9px; border: 0; border-radius: 5px; color: white; background: var(--blue); font-size: 8px; font-weight: 800; cursor: pointer; }
.comments-panel--wide { grid-column: 1 / -1; margin: 0 22px 18px; }

.feed-divider { height: 48px; display: flex; align-items: center; gap: 12px; color: #9099a7; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.feed-divider::before, .feed-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.feed-divider::before { flex: 0 0 25px; }

.story-card { display: grid; grid-template-columns: 1fr 190px; margin-bottom: 16px; }
.story-card__body { padding: 21px 23px 16px; }
.story-card h2 { max-width: 570px; margin: 13px 0 9px; font-size: 16px; line-height: 1.4; }
.story-card__body > p { margin: 0; color: #667285; font-size: 11px; line-height: 1.6; }
.story-card__art { position: relative; min-height: 170px; overflow: hidden; border-left: 1px solid var(--line); }
.art-kettle { background: linear-gradient(145deg, #17243c, #365aa7); }
.art-label { position: absolute; top: 14px; right: 14px; color: rgba(255,255,255,.8); font-family: var(--font-display); font-size: 21px; line-height: .85; text-align: right; }
.art-label span { font-size: 9px; letter-spacing: 2px; }
.kettle { position: absolute; left: 44px; bottom: 25px; width: 90px; height: 88px; border-radius: 42% 44% 28% 28%; background: #c5ccd5; box-shadow: inset -12px -7px 0 #a9b2bf; }
.kettle::before { content: ""; position: absolute; left: 25px; top: -14px; width: 45px; height: 15px; border-radius: 50% 50% 20% 20%; background: #8f9baa; }
.kettle i { position: absolute; right: -27px; top: 15px; width: 41px; height: 12px; background: #b2bcc8; transform: rotate(-17deg); border-radius: 0 50% 50% 0; }
.kettle b { position: absolute; left: -27px; top: 16px; width: 34px; height: 50px; border: 8px solid #8c98a9; border-right: 0; border-radius: 26px 0 0 26px; }
.steam { position: absolute; left: 92px; top: 15px; color: rgba(255,255,255,.55); font-size: 24px; line-height: .6; transform: rotate(15deg); }
.thread-chip { width: fit-content; max-width: 100%; margin-top: 13px; padding: 7px 9px; display: flex; align-items: center; gap: 5px; border-radius: 6px; color: #647084; background: #f3f5f8; font-size: 8px; white-space: nowrap; }
.thread-chip b { color: var(--ink); }
.thread-chip strong { color: var(--blue); }
.thread-faces { display: flex; margin-right: 3px; }
.thread-faces i { width: 20px; height: 20px; margin-left: -5px; display: grid; place-items: center; border: 2px solid white; border-radius: 50%; background: #57667d; color: white; font-size: 5px; font-style: normal; font-weight: 800; }
.compact-footer { grid-column: 1 / -1; padding: 12px 21px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); background: #fbfcfd; }
.post-author--compact .avatar { width: 29px; height: 29px; border-radius: 6px; font-size: 8px; }
.post-actions--compact { margin: 0; padding: 0; border: 0; }
.story-card--quote { position: relative; grid-template-columns: 1fr; border-left: 3px solid var(--gold); }
.story-card--quote .story-card__body { padding-left: 63px; }
.quote-mark { position: absolute; left: 22px; top: 42px; color: #e5b048; font-family: Georgia, serif; font-size: 64px; line-height: 1; }
.story-card blockquote { margin: 12px 0 0; color: #667285; font-size: 11px; font-style: italic; line-height: 1.65; }
.art-cloud { background: linear-gradient(145deg, #cfd5e0, #94a3b9); }
.cloud { position: absolute; left: 34px; top: 55px; width: 118px; height: 52px; border-radius: 35px; background: #eef1f5; box-shadow: 0 9px 16px rgba(42,52,68,.15); }
.cloud i, .cloud b, .cloud span { position: absolute; display: block; border-radius: 50%; background: #eef1f5; }
.cloud i { left: 17px; top: -25px; width: 55px; height: 55px; } .cloud b { right: 15px; top: -34px; width: 67px; height: 67px; } .cloud span { right: -2px; top: 1px; width: 55px; height: 48px; }
.cloud-eyes { position: absolute; z-index: 2; left: 76px; top: 70px; color: #3c4a5f; font-size: 20px; font-weight: 800; }
.rain { position: absolute; left: 49px; top: 119px; color: #536987; font-size: 20px; transform: rotate(10deg); }

.right-sidebar { min-width: 0; }
.right-card { margin-bottom: 15px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; box-shadow: 0 2px 10px rgba(16,24,40,.025); overflow: hidden; }
.manifesto-card { position: relative; padding: 15px 33px 15px 14px; display: flex; align-items: flex-start; gap: 11px; border-color: #d4daee; background: #f0f3ff; }
.manifesto-icon { flex: none; width: 26px; height: 26px; display: grid; place-items: center; color: white; border-radius: 50%; background: var(--blue); font-family: Georgia, serif; font-size: 17px; font-weight: 800; }
.manifesto-card strong { font-size: 10px; }
.manifesto-card p { margin: 3px 0 0; color: #67738b; font-size: 8px; line-height: 1.55; }
.close-manifesto { position: absolute; right: 7px; top: 5px; border: 0; background: transparent; color: #748098; font-size: 17px; cursor: pointer; }
.right-card__heading { min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.right-card__heading h3 { margin: 0; font-family: var(--font-display); font-size: 11px; letter-spacing: -.2px; }
.right-card__heading > span { padding: 3px 5px; color: #c63c44; border: 1px solid #f2c7ca; border-radius: 3px; background: #fff2f2; font-size: 7px; font-weight: 800; letter-spacing: 1px; }
.right-card__heading > span::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 4px; border-radius: 50%; background: var(--coral); }
.right-card__heading small { color: #8b95a4; font-size: 8px; }
.trend-list { margin: 0; padding: 0; list-style: none; }
.trend-list li { padding: 14px 16px; display: grid; grid-template-columns: 30px 1fr; border-bottom: 1px solid var(--line); }
.trend-list li[role="button"] { cursor: pointer; }
.trend-list li[role="button"]:hover { background: #f8f9fb; }
.trend-list li > span { color: #a5adba; font-family: var(--font-display); font-size: 10px; }
.trend-list small, .trend-list strong { display: block; }
.trend-list small { color: #8e98a7; font-size: 7px; }
.trend-list strong { margin-top: 4px; padding-right: 60px; font-size: 9px; line-height: 1.45; }
.trend-list li > div { position: relative; }
.spark { position: absolute; right: 0; bottom: 2px; width: 51px; height: 24px; display: flex; align-items: end; gap: 2px; }
.spark i { width: 5px; border-radius: 1px 1px 0 0; background: rgba(237,90,80,.35); }
.spark--blue i { background: rgba(49,87,213,.35); } .spark--violet i { background: rgba(121,87,213,.35); }
.right-card__footer { width: 100%; height: 39px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; background: #fbfcfd; color: var(--blue); font-size: 8px; font-weight: 800; cursor: pointer; }
.pulse-grid { display: grid; grid-template-columns: 1fr 1fr; }
.pulse-grid div { padding: 15px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pulse-grid div:nth-child(even) { border-right: 0; }
.pulse-grid div:nth-child(n+3) { border-bottom: 0; }
.pulse-grid strong, .pulse-grid span { display: block; }
.pulse-grid strong { font-family: var(--font-display); font-size: 13px; }
.pulse-grid span { margin-top: 3px; color: #8993a2; font-size: 7px; }
.challenge-card { position: relative; padding: 19px; color: white; border: 0; background: var(--ink); }
.challenge-card::after { content: ""; position: absolute; right: -24px; top: -35px; width: 125px; height: 125px; border: 18px solid rgba(255,255,255,.035); border-radius: 50%; }
.challenge-card__number { position: absolute; right: 15px; top: 13px; color: #77839a; font-family: var(--font-display); font-size: 24px; }
.challenge-card small { color: #8e9bb0; font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.challenge-card h3 { position: relative; z-index: 1; max-width: 210px; margin: 11px 0 8px; font-family: var(--font-display); font-size: 13px; line-height: 1.45; }
.challenge-card p { margin: 0; color: #9eabbf; font-size: 8px; }
.challenge-progress { height: 3px; margin: 16px 0 6px; border-radius: 3px; background: #344057; }
.challenge-progress span { display: block; height: 100%; background: var(--coral); }
.challenge-meta { display: flex; justify-content: space-between; color: #8592a6; font-size: 7px; }
.challenge-card button { position: relative; z-index: 1; width: 100%; height: 34px; margin-top: 15px; border: 1px solid #4d5b71; border-radius: 5px; color: white; background: #29354a; font-size: 8px; font-weight: 800; cursor: pointer; }
.challenge-card button:hover { background: #35435a; }
.challenge-entries{position:relative;z-index:1;display:block;margin-top:10px;color:#aebbd0;font-size:8px;font-weight:800;text-decoration:none}.challenge-entries:hover{color:#fff}

.mobile-compose, .mobile-nav { display: none; }

.account-dialog, .admin-dialog { padding: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: 0 24px 90px rgba(10,20,40,.3); }
.account-dialog { width: min(470px, calc(100% - 28px)); }
.admin-dialog { width: min(920px, calc(100% - 28px)); }
.account-dialog::backdrop, .admin-dialog::backdrop { background: rgba(16,24,40,.62); backdrop-filter: blur(5px); }
.account-dialog__panel, .admin-dialog__panel { position: relative; border-radius: 12px; background: white; }
.account-dialog__panel { padding: 26px; }
.admin-dialog__panel { padding: 27px; }
.account-dialog__brand { padding-right: 32px; display: flex; align-items: center; gap: 12px; }
.account-dialog__brand .brand__mark { flex: none; width: 38px; height: 42px; }
.account-dialog__brand strong, .account-dialog__brand small { display: block; }
.account-dialog__brand strong { font-family: var(--font-display); font-size: 13px; line-height: 1.4; }
.account-dialog__brand small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.account-dialog__close { position: absolute; top: 13px; right: 15px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #7f8998; font-size: 24px; cursor: pointer; }
.account-dialog__close:hover { background: #f0f2f5; color: var(--ink); }
.auth-tabs { margin: 22px 0 17px; padding: 3px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 7px; background: #edf0f4; }
.auth-tabs button { height: 34px; border: 0; border-radius: 5px; background: transparent; color: #778293; font-size: 9px; font-weight: 800; cursor: pointer; }
.auth-tabs button.is-active { color: var(--ink); background: white; box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.account-form > label, .account-dialog__panel > label { position: relative; display: block; margin-top: 13px; color: #5f6b7d; font-size: 8px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.account-form input, .account-dialog__panel > label input, .account-dialog__panel > label textarea { width: 100%; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 7px; outline: 0; color: var(--ink); background: white; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.account-form input, .account-dialog__panel > label input { height: 42px; }
.account-dialog__panel > label textarea { min-height: 92px; padding-top: 11px; resize: vertical; }
.account-form input:focus, .account-dialog__panel > label input:focus, .account-dialog__panel > label textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }
.account-form label > small, .account-dialog__panel > label > small { display: flex; justify-content: flex-end; margin-top: 5px; color: #949dab; font-size: 7px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.account-submit { height: 40px; padding: 0 16px; border: 0; border-radius: 7px; color: white; background: var(--blue); font-size: 9px; font-weight: 800; cursor: pointer; }
.account-submit:hover { background: var(--blue-dark); }
.account-submit:disabled { opacity: .58; cursor: wait; }
.account-form > .account-submit { width: 100%; margin-top: 18px; }
.account-dialog__legal { margin: 14px 15px 0; color: #929baa; font-size: 7px; line-height: 1.55; text-align: center; }
.owner-note { margin-bottom: 14px; padding: 10px 11px; display: flex; gap: 9px; border: 1px solid #ead9a3; border-radius: 7px; color: #795718; background: #fff9e8; }
.owner-note > span { flex: none; font-size: 15px; }
.owner-note strong { display: block; font-size: 9px; }
.owner-note p { margin: 3px 0 0; font-size: 7px; line-height: 1.45; }
.form-error { margin: 11px 0; padding: 9px 11px; border: 1px solid #f0c8cb; border-radius: 6px; color: #a33b42; background: #fff2f3; font-size: 9px; line-height: 1.45; }
.account-dialog__heading, .admin-dialog__heading { padding-right: 34px; }
.account-dialog__heading h2, .admin-dialog__heading h2 { margin: 6px 0 0; font-family: var(--font-display); font-size: 19px; }
.admin-dialog__heading p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.avatar-picker { margin: 17px 0 0; padding: 0; display: flex; align-items: center; gap: 10px; border: 0; }
.avatar-picker legend { margin-bottom: 9px; color: #5f6b7d; font-size: 8px; font-weight: 800; letter-spacing: .55px; text-transform: uppercase; }
.avatar-picker label { position: relative; cursor: pointer; }
.avatar-picker input { position: absolute; opacity: 0; }
.avatar-picker input:checked + .avatar { outline: 2px solid var(--blue); outline-offset: 3px; }
.account-dialog__footer { margin-top: 22px; padding-top: 16px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); }

.admin-summary { margin-top: 21px; display: grid; grid-template-columns: 120px 120px 140px 1fr; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; }
.admin-summary > div { padding: 12px 14px; border-right: 1px solid var(--line); }
.admin-summary > div span, .admin-summary > div strong { display: block; }
.admin-summary > div span { color: #8791a1; font-size: 7px; }
.admin-summary > div strong { margin-top: 4px; font-family: var(--font-display); font-size: 13px; }
.admin-search { margin: 9px; padding: 0 10px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-dark); border-radius: 6px; background: white; }
.admin-search svg { width: 15px; color: #8590a0; }
.admin-search input { width: 100%; height: 34px; border: 0; outline: 0; background: transparent; font-size: 9px; }
.admin-list-heading { padding: 14px 12px 7px; display: grid; grid-template-columns: minmax(230px, 1fr) 130px 120px 130px; color: #959eac; font-size: 7px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.admin-user-list { max-height: min(470px, 55vh); overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.admin-user-row { min-height: 68px; padding: 10px 12px; display: grid; grid-template-columns: minmax(230px, 1fr) 130px 120px 130px; align-items: center; border-bottom: 1px solid var(--line); }
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-row.is-suspended { background: #fffafb; }
.admin-identity { min-width: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; }
.admin-identity .avatar { grid-row: 1 / 3; }
.admin-identity strong, .admin-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-identity strong { font-size: 9px; }
.admin-identity small { color: #8993a2; font-size: 7px; }
.admin-role-select { width: 112px; height: 31px; padding: 0 7px; border: 1px solid var(--line-dark); border-radius: 5px; color: #596578; background: white; font-size: 8px; font-weight: 700; }
.admin-role-static { color: #596578; font-size: 8px; font-weight: 700; }
.status-pill { width: fit-content; padding: 5px 7px; border-radius: 10px; color: #277356; background: #e9f7f1; font-size: 7px; font-weight: 800; }
.status-pill--suspended { color: #a13f45; background: #fff0f1; }
.admin-action { width: 112px; height: 31px; border: 1px solid #e2b5b8; border-radius: 5px; color: #ac4148; background: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.admin-action:hover { background: #fff2f3; }
.admin-action--restore { color: #277356; border-color: #add8c7; }
.admin-action--restore:hover { background: #edf9f4; }
.admin-action:disabled, .admin-role-select:disabled { opacity: .45; cursor: not-allowed; }
.admin-empty { padding: 40px; text-align: center; color: #939dac; }
.admin-empty span, .admin-empty strong { display: block; }
.admin-empty span { font-family: var(--font-display); font-size: 24px; }
.admin-empty strong { margin-top: 7px; font-size: 9px; }

.composer { width: min(780px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: 0 24px 90px rgba(10,20,40,.26); }
.composer::backdrop { background: rgba(16,24,40,.58); backdrop-filter: blur(4px); }
.composer__panel { max-height: calc(100vh - 28px); padding: 25px; overflow-y: auto; border-radius: 12px; background: white; }
.composer__heading { display: flex; align-items: flex-start; justify-content: space-between; }
.composer__heading h2 { margin: 7px 0 0; font-family: var(--font-display); font-size: 20px; }
.composer__close { border: 0; background: transparent; color: #7f8998; font-size: 26px; cursor: pointer; }
.composer__notice { margin: 19px 0; padding: 10px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #d6dcef; border-radius: 7px; color: #56637b; background: #f0f3ff; font-size: 10px; }
.composer__notice span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-family: Georgia, serif; font-weight: bold; }
.composer__challenge{margin:-10px 0 16px;padding:11px 12px;display:flex;align-items:center;gap:10px;border-radius:7px;background:#fff4e5;color:#80521b}.composer__challenge>span{width:24px;height:24px;display:grid;place-items:center;border-radius:6px;background:var(--gold);color:#fff;font-weight:900}.composer__challenge strong,.composer__challenge small{display:block}.composer__challenge small{margin-top:2px;font-size:8px}
.composer label { position: relative; display: block; margin-top: 15px; color: #606c7e; font-size: 9px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.composer input:not([type="range"]), .composer select, .composer textarea { width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid var(--line-dark); border-radius: 7px; outline: none; color: var(--ink); background: white; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; resize: vertical; }
.composer input:focus, .composer select:focus, .composer textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }
.composer__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.composer input[type="range"] { width: calc(100% - 45px); margin-top: 15px; accent-color: var(--blue); }
.composer output { position: absolute; right: 0; bottom: 1px; color: var(--blue); font-size: 11px; }
.composer .rich-toolbar select { width: auto; max-width: 180px; margin: 0; padding: 0 28px 0 9px; border-radius: 5px; font-size: 9px; }
.composer .rich-toolbar input { margin: 0; }.composer .rich-toolbar #inlineImageSize { margin-left: auto; }.composer .rich-toolbar #insertInlineImage { color: var(--blue); border-color: #c8d3fa; background: #f4f7ff; }
.composer__footer { margin-top: 21px; padding-top: 17px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.composer__footer > span { color: #8a94a3; font-size: 9px; }
.composer__footer > div { display: flex; gap: 8px; }
.secondary-button, .primary-button { height: 36px; padding: 0 14px; border-radius: 6px; font-size: 9px; font-weight: 800; cursor: pointer; }
.secondary-button { border: 1px solid var(--line-dark); background: white; }
.primary-button { border: 0; color: white; background: var(--blue); }

.toast { position: fixed; left: 50%; bottom: -80px; z-index: 80; min-width: 220px; padding: 11px 15px; display: flex; align-items: center; gap: 9px; transform: translateX(-50%); border: 1px solid #354158; border-radius: 8px; color: white; background: var(--ink); box-shadow: 0 12px 30px rgba(16,24,40,.22); opacity: 0; transition: .3s ease; }
.toast.is-visible { bottom: 24px; opacity: 1; }
.toast > span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--green); font-size: 10px; font-weight: 800; }
.toast p { margin: 0; font-size: 10px; font-weight: 700; }
.empty-state { padding: 65px 20px; border: 1px dashed var(--line-dark); border-radius: 9px; text-align: center; }
.empty-state > span { color: #a4adba; font-family: var(--font-display); font-size: 32px; }
.empty-state h2 { margin: 12px 0 7px; font-family: var(--font-display); font-size: 15px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 10px; }

.ad-slot { position: relative; display: grid; place-items: center; min-height: 90px; overflow: hidden; border: 1px dashed #c7cfda; border-radius: 8px; color: #7e899a; background: repeating-linear-gradient(135deg, #f8f9fb, #f8f9fb 9px, #f2f4f7 9px, #f2f4f7 18px); text-align: center; }
.ad-slot > span, .ad-slot > small { position: relative; z-index: 1; display: block; }
.ad-slot > span { font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ad-slot > small { margin-top: 3px; color: #9aa3b1; font-size: 7px; }
.ad-slot > div:not(:empty) ~ span, .ad-slot > div:not(:empty) ~ small { display: none; }
.ad-slot--leaderboard { max-width: 970px; min-height: 90px; margin: 18px auto 0; }
.ad-slot--inline { min-height: 130px; margin: 16px 0; }
.ad-slot--sidebar { min-height: 250px; margin-bottom: 15px; }

.content-view__header { min-height: 112px; padding: 4px 2px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.content-view__header h1 { margin: 7px 0 6px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.7px; }
.content-view__header p { margin: 0; color: var(--muted); font-size: 10px; }
.content-view__header .primary-button { flex: none; height: 38px; }
.discussion-toolbar { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; }
.discussion-toolbar > label { display: flex; align-items: center; gap: 7px; color: #8590a0; font-size: 8px; font-weight: 700; }
.discussion-toolbar select { height: 34px; padding: 0 30px 0 9px; border: 1px solid var(--line-dark); border-radius: 6px; background: white; color: #536072; font-size: 9px; }
.discussion-card { position: relative; margin-bottom: 12px; padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; border: 1px solid var(--line-dark); border-radius: 8px; background: white; box-shadow: var(--shadow); cursor: pointer; }
.discussion-card:hover { border-color: #aeb9c8; transform: translateY(-1px); }
.discussion-card__rank { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: #eef2ff; font-family: var(--font-display); font-size: 11px; }
.discussion-card h2 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 14px; line-height: 1.4; }
.discussion-card p { margin: 0; color: #718094; font-size: 9px; line-height: 1.5; }
.discussion-card__meta { display: flex; gap: 12px; margin-top: 9px; color: #8b95a4; font-size: 7px; }
.discussion-card__count { align-self: center; min-width: 74px; padding: 9px; border-radius: 6px; background: #f5f7f9; text-align: center; }
.discussion-card__count strong, .discussion-card__count span { display: block; }
.discussion-card__count strong { font-family: var(--font-display); font-size: 14px; }
.discussion-card__count span { margin-top: 2px; color: #8a94a3; font-size: 7px; }

.season-badge { padding: 7px 9px; border: 1px solid #ded1a4; border-radius: 5px; color: #8b681e; background: #fff8df; font-size: 8px; font-weight: 800; }
.rating-tabs { margin: 17px 0 13px; padding: 3px; display: flex; gap: 3px; border-radius: 7px; background: #e9edf1; }
.rating-tabs button { height: 32px; flex: 1; border: 0; border-radius: 5px; background: transparent; color: #7b8696; font-size: 8px; font-weight: 800; cursor: pointer; }
.rating-tabs button.is-active { color: var(--ink); background: white; box-shadow: 0 1px 5px rgba(16,24,40,.08); }
.rating-board { border: 1px solid var(--line-dark); border-radius: 8px; background: white; overflow: hidden; }
.rating-row { min-height: 67px; padding: 10px 15px; display: grid; grid-template-columns: 34px 38px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.rating-row:last-child { border-bottom: 0; }
.rating-row__place { color: #9aa3b1; font-family: var(--font-display); font-size: 10px; }
.rating-row:nth-child(1) .rating-row__place { color: #c18b1f; font-size: 15px; }
.rating-row h3, .rating-row p { margin: 0; }
.rating-row h3 { font-size: 10px; }
.rating-row p { margin-top: 3px; color: #8a94a3; font-size: 7px; }
.rating-row__score { min-width: 72px; text-align: right; }
.rating-row__score strong, .rating-row__score span { display: block; }
.rating-row__score strong { font-family: var(--font-display); font-size: 12px; }
.rating-row__score span { color: #929baa; font-size: 7px; }

.agreement-list { margin-top: 14px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfc; }
.agreement-list label { display: flex; align-items: flex-start; gap: 8px; color: #667285; font-size: 8px; line-height: 1.5; cursor: pointer; }
.agreement-list label + label { margin-top: 8px; }
.agreement-list input { width: 14px; height: 14px; flex: none; margin: 0; accent-color: var(--blue); }
.agreement-list a { color: var(--blue); }
.dialog-copy { margin: 14px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.account-dialog__panel > label select { width: 100%; height: 42px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 7px; background: white; color: var(--ink); font-size: 10px; }
.topic-settings { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.topic-settings label { height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 6px; color: #576477; font-size: 9px; font-weight: 700; cursor: pointer; }
.topic-settings label:has(input:checked) { border-color: #b9c6ed; background: #f2f5ff; }
.topic-settings input { accent-color: var(--blue); }

.admin-tabs { margin: 20px 0 0; padding: 3px; display: grid; grid-template-columns: repeat(5, 1fr); border-radius: 7px; background: #e9edf1; }
.challenge-admin-form{max-width:680px;margin:22px auto 0;padding:22px;border:1px solid var(--line);border-radius:9px;background:#fafbfc}.challenge-admin-form>label,.challenge-admin-grid label{display:grid;gap:6px;margin-bottom:14px;color:#4f5c70;font-size:9px;font-weight:800}.challenge-admin-form input,.challenge-admin-form select,.challenge-admin-form textarea{width:100%;padding:10px;border:1px solid var(--line-dark);border-radius:6px;background:white;color:var(--ink);font:11px var(--font)}.challenge-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.challenge-admin-form .account-submit{width:100%}
.admin-tabs button { height: 35px; border: 0; border-radius: 5px; background: transparent; color: #727e90; font-size: 9px; font-weight: 800; cursor: pointer; }
.admin-tabs button.is-active { color: var(--ink); background: white; box-shadow: 0 1px 5px rgba(16,24,40,.08); }
.admin-tabs button span { margin-left: 5px; padding: 2px 5px; border-radius: 8px; color: white; background: var(--coral); font-size: 7px; }
.moderation-filters { margin: 14px 0 10px; display: flex; gap: 6px; }
.moderation-filters button { height: 31px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 5px; background: white; color: #718094; font-size: 8px; font-weight: 800; cursor: pointer; }
.moderation-filters button.is-active { color: var(--blue); border-color: #bac7ef; background: #eef2ff; }
.moderation-list { max-height: min(470px,55vh); overflow: auto; }
.moderation-card { margin-bottom: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.moderation-card__top { display: flex; align-items: center; gap: 8px; }
.moderation-card__top .avatar { width: 28px; height: 28px; }
.moderation-card__top strong, .moderation-card__top small { display: block; }
.moderation-card__top strong { font-size: 9px; }
.moderation-card__top small { color: #8a94a3; font-size: 7px; }
.moderation-card__top time { margin-left: auto; color: #939cab; font-size: 7px; }
.moderation-card h3 { margin: 11px 0 6px; font-family: var(--font-display); font-size: 12px; line-height: 1.4; }
.moderation-card p { margin: 0; color: #687589; font-size: 8px; line-height: 1.55; }
.moderation-card__actions { margin-top: 12px; padding-top: 10px; display: flex; justify-content: flex-end; gap: 7px; border-top: 1px solid var(--line); }
.moderation-card__actions button { height: 31px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 5px; background: white; font-size: 8px; font-weight: 800; cursor: pointer; }
.moderation-card__actions .approve { color: white; border-color: var(--green); background: var(--green); }
.moderation-card__actions .hide { color: #ad4047; border-color: #e7b8bb; }
.moderation-card__reason { display: inline-flex; margin-top: 9px; padding: 4px 7px; border-radius: 10px; color: #a13f45; background: #fff0f1; font-size: 7px; font-weight: 800; }
.moderation-card__contact { margin-top: 7px !important; color: var(--blue) !important; font-weight: 700; }

.cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 20px; z-index: 75; max-width: 1030px; margin: auto; padding: 15px 17px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 13px; border: 1px solid #4c5970; border-radius: 10px; color: white; background: #172235; box-shadow: 0 18px 60px rgba(16,24,40,.32); }
.cookie-banner__icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px dashed #8391a7; border-radius: 50%; color: #f0bd58; font-family: var(--font-display); font-size: 12px; }
.cookie-banner strong { display: block; font-family: var(--font-display); font-size: 10px; }
.cookie-banner p { display: inline; margin: 0; color: #b0bbcb; font-size: 8px; line-height: 1.5; }
.cookie-banner a { margin-left: 6px; color: #9fb3ff; font-size: 8px; }
.cookie-banner__actions { display: flex; gap: 7px; }
.cookie-banner .secondary-button { color: #e8ebf0; border-color: #4d5b71; background: #263249; }
.cookie-options { margin-top: 16px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.cookie-options label { padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cookie-options label:last-child { border-bottom: 0; }
.cookie-options strong, .cookie-options small { display: block; }
.cookie-options strong { font-size: 9px; }
.cookie-options small { margin-top: 3px; color: #8993a2; font-size: 7px; line-height: 1.45; }
.cookie-options input { width: 32px; height: 17px; accent-color: var(--blue); }

@media (max-width: 1180px) {
  .page-shell { grid-template-columns: 190px minmax(500px, 720px); }
  .right-sidebar { display: none; }
  .ad-slot--leaderboard { margin-left: 220px; margin-right: 28px; }
  .main-nav { display: none; }
  .search { max-width: none; }
}

@media (max-width: 820px) {
  .topbar { height: 60px; }
  .topbar__inner { padding: 0 16px; gap: 12px; }
  .brand { min-width: auto; grid-template-columns: 31px auto; }
  .brand__mark { width: 31px; height: 35px; }
  .brand__tagline, .profile-name, .chevron, .create-button { display: none; }
  .search { margin-left: auto; }
  .page-shell { padding: 18px 14px 80px; display: block; }
  .left-sidebar { display: none; }
  .ad-slot--leaderboard { min-height: 72px; margin: 12px 14px 0; }
  .newswire__inner { padding: 0 16px; }
  .newswire__track span:not(:first-child), .newswire__track i { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-card__visual { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .speaker { left: 32%; bottom: 80px; height: 200px; transform: scale(.82); transform-origin: bottom; }
  .podium { height: 100px; }
  .mobile-compose { position: fixed; right: 19px; bottom: 19px; z-index: 35; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 16px; color: white; background: var(--blue); box-shadow: 0 9px 25px rgba(49,87,213,.35); font-size: 27px; }
  .mobile-compose { bottom: 72px; }
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 34; height: 58px; padding: 4px 12px calc(4px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
  .mobile-nav button { border: 0; border-radius: 6px; background: transparent; color: #758194; font-size: 7px; font-weight: 800; cursor: pointer; }
  .mobile-nav button span { display: block; margin-bottom: 2px; font-size: 16px; }
  .mobile-nav button.is-active { color: var(--blue); background: #eef2ff; }
  .admin-dialog__panel { padding: 20px; }
  .admin-tabs { grid-template-columns: 1fr 1fr; }
  .admin-summary { grid-template-columns: repeat(3, 1fr); }
  .admin-summary > div:nth-child(3) { border-right: 0; }
  .admin-search { grid-column: 1 / -1; height: 40px; }
  .admin-list-heading { display: none; }
  .admin-user-list { margin-top: 14px; }
  .admin-user-row { padding: 13px; grid-template-columns: 1fr auto; gap: 10px; }
  .admin-identity { grid-column: 1 / -1; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; grid-template-columns: 34px 1fr; }
  .cookie-banner__actions { grid-column: 1 / -1; }
  .cookie-banner__actions button { flex: 1; }
  .messages-shell { grid-template-columns: 270px minmax(0,1fr); }
  .message-search-results { width: 269px; }
}

@media (max-width: 580px) {
  .search { width: 42px; flex: 0 0 42px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .search input, .search kbd { display: none; }
  .search.is-mobile-open { position: fixed; left: 12px; right: 12px; top: 8px; z-index: 55; width: auto; height: 44px; padding: 0 12px; display: flex; border: 1px solid var(--blue); background: white; box-shadow: 0 8px 30px rgba(16,24,40,.18); }
  .search.is-mobile-open input { display: block; }
  .notification-control .icon-button { display: grid; }
  .notification-menu { position: fixed; top: 58px; left: 12px; right: 12px; width: auto; }
  .profile-button { padding: 0; }
  .account-menu { position: fixed; top: 58px; left: 12px; right: 12px; width: auto; }
  .account-menu::before { right: 17px; }
  .newswire__label { font-size: 9px; }
  .newswire__time { display: none; }
  .feed-heading { height: auto; margin-bottom: 14px; }
  .feed-heading h1 { font-size: 18px; }
  .feed-sort button { padding: 0 9px; }
  .featured-card__content { padding: 18px; }
  .featured-card h2 { font-size: 20px; }
  .story-card { grid-template-columns: 1fr; }
  .story-card.story-card--feed { grid-template-columns: 96px minmax(0,1fr); }
  .story-card--feed .feed-thumbnail { min-height: 190px; border-right: 1px solid var(--line); border-bottom: 0; }
  .story-card--feed .feed-thumbnail__image { min-height: 190px; }
  .story-card--feed .story-card__body { padding: 14px; }
  .story-card--feed .story-card__body h2 { margin-top: 9px; font-size: 14px; }
  .story-card--feed .story-card__body>p { -webkit-line-clamp: 2; }
  .story-card__art { min-height: 150px; grid-row: 1; border-left: 0; border-bottom: 1px solid var(--line); }
  .story-card__body { padding: 18px; }
  .thread-chip { white-space: normal; }
  .action-button.share-button { font-size: 0; }
  .story-card--quote .story-card__body { padding-left: 52px; }
  .story-card--quote .quote-mark { left: 16px; }
  .composer__panel { padding: 19px; }
  .composer__row { grid-template-columns: 1fr; gap: 0; }
  .composer__footer { align-items: flex-end; }
  .composer__footer > span { display: none; }
  .composer__footer > div { width: 100%; }
  .composer__footer button { flex: 1; }
  .image-cropper__panel { padding: 16px; }.crop-stage { height: 310px; }.crop-controls { grid-template-columns: 1fr 1fr; }.image-cropper__footer { align-items:stretch; flex-direction:column; }.image-cropper__footer>div { display:grid; grid-template-columns:1fr 1fr; }
  .account-dialog__panel, .admin-dialog__panel { padding: 19px; }
  .account-dialog__brand strong { font-size: 11px; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-summary > div { border-bottom: 1px solid var(--line); }
  .admin-summary > div:nth-child(2) { border-right: 0; }
  .admin-summary > div:nth-child(3) { grid-column: 1 / -1; border-bottom: 0; }
  .content-view__header { align-items: flex-start; }
  .content-view__header h1 { font-size: 19px; }
  .discussion-toolbar { align-items: flex-end; }
  .discussion-card { grid-template-columns: 34px 1fr; padding: 15px; }
  .discussion-card__count { grid-column: 2; justify-self: start; display: flex; gap: 5px; }
  .rating-row { grid-template-columns: 25px 34px 1fr; }
  .rating-row__score { grid-column: 3; text-align: left; }
  .topic-settings { grid-template-columns: 1fr; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-banner__icon { display: none; }
  .cookie-banner__actions { flex-direction: column; }
  .messages-shell { min-height: 630px; display: block; overflow: visible; }
  .messages-sidebar { border-right: 0; }
  .message-search-results { width: calc(100% - 28px); }
  .message-conversation { height: 620px; }
  .message-room-empty { min-height: 310px; }
  .message-bubble { max-width: 86%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
