:root {
  color-scheme: dark;
  --bg: #050907;
  --panel: rgba(5, 11, 8, .88);
  --panel-strong: rgba(4, 9, 6, .95);
  --line: rgba(235, 241, 232, .16);
  --line-soft: rgba(235, 241, 232, .09);
  --text: #f5f7f3;
  --muted: #abb4aa;
  --green: #80c83f;
  --green-2: #67b62e;
  --green-pale: #a8df72;
  --danger: #e54b43;
  --gold: #e7b74e;
  --shadow: 0 22px 75px rgba(0,0,0,.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/background.png") center center / cover no-repeat fixed;
}
.background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 10, .38) 0%, rgba(3, 8, 7, .28) 35%, rgba(2, 6, 4, .68) 100%),
    linear-gradient(90deg, rgba(2, 6, 4, .20), rgba(2, 6, 4, .05) 48%, rgba(2, 6, 4, .18));
}
.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 46% 35%, transparent 0 28%, rgba(0,0,0,.10) 63%, rgba(0,0,0,.25) 100%);
}

/* -------------------------------------------------------------------------- */
/* Classic CodeArts-era masthead                                               */
/* -------------------------------------------------------------------------- */
.site-header {
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 0 0 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  z-index: 20;
  backdrop-filter: none;
}
.brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.brand-mark {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.78);
  background: rgba(4, 9, 10, .35);
  color: #dceaf3;
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(105,170,255,.7);
  box-shadow: 0 9px 30px rgba(0,0,0,.25);
}
.brand b {
  display: block;
  color: #fff;
  font-size: clamp(37px, 5.2vw, 66px);
  line-height: .94;
  font-weight: 900;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 5px 13px rgba(0,0,0,.65);
}
.brand b .bgl-grid-word { color: var(--green); }
.brand small { display: none; }

.site-header nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  min-height: 50px;
}
.site-header nav > a,
.site-header nav > .inline-form {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 25px;
  border-left: 1px solid rgba(255,255,255,.18);
}
.site-header nav > :first-child { border-left: 0; }
.site-header nav a,
.link-button {
  color: #f0f2ef;
  font-size: 17px;
  font-weight: 450;
  text-shadow: 0 2px 6px rgba(0,0,0,.65);
  transition: color .16s ease, opacity .16s ease;
}
.site-header nav a:hover,
.link-button:hover { color: var(--green-pale); }
.site-header nav a[href="/register"],
.site-header nav a.button.mini { color: var(--green); background: transparent; border: 0; }
.inline-form { margin: 0; }
.link-button {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

main {
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 68px;
}
footer {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto 0;
  padding: 22px 0 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(235,239,232,.62);
  font-size: 12px;
  display: flex;
  justify-content: center;
  gap: 6px 18px;
  flex-wrap: wrap;
  text-align: center;
}

/* Hide the Stage 31 marketing box on home so the original content starts here. */
.bgl-route-home .bgl-classic-home-intro { display: none; }

.panel {
  background: linear-gradient(180deg, rgba(6, 12, 9, .94), rgba(4, 10, 7, .90));
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
}
.good { color: var(--green-pale) !important; }
.warn { color: #efc779 !important; }
.muted, .muted-note { color: var(--muted); }

.section-head,
.page-head,
.stream-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin: 36px 0 18px;
}
.section-head h2,
.page-head h1,
.stream-head h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(29px, 3vw, 39px);
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.page-head p,
.section-head p { margin-bottom: 0; }

/* -------------------------------------------------------------------------- */
/* Buttons and forms                                                           */
/* -------------------------------------------------------------------------- */
.button, button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--green);
  color: #0a1407;
  font: inherit;
  font-weight: 800;
  padding: 11px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, filter .12s ease, opacity .12s ease;
}
.button:hover, button:hover { filter: brightness(1.06); }
.button:active, button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; }
.button.secondary, button.secondary {
  background: rgba(13, 24, 17, .88);
  color: var(--text);
  border-color: var(--line);
}
button.danger, .button.danger {
  background: #9a3c38;
  color: #fff;
  border-color: #b54b47;
}
.button.mini { padding: 8px 10px; font-size: 12px; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 7px;
  background: rgba(0, 4, 2, .84);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(128,200,63,.78);
  box-shadow: 0 0 0 2px rgba(128,200,63,.13);
}
textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; gap: 14px; margin-top: 19px; }
.form-grid label { display: grid; gap: 7px; font-size: 13px; color: #d9e1d6; }
.password-row { display: flex; gap: 8px; }
.password-row input { flex: 1; }
.password-toggle { min-width: 72px; }

.notice {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(128,200,63,.28);
  border-radius: 7px;
  background: rgba(73,121,39,.12);
  color: #cdd7c9;
  font-size: 13px;
  line-height: 1.5;
}
.notice.error {
  border-color: rgba(229,75,67,.38);
  background: rgba(126,40,35,.18);
  color: #ffd4d1;
}

/* -------------------------------------------------------------------------- */
/* Browse / channel cards                                                      */
/* -------------------------------------------------------------------------- */
.search-form { display: flex; gap: 9px; width: min(520px, 100%); }
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.channel-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5, 11, 8, .92);
  box-shadow: 0 16px 45px rgba(0,0,0,.24);
}
.thumb {
  display: block;
  aspect-ratio: 16 / 9;
  position: relative;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.44)),
    url("/background.png") center / cover no-repeat;
}
.thumb-overlay {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.live-pill, .offline-pill, .viewer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
}
.live-pill { background: #e54b43; color: #fff; }
.offline-pill { background: rgba(7,16,10,.88); border: 1px solid rgba(255,255,255,.14); color: #dce2da; }
.viewer-pill { background: rgba(4,10,6,.9); border: 1px solid rgba(255,255,255,.13); color: #f0f3ee; }
.channel-card-body { padding: 14px 13px 15px; display: grid; gap: 5px; }
.channel-title { font-weight: 850; font-size: 16px; color: #fff; }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.empty { padding: 28px; grid-column: 1 / -1; color: var(--muted); }

/* -------------------------------------------------------------------------- */
/* Login / register                                                            */
/* -------------------------------------------------------------------------- */
.auth-wrap { min-height: 54vh; display: grid; place-items: start center; padding-top: 16px; }
.auth-panel { width: min(540px, 100%); padding: 28px 28px 31px; }
.auth-panel h1 { margin: 7px 0 4px; font-size: 36px; color: #fff; }
.auth-panel .muted { color: var(--green); }

/* -------------------------------------------------------------------------- */
/* Profile and setup                                                           */
/* -------------------------------------------------------------------------- */
.profile-grid { display: grid; grid-template-columns: .75fr 1.5fr; gap: 16px; }
.profile-grid > .panel { padding: 24px 22px; }
.profile-grid h2 { margin-top: 0; color: #fff; }
.profile-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.profile-line:last-child { border-bottom: 0; }
.channel-hero { padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }

/* -------------------------------------------------------------------------- */
/* Stream + chat — mirrors the original large media + right chat layout        */
/* -------------------------------------------------------------------------- */
.live-line { display: flex; align-items: center; gap: 10px; color: #d2d8cf; font-size: 13px; }
.stream-layout,
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(300px, .95fr);
  gap: 15px;
}
.media-panel, .studio-media {
  min-height: 530px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, rgba(27,43,42,.94), rgba(5,14,9,.95));
}
rtk-meeting {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 530px;
  background: #020503;
}
.media-status {
  min-height: 34px;
  padding: 9px 12px;
  color: #b5beb2;
  font-size: 12px;
  border-top: 1px solid var(--line-soft);
  background: rgba(5,10,7,.88);
}
.offline-stage {
  min-height: 500px;
  padding: 30px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
}
.offline-stage h2 { color: var(--text); margin: 10px 0 0; }
.play-dot { color: var(--green); font-size: 31px; }

.chat-panel {
  min-height: 530px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-head {
  padding: 15px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 17px;
}
.chat-head span { color: var(--muted); font-size: 12px; font-weight: 400; }
.chat-messages {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
}
.chat-message { padding: 7px 7px; border-radius: 5px; background: transparent; font-size: 14px; line-height: 1.45; }
.chat-message b { color: var(--green-pale); margin-right: 5px; }
.chat-system { color: var(--muted); font-size: 12px; padding: 6px; }
.chat-form { display: flex; gap: 7px; padding: 11px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; }
.chat-readonly { padding: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.channel-about, .channel-editor, .studio-controls { margin-top: 15px; padding: 20px; }
.report-form { margin-top: 16px; display: flex; gap: 8px; }
.studio-chat { min-height: 700px; }
.studio-controls { display: grid; gap: 12px; }

/* -------------------------------------------------------------------------- */
/* Stage 31.2 custom RealtimeKit viewer bridge                                 */
/* -------------------------------------------------------------------------- */
.bgl-direct-video-grid {
  display: none;
  width: 100%;
  min-height: 500px;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  gap: 2px;
}
.bgl-direct-video-grid[data-tiles="1"] { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.bgl-video-tile { position: relative; min-width: 0; min-height: 0; background: #000; overflow: hidden; }
.bgl-remote-video { width: 100%; height: 100%; object-fit: cover; background: #000; display: block; }
.bgl-video-label {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  z-index: 2;
}
.bgl-sound-button {
  position: absolute;
  right: 14px;
  bottom: 46px;
  z-index: 25;
  padding: 8px 11px;
  font-size: 12px;
  background: rgba(8,16,10,.9);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.bgl-local-camera-preview {
  position: absolute;
  left: 0;
  right: 0;
  top: 100px;
  bottom: 34px;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  object-fit: cover;
  background: #000;
  border: 0;
  border-radius: 0;
  z-index: 12;
  box-shadow: none;
  pointer-events: none;
  transform: none !important;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .site-header { margin-top: 14px; gap: 13px; }
  .brand-mark { width: 62px; height: 62px; font-size: 24px; }
  .brand b { font-size: clamp(33px, 7vw, 56px); }
  .site-header nav > a,
  .site-header nav > .inline-form { padding: 0 15px; min-height: 43px; }
  .site-header nav a, .link-button { font-size: 15px; }
  .stream-layout, .studio-grid, .profile-grid { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-chat { min-height: 520px; }
}

@media (max-width: 640px) {
  .background { background-attachment: scroll; background-position: 64% center; }
  .site-header { width: calc(100% - 20px); margin-top: 10px; padding-bottom: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 50px; height: 50px; font-size: 20px; }
  .brand b { font-size: clamp(29px, 9vw, 42px); }
  .site-header nav { width: 100%; overflow-x: auto; justify-content: flex-start; flex-wrap: nowrap; padding-bottom: 4px; }
  .site-header nav > a,
  .site-header nav > .inline-form { padding: 0 12px; flex: 0 0 auto; }
  main { width: calc(100% - 20px); margin-top: 14px; }
  footer { width: calc(100% - 20px); }
  .page-head, .section-head, .stream-head { align-items: stretch; flex-direction: column; margin-top: 24px; }
  .search-form { width: 100%; }
  .channel-grid { grid-template-columns: 1fr; }
  .auth-panel { padding: 22px 18px; }
  .media-panel, .studio-media, rtk-meeting, .bgl-direct-video-grid { min-height: 360px; }
  .chat-panel { min-height: 390px; }
  .bgl-local-camera-preview { top: 94px; bottom: 34px; width: 100%; max-width: none; }
  .report-form, .chat-form { flex-direction: column; }
}


/* -------------------------------------------------------------------------- */
/* Honest Feed — native Beyond Grid Live community                             */
/* -------------------------------------------------------------------------- */
.honest-feed-app { margin-top: 18px; }
.hf-page-head { align-items: flex-end; }
.hf-page-head p { max-width: 720px; line-height: 1.55; }
.hf-live-link { white-space: nowrap; }
.hf-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(270px, .85fr);
  gap: 16px;
  align-items: start;
}
.hf-timeline { overflow: hidden; min-width: 0; }
.hf-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 9, 6, .74);
}
.hf-tabs button {
  min-height: 52px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  position: relative;
  font-weight: 780;
}
.hf-tabs button:hover { color: var(--text); background: rgba(255,255,255,.025); }
.hf-tabs button.active { color: var(--green-pale); }
.hf-tabs button.active::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: var(--green);
  box-shadow: 0 0 14px rgba(128,200,63,.38);
}
.hf-composer {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(1, 6, 3, .24);
}
.hf-composer-form { min-width: 0; }
.hf-composer-identity {
  display: flex;
  align-items: baseline;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  margin: 1px 0 2px;
}
.hf-composer-identity strong {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hf-composer-identity span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.hf-composer-identity:hover span { color: var(--green-pale); }
.hf-composer-identity:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}
.hf-composer textarea {
  width: 100%;
  min-height: 94px;
  margin: 0;
  padding: 6px 2px 10px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
}
.hf-composer textarea::placeholder { color: rgba(171,180,170,.72); }
.hf-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.hf-composer-footer span { color: var(--muted); font-size: 11px; }
.hf-composer-footer button { min-width: 88px; }
.hf-signed-out {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  line-height: 1.5;
}
.hf-signed-out strong { color: var(--text); }
.hf-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(128,200,63,.95), rgba(45,105,50,.95));
  border: 1px solid rgba(255,255,255,.20);
  color: #061006;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
}
.hf-avatar-small { width: 38px; height: 38px; flex-basis: 38px; font-size: 10px; }
.hf-avatar-link { align-self: start; border-radius: 50%; }
.hf-avatar-link:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.hf-post-list { min-height: 120px; }
.hf-post {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 12px;
  padding: 15px 17px 7px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(2, 8, 5, .26);
  transition: background .15s ease;
}
.hf-post:last-child { border-bottom: 0; }
.hf-post:hover { background: rgba(9, 19, 12, .52); }
.hf-post-main { min-width: 0; }
.hf-post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 25px;
}
.hf-post-identity {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.hf-post-identity strong {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hf-post-identity span,
.hf-post-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.hf-post-time { margin-left: auto; }
.hf-post-time:hover, .hf-post-identity:hover span { color: var(--green-pale); }
.hf-live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border: 1px solid rgba(128,200,63,.36);
  border-radius: 999px;
  background: rgba(128,200,63,.11);
  color: var(--green-pale);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.hf-live-badge:hover { border-color: var(--green); background: rgba(128,200,63,.18); }
.hf-post-body {
  margin: 6px 0 7px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.56;
}
.hf-actions {
  width: min(540px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  align-items: center;
  margin-left: -7px;
}
.hf-action {
  width: fit-content;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}
.hf-action:last-child { justify-self: end; }
.hf-action b { min-width: 10px; font-size: 11px; font-weight: 750; }
.hf-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform .15s ease, background .15s ease;
}
.hf-action-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hf-action-icon .filled { fill: currentColor; }
.hf-action:hover .hf-action-icon { transform: scale(1.05); background: rgba(128,200,63,.10); }
.hf-reply:hover, .hf-share:hover, .hf-bookmark:hover, .hf-bookmark.active { color: var(--green-pale); }
.hf-repost:hover, .hf-repost.active { color: #7fd12f; }
.hf-like:hover, .hf-like.active { color: var(--gold); }
.hf-like:hover .hf-action-icon, .hf-like.active .hf-action-icon { background: rgba(231,183,78,.10); }
.hf-action:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.hf-feed-status {
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  background: rgba(0,0,0,.18);
  font-size: 12px;
}
.hf-feed-status.error { color: #ff9a95; }
.hf-feed-status.info { color: var(--green-pale); }
.hf-empty {
  min-height: 180px;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}
.hf-empty strong { color: var(--text); font-size: 17px; }
.hf-sidebar { display: grid; gap: 14px; position: sticky; top: 14px; }
.hf-search-panel, .hf-side-panel { padding: 15px; }
.hf-search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-pale);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hf-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.30);
  padding: 0 11px;
}
.hf-search-box:focus-within { border-color: rgba(128,200,63,.62); box-shadow: 0 0 0 2px rgba(128,200,63,.08); }
.hf-search-box span { color: var(--muted); }
.hf-search-box input {
  width: 100%;
  min-height: 43px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: 0;
}
.hf-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hf-side-head a { color: var(--muted); font-size: 12px; }
.hf-side-head a:hover { color: var(--green-pale); }
.hf-live-list, .hf-suggestion-list { display: grid; }
.hf-live-channel {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  gap: 8px;
  align-items: start;
  padding: 10px 3px;
  border-top: 1px solid var(--line-soft);
}
.hf-live-channel:first-child { border-top: 0; }
.hf-live-channel:hover strong { color: var(--green-pale); }
.hf-live-dot { color: var(--green); text-shadow: 0 0 9px rgba(128,200,63,.6); }
.hf-live-channel > span:last-child { display: grid; min-width: 0; }
.hf-live-channel strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-live-channel small { margin-top: 3px; color: var(--muted); }
.hf-suggestion {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px 2px;
  border-top: 1px solid var(--line-soft);
}
.hf-suggestion:first-child { border-top: 0; }
.hf-suggestion-person { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hf-suggestion-person > span:last-child { display: grid; min-width: 0; }
.hf-suggestion-person strong, .hf-suggestion-person small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-suggestion-person small { color: var(--muted); font-size: 11px; }
.hf-suggestion button { min-height: 34px; padding: 0 10px; font-size: 11px; }
.hf-side-empty { padding: 10px 2px 4px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.hf-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(520px, calc(100% - 28px));
  transform: translateX(-50%);
  padding: 10px 14px;
  border: 1px solid rgba(128,200,63,.38);
  border-radius: 8px;
  background: rgba(4,12,7,.96);
  color: var(--text);
  box-shadow: 0 16px 50px rgba(0,0,0,.48);
  font-size: 13px;
}
@media (max-width: 980px) {
  .hf-layout { grid-template-columns: 1fr; }
  .hf-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hf-search-panel { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .honest-feed-app { width: min(100% - 20px, 1320px); }
  .hf-page-head { align-items: flex-start; }
  .hf-live-link { display: none; }
  .hf-sidebar { grid-template-columns: 1fr; }
  .hf-search-panel { grid-column: auto; }
  .hf-post { grid-template-columns: 39px minmax(0,1fr); gap: 9px; padding: 13px 11px 5px; }
  .hf-avatar { width: 39px; height: 39px; flex-basis: 39px; font-size: 10px; }
  .hf-composer { grid-template-columns: 39px minmax(0,1fr); padding: 13px 11px; }
  .hf-post-head { gap: 5px; flex-wrap: wrap; }
  .hf-post-identity { max-width: calc(100% - 45px); }
  .hf-live-badge { order: 3; }
  .hf-post-time { margin-left: auto; }
  .hf-actions { width: 100%; }
  .hf-action { min-width: 36px; min-height: 39px; }
  .hf-action-icon { width: 31px; height: 31px; }
  .hf-action-icon svg { width: 18px; height: 18px; }
  .hf-signed-out { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .hf-tabs button { min-height: 48px; font-size: 12px; }
  .hf-post-identity span { display: none; }
  .hf-composer-identity { display: grid; gap: 0; }
  .hf-composer-identity span { font-size: 10px; }
  .hf-live-badge { font-size: 9px; }
  .hf-post-body { font-size: 14px; }
}


/* Honest Feed threads, photos and profile pictures */
.hf-avatar {
  overflow: hidden;
  position: relative;
}
.hf-avatar-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hf-media-grid {
  display: grid;
  gap: 5px;
  margin: 10px 0 7px;
  overflow: hidden;
  border-radius: 10px;
}
.hf-media-count-1 { grid-template-columns: 1fr; }
.hf-media-count-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.hf-media-count-3,
.hf-media-count-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.hf-media-item {
  min-height: 180px;
  max-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: #020503;
}
.hf-media-count-3 .hf-media-item:first-child {
  grid-row: span 2;
}
.hf-media-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  max-height: inherit;
  display: block;
  object-fit: cover;
}
.hf-composer-media {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 7px;
  margin: 6px 0 10px;
}
.hf-composer-media-item {
  position: relative;
  min-height: 92px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #020503;
}
.hf-composer-media-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hf-media-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(0,0,0,.75);
  color: #fff;
  line-height: 1;
  font-size: 19px;
}
.hf-composer-tools {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.hf-photo-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(128,200,63,.26);
  border-radius: 7px;
  color: var(--green-pale);
  background: rgba(128,200,63,.07);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.hf-photo-button:hover {
  border-color: rgba(128,200,63,.56);
  background: rgba(128,200,63,.13);
}
.hf-thread {
  margin: 3px 0 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.hf-reply-list { display: grid; }
.hf-reply-row {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 9px;
  padding: 11px 3px;
  border-bottom: 1px solid rgba(235,241,232,.065);
}
.hf-reply-content { min-width: 0; }
.hf-reply-head {
  min-height: 22px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.hf-reply-head .hf-post-time { margin-left: auto; }
.hf-reply-body {
  margin: 4px 0 0;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.48;
}
.hf-thread-empty {
  padding: 13px 4px;
  color: var(--muted);
  font-size: 12px;
}
.hf-reply-form {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr);
  gap: 9px;
  padding: 12px 3px 5px;
}
.hf-reply-box {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 9px;
  background: rgba(0,0,0,.18);
}
.hf-reply-box:focus-within { border-color: rgba(128,200,63,.45); }
.hf-reply-box textarea {
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  color: var(--text);
}
.hf-reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.hf-reply-footer span { color: var(--muted); font-size: 10px; }
.hf-reply-footer button { min-height: 34px; padding: 0 12px; font-size: 11px; }
.hf-reply-signin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 3px 5px;
  color: var(--muted);
  font-size: 12px;
}
.hf-profile-picture-panel {
  margin: 16px 0 0;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(280px,.8fr);
  gap: 22px;
  align-items: center;
}
.hf-profile-picture-copy h2 { margin: 5px 0 7px; }
.hf-profile-picture-copy p { margin: 0; line-height: 1.5; }
.hf-profile-picture-control {
  display: grid;
  grid-template-columns: 96px minmax(0,1fr);
  gap: 15px;
  align-items: center;
}
.hf-profile-avatar-preview {
  width: 96px;
  height: 96px;
}
.hf-avatar-profile {
  width: 96px !important;
  height: 96px !important;
  flex-basis: 96px !important;
  font-size: 22px !important;
}
.hf-profile-picture-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.hf-profile-picture-actions > span {
  width: 100%;
  font-size: 11px;
}
@media (max-width:700px) {
  .hf-composer-media { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hf-media-item { min-height: 135px; }
  .hf-media-count-1 .hf-media-item { min-height: 210px; }
  .hf-profile-picture-panel { grid-template-columns: 1fr; }
  .hf-profile-picture-control { grid-template-columns: 78px minmax(0,1fr); }
  .hf-profile-avatar-preview,
  .hf-avatar-profile { width: 78px !important; height: 78px !important; flex-basis: 78px !important; }
}
@media (max-width:430px) {
  .hf-composer-footer { align-items: flex-end; }
  .hf-composer-tools { align-items: flex-start; flex-direction: column; gap: 6px; }
  .hf-media-grid { gap: 3px; }
  .hf-media-item { min-height: 105px; }
  .hf-media-count-1 .hf-media-item { min-height: 180px; }
}


/* The host camera display is the published local RealtimeKit track. */
.studio-media {
  min-height: 650px !important;
}
.studio-media rtk-meeting {
  min-height: 650px !important;
}
@media (max-width: 640px) {
  .studio-media,
  .studio-media rtk-meeting {
    min-height: 560px !important;
  }
}
