:root { color-scheme: light; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; line-height: 1.4; background: var(--qs-bg); color: var(--qs-text); }

.qs-main { max-width: 1100px; margin: 0 auto; padding: 14px 14px 110px; }
@media (min-width: 980px) { .qs-main { padding-bottom: 60px; } }

.qs-preview {
  margin: 10px 0 14px;
  padding: 12px 12px;
  background: var(--qs-card);
  border: 1px solid var(--qs-border);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.qs-preview p { margin: 0; color: var(--qs-muted); font-size: 14px; }
.qs-preview .qs-preview-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.qs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--qs-border);
  background: var(--qs-card);
  color: var(--qs-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.qs-btn.qs-btn-secondary { background: transparent; }
.qs-btn[disabled], .qs-btn.qs-disabled { opacity: .55; cursor: not-allowed; }

.qs-module { margin: 14px 0; }
.qs-module-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 8px; }
.qs-module-head h2 { margin: 0; font-size: 16px; }
.qs-module-head a { font-size: 13px; text-decoration: none; color: var(--qs-text); }

.qs-hscroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
}
.qs-hscroll::-webkit-scrollbar { height: 10px; }
.qs-hscroll::-webkit-scrollbar-thumb { background: rgba(0,148,255,0.18); border-radius: 999px; }

.qs-story, .qs-event {
  min-width: 92px;
  max-width: 140px;
  background: var(--qs-card);
  border: 1px solid var(--qs-border);
  border-radius: 16px;
  padding: 10px;
  text-decoration: none;
  color: var(--qs-text);
  scroll-snap-align: start;
}
.qs-story { min-width: 90px; max-width: 120px; text-align: center; }
.qs-story img {
  width: 54px; height: 54px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  border: 1px solid var(--qs-border);
}
.qs-story .qs-name { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-story .qs-sub { font-size: 12px; color: var(--qs-muted); margin-top: 2px; }

.qs-event img {
  width: 100%;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--qs-border);
  margin-bottom: 8px;
}
.qs-event .qs-title { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-event .qs-meta { font-size: 12px; color: var(--qs-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.qs-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 10px;
}
@media (max-width: 520px) { .qs-quick { grid-template-columns: 1fr; } }
.qs-quick .qs-quick-card {
  background: var(--qs-card);
  border: 1px solid var(--qs-border);
  border-radius: 16px;
  padding: 12px;
  text-decoration: none;
  color: var(--qs-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.qs-quick .qs-quick-card .qs-quick-title { font-weight: 700; }
.qs-quick .qs-quick-card .qs-quick-desc { font-size: 12px; color: var(--qs-muted); margin-top: 3px; }
.qs-quick .qs-quick-card .qs-quick-pill { font-size: 12px; color: var(--qs-muted); border: 1px solid var(--qs-border); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }

.qs-pills {
  display: inline-flex;
  background: rgba(0,148,255,0.10);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin: 10px 0 12px;
}
.qs-pill {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.qs-pill[aria-selected="true"] { background: var(--qs-card); border: 1px solid var(--qs-border); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

.qs-feed { display: grid; gap: 10px; }
.qs-post {
  background: var(--qs-card);
  border: 1px solid var(--qs-border);
  border-radius: 16px;
  overflow: hidden;
}
.qs-post-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; gap: 10px; }
.qs-post-author { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: var(--qs-text); }
.qs-post-author img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; border: 1px solid var(--qs-border); }
.qs-post-author .qs-post-name { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-post-time { font-size: 12px; color: var(--qs-muted); white-space: nowrap; }
.qs-post-media { width: 100%; max-height: 420px; object-fit: cover; display: block; border-top: 1px solid rgba(0,0,0,.06); border-bottom: 1px solid rgba(0,0,0,.06); }
.qs-post-body { padding: 10px 12px 12px; }
.qs-post-caption { margin: 0; font-size: 14px; color: rgba(0,51,102,0.92); white-space: pre-wrap; }
.qs-post-location { margin-top: 6px; font-size: 12px; color: var(--qs-muted); }

.qs-more-wrap { margin: 12px 0; }
.qs-btn-block { width: 100%; }

.qs-skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(0,148,255,0.10);
}
.qs-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-60%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 45%, rgba(255,255,255,0) 100%);
  animation: qs-shimmer 1.2s infinite;
}
@keyframes qs-shimmer { to { transform: translateX(60%); } }

.qs-module-error {
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--qs-card);
  border: 1px solid var(--qs-border);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.qs-module-error p { margin: 0; color: var(--qs-muted); font-size: 13px; }

/* Cash-like elevation */
.qs-preview,
.qs-story, .qs-event,
.qs-quick .qs-quick-card,
.qs-post,
.qs-module-error {
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.qs-btn {
  border-color: var(--qs-border);
  color: var(--qs-text);
}

.qs-btn:hover { filter: none; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.qs-btn.qs-btn-secondary { background: rgba(0,148,255,0.06); }

.qs-module-head a:hover { text-decoration: underline; }

.qs-pills { background: rgba(0,148,255,0.10); }

.qs-pill { color: var(--qs-text); }

.qs-hscroll::-webkit-scrollbar-thumb { background: rgba(0,148,255,0.25); }



.qs-feed-divider {
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,148,255,0.10);
  border: 1px solid var(--qs-border);
  font-weight: 800;
  color: var(--qs-text);
}

.qs-empty-state {
  padding: 18px 16px;
  border: 1px dashed rgba(0, 51, 102, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.qs-empty-state__title {
  font-weight: 750;
  color: var(--qs-text);
}

.qs-empty-state__body {
  margin: 8px 0 14px;
  color: var(--qs-muted);
  font-size: 14px;
}


/* ===== Milestone 2 – Feed-States / Story-Layout / Home-Density ===== */
.qs-main{
  max-width: 1040px;
  padding-top: 10px;
}

.qs-module{
  margin: 10px 0 12px;
}

.qs-module-head{
  margin-bottom: 6px;
}

.qs-module-head h2{
  font-size: 15px;
  letter-spacing: -0.01em;
}

#qs-stories .qs-hscroll,
#qs-events .qs-hscroll{
  gap: 8px;
  padding-bottom: 8px;
}

#qs-stories .qs-story{
  min-width: 72px;
  max-width: 72px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

#qs-stories .qs-story img{
  width: 50px;
  height: 50px;
  margin: 0 auto 6px;
  border: 2px solid rgba(0,148,255,0.20);
  outline: 3px solid rgba(255,255,255,0.95);
  box-shadow: 0 6px 12px rgba(0,51,102,0.08);
}

#qs-stories .qs-story .qs-name{
  font-size: 12px;
  line-height: 1.25;
}

#qs-stories .qs-story .qs-sub{
  display: none;
}

#qs-events .qs-event{
  min-width: 158px;
  max-width: 188px;
  padding: 8px;
}

#qs-events .qs-event img{
  height: 64px;
  margin-bottom: 6px;
}

.qs-quick{
  gap: 9px;
  margin: 10px 0 8px;
}

.qs-pills{
  margin: 8px 0 8px;
}

.qs-feed-context{
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,51,102,0.08);
  background: rgba(255,255,255,0.82);
  color: var(--qs-muted);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.qs-feed-context strong{
  color: var(--qs-text);
  font-weight: 800;
}

.qs-feed{
  gap: 12px;
}

.qs-module-error[hidden],
.qs-feed-status[hidden],
#qs-feed-newhint[hidden],
#qs-feed-more[hidden]{
  display: none !important;
}

.qs-feed-status{
  margin-top: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--qs-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.qs-feed-status p{
  margin: 0;
  color: var(--qs-muted);
  font-size: 13px;
}

.qs-feed-status[data-kind="info"]{
  background: rgba(0,148,255,0.06);
}

.qs-feed-status[data-kind="end"]{
  background: rgba(0,148,255,0.08);
}

.qs-feed-status[data-kind="end"] p{
  color: var(--qs-text);
  font-weight: 700;
}

.qs-feed-status[data-kind="warning"]{
  border-color: rgba(193,116,0,0.24);
  background: rgba(255,248,235,0.96);
}

.qs-feed-status[data-kind="warning"] p{
  color: #7a5600;
}

.qs-feed-status__retry[hidden]{
  display: none !important;
}

.qs-more-wrap{
  margin: 12px 0 8px;
}

@media (max-width: 760px){
  .qs-main{
    padding-inline: 12px;
  }

  #qs-events .qs-event{
    min-width: 146px;
    max-width: 172px;
  }

  #qs-stories .qs-story{
    min-width: 68px;
    max-width: 68px;
  }

  #qs-stories .qs-story img{
    width: 46px;
    height: 46px;
  }
}


/* Milestone 3 — social following/discover mix */
.qs-post-author-copy{
  min-width: 0;
  display: grid;
  gap: 4px;
}

.qs-post-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qs-post-badge{
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,51,102,0.10);
  background: rgba(0,148,255,0.10);
  color: var(--qs-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.qs-post-badge--soft{
  background: rgba(0,51,102,0.04);
  color: var(--qs-muted);
}

.qs-post-media-wrap{
  display: block;
  color: inherit;
  text-decoration: none;
}

.qs-feed-item--story{
  border-color: rgba(0,148,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,250,255,0.96));
}

.qs-feed-item--story .qs-post-media{
  max-height: 360px;
}

.qs-post-actions{
  margin-top: 10px;
  display: flex;
  justify-content: flex-start;
}

.qs-post-cta{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--qs-border);
  background: rgba(0,148,255,0.08);
  color: var(--qs-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.qs-post-cta:hover{
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

@media (max-width: 760px){
  .qs-post-badges{
    gap: 5px;
  }

  .qs-post-badge{
    font-size: 10px;
    padding: 0 7px;
  }

  .qs-feed-item--story .qs-post-media{
    max-height: 280px;
  }
}


/* ===== Milestone 4 – Story-Reihe / Story-Zustände / Home-Klarheit ===== */
#qs-stories {
  padding: 14px;
  border: 1px solid rgba(0, 51, 102, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(240,247,255,0.92));
  box-shadow: 0 6px 16px rgba(0, 51, 102, 0.04);
}

#qs-stories .qs-module-head {
  margin: 0 0 10px;
  align-items: flex-start;
}

#qs-stories .qs-module-copy {
  display: grid;
  gap: 4px;
}

#qs-stories .qs-module-sub {
  margin: 0;
  color: var(--qs-muted);
  font-size: 13px;
  line-height: 1.45;
}

#qs-stories .qs-hscroll {
  gap: 10px;
  padding: 4px 2px 2px;
}

#qs-stories .qs-story {
  min-width: 86px;
  max-width: 86px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
}

#qs-stories .qs-story img {
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border: 2px solid rgba(0,148,255,0.20);
  outline: 3px solid rgba(255,255,255,0.96);
  box-shadow: 0 6px 14px rgba(0,51,102,0.08);
}

#qs-stories .qs-story .qs-name {
  font-size: 12px;
  line-height: 1.25;
}

#qs-stories .qs-story .qs-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 51, 102, 0.08);
  background: rgba(255,255,255,0.94);
  color: var(--qs-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.qs-module-state,
.qs-stories-state {
  margin: 4px 0 2px;
}

.qs-module-state[hidden],
.qs-stories-state[hidden],
.qs-module-error[hidden] {
  display: none !important;
}

.qs-module-state__inner,
.qs-stories-state__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(0, 51, 102, 0.16);
  background: rgba(255,255,255,0.86);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.qs-module-state__copy,
.qs-stories-state__copy {
  display: grid;
  gap: 4px;
}

.qs-module-state__title,
.qs-stories-state__title {
  font-weight: 800;
  color: var(--qs-text);
}

.qs-module-state__body,
.qs-stories-state__body {
  margin: 0;
  color: var(--qs-muted);
  font-size: 13px;
  line-height: 1.5;
}

.qs-hscroll.is-loading .qs-story,
.qs-hscroll.is-loading .qs-event {
  pointer-events: none;
}

.qs-fade-in {
  animation: qs-home-fade-in .22s ease both;
}

@keyframes qs-home-fade-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .qs-skeleton::after,
  .qs-fade-in {
    animation: none !important;
  }
}

@media (max-width: 720px) {
  #qs-stories {
    padding: 12px;
    border-radius: 18px;
  }

  .qs-module-state__inner,
  .qs-stories-state__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.qs-home-setup {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--qs-border);
  background: linear-gradient(180deg, rgba(240,247,255,0.92), rgba(255,255,255,0.9));
  display: grid;
  gap: 12px;
}
.qs-home-setup__copy {
  display: grid;
  gap: 6px;
}
.qs-home-setup__copy strong {
  font-size: 14px;
}
.qs-home-setup__copy span {
  color: var(--qs-muted);
  font-size: 13px;
  line-height: 1.55;
}
.qs-home-setup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qs-home-setup__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--qs-border);
  background: var(--qs-card);
  color: var(--qs-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.qs-home-setup__link--primary {
  background: rgba(0,148,255,0.12);
  border-color: rgba(0,148,255,0.22);
}


/* =================================================
   Milestone B11 – Home bridge to adjacent surfaces
================================================= */
.qs-hub-bridge{
  background:linear-gradient(180deg, rgba(0,148,255,0.08), #fff 68%);
}
.qs-hub-bridge__actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.qs-hub-bridge__link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(0,51,102,0.10);
  background:#fff;
  color:var(--qs-text);
  text-decoration:none;
  font-weight:900;
  transition:transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.qs-hub-bridge__link:hover{
  transform:translateY(-1px);
  border-color:rgba(0,148,255,0.22);
  box-shadow:0 10px 20px rgba(0,0,0,0.06);
}
.qs-hub-bridge__link--primary{
  background:var(--qs-primary);
  color:#fff;
  border-color:transparent;
}


/* =================================================
   Milestone C3 – Home feed-first composition
================================================= */
.qs-main{
  max-width: 1000px;
  padding-top: 8px;
}


.qs-home-top{
  display:grid;
  gap:12px;
  align-items:start;
}

.qs-home-top .qs-module{
  margin:0;
}

.qs-home-top--loggedin{
  grid-template-columns:minmax(0, 1fr);
}

.qs-home-quick{
  padding:12px;
  border:1px solid rgba(0,51,102,0.08);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.98));
  box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.qs-home-quick .qs-module-head{
  margin:0 0 8px;
}

.qs-home-quick .qs-module-copy{
  display:grid;
  gap:2px;
}

.qs-home-quick .qs-module-sub{
  margin:0;
  color:var(--qs-muted);
  font-size:12px;
  line-height:1.4;
}

.qs-home-quick .qs-quick{
  margin:0;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.qs-home-quick .qs-quick-card{
  min-height:0;
  padding:12px;
  border-radius:14px;
  align-items:flex-start;
}

.qs-home-quick .qs-quick-title{
  font-size:15px;
}

.qs-home-quick .qs-quick-desc{
  line-height:1.35;
  max-width:24ch;
}

.qs-home-quick .qs-quick-pill{
  margin-left:auto;
}

.qs-home-events{
  margin-top:0;
}

.qs-home-events .qs-module-head{
  margin-bottom:4px;
}

.qs-home-events .qs-module-sub{
  margin:0;
  color:var(--qs-muted);
  font-size:12px;
  line-height:1.4;
}

#qs-events[hidden]{
  display:none !important;
}

#qs-events .qs-module-state,
#qs-events .qs-module-error{
  margin-top:6px;
}

#qs-feed-wrap{
  margin-top:8px;
}

.qs-feed-context{
  margin-bottom:8px;
}

.qs-feed-status{
  margin-top:8px;
}

.qs-module-state__inner,
.qs-stories-state__inner{
  padding:12px 14px;
}

.qs-stories-state__body{
  max-width:52ch;
}

@media (min-width: 980px){
  .qs-home-top--loggedin{
    gap:10px;
  }

  .qs-home-quick{
    padding:12px;
  }

  .qs-home-quick .qs-quick{
    gap:10px;
  }
}

@media (max-width: 979px){
  .qs-home-quick .qs-quick{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .qs-home-quick{
    padding:12px;
  }

  .qs-home-quick .qs-quick{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:4px;
    scroll-snap-type:x proximity;
  }

  .qs-home-quick .qs-quick-card{
    min-width:220px;
    scroll-snap-align:start;
  }
}



.qs-feed-item--post { cursor: pointer; }
.qs-feed-item--post:focus-visible {
  outline: 3px solid rgba(0, 148, 255, 0.24);
  outline-offset: 3px;
}
.qs-post-media-wrap[data-open-post="1"] { cursor: pointer; }
.qs-post-cta--button {
  appearance: none;
  border: 1px solid var(--qs-border);
  background: rgba(0,148,255,0.10);
}

.qs-home-post-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--qs-header-h, 78px) + 12px) 12px 12px;
  box-sizing: border-box;
}
.qs-home-post-modal.is-open { display: flex; }
.qs-home-post-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 38, 0.62);
  backdrop-filter: blur(3px);
}
.qs-home-post-modal__dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100dvh - var(--qs-header-h, 78px) - 24px);
  margin: 0 auto;
  background: var(--qs-card);
  border: 1px solid var(--qs-border);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.24);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}
.qs-home-post-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--qs-border);
  background: var(--qs-card);
  color: var(--qs-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.qs-home-post-modal__media {
  position: relative;
  min-height: 420px;
  background: rgba(0, 51, 102, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qs-home-post-modal__media-inner {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qs-home-post-modal__media-el {
  display: block;
  width: 100%;
  max-height: calc(100dvh - var(--qs-header-h, 78px) - 136px);
  object-fit: contain;
  background: rgba(0,0,0,0.02);
}
.qs-home-post-modal__placeholder {
  color: var(--qs-muted);
  font-weight: 600;
  text-align: center;
  padding: 24px;
}
.qs-home-post-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--qs-border);
  background: rgba(255,255,255,0.94);
  color: var(--qs-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.qs-home-post-modal__nav--prev { left: 12px; }
.qs-home-post-modal__nav--next { right: 12px; }
.qs-home-post-modal__body {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: calc(100dvh - var(--qs-header-h, 78px) - 24px);
  padding: 20px 18px 18px;
  overflow: auto;
}
.qs-home-post-modal__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-right: 52px;
}
.qs-home-post-modal__author {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  color: var(--qs-text);
}
.qs-home-post-modal__author img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--qs-border);
}
.qs-home-post-modal__author-name {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}
.qs-home-post-modal__author-meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--qs-muted);
}
.qs-home-post-modal__counts {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.qs-home-post-modal__count {
  font-size: 13px;
  color: var(--qs-muted);
  white-space: nowrap;
}
.qs-home-post-modal__caption {
  margin-top: 16px;
  white-space: pre-wrap;
  font-size: 15px;
  color: rgba(0,51,102,0.92);
}
.qs-home-post-modal__location {
  margin-top: 8px;
  font-size: 13px;
  color: var(--qs-muted);
}
.qs-home-post-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.qs-home-post-modal__action,
.qs-home-post-modal__send {
  border: 1px solid var(--qs-border);
  background: rgba(0,148,255,0.10);
  color: var(--qs-text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.qs-home-post-modal__action[disabled],
.qs-home-post-modal__send[disabled] {
  opacity: .68;
  cursor: wait;
}
.qs-home-post-modal__action.is-liked {
  background: rgba(0,148,255,0.16);
  border-color: rgba(0,148,255,0.26);
}
.qs-home-post-modal__comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 14px;
}
.qs-home-post-modal__comment-form input {
  min-width: 0;
  border: 1px solid var(--qs-border);
  background: var(--qs-card);
  color: var(--qs-text);
  padding: 11px 12px;
  border-radius: 12px;
  font: inherit;
}
.qs-home-post-modal__hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--qs-border);
  background: rgba(0,148,255,0.08);
  color: var(--qs-text);
  font-size: 13px;
}
.qs-home-post-modal__hint[data-tone="loading"] {
  background: rgba(0,148,255,0.08);
  border-color: rgba(0,148,255,0.14);
}
.qs-home-post-modal__hint[data-tone="error"] {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.14);
}
.qs-home-post-modal__hint[data-tone="success"] {
  background: rgba(34, 139, 34, 0.08);
  border-color: rgba(34, 139, 34, 0.14);
}
.qs-home-post-modal__comments {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.qs-home-post-modal__empty {
  padding: 14px;
  border: 1px dashed var(--qs-border);
  border-radius: 14px;
  color: var(--qs-muted);
  text-align: center;
}
.qs-home-post-modal__comment {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0,148,255,0.06);
  border: 1px solid rgba(0,148,255,0.12);
}
.qs-home-post-modal__comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--qs-muted);
}
.qs-home-post-modal__comment-head strong {
  color: var(--qs-text);
  font-size: 14px;
}
.qs-home-post-modal__comment-body {
  margin-top: 6px;
  white-space: pre-wrap;
  color: rgba(0,51,102,0.92);
  font-size: 14px;
}
@media (max-width: 860px) {
  .qs-home-post-modal__dialog {
    grid-template-columns: 1fr;
    width: min(720px, calc(100vw - 18px));
  }
  .qs-home-post-modal__media,
  .qs-home-post-modal__media-inner {
    min-height: 300px;
  }
}
@media (max-width: 560px) {
  .qs-home-post-modal {
    padding: calc(var(--qs-header-h, 78px) + 8px) 6px 6px;
  }
  .qs-home-post-modal__dialog {
    width: 100%;
    max-height: calc(100dvh - var(--qs-header-h, 78px) - 18px);
    margin: 0 auto;
    border-radius: 18px;
  }
  .qs-home-post-modal__head {
    flex-direction: column;
    padding-right: 48px;
  }
  .qs-home-post-modal__counts {
    justify-content: flex-start;
  }
  .qs-home-post-modal__comment-form {
    grid-template-columns: 1fr;
  }
}


/* ===== Milestone 2 – Home layout polish ===== */
.qs-main{
  max-width:1040px;
  padding-top:16px;
}

.qs-home-top{
  display:grid;
  gap:14px;
  align-items:start;
  margin-bottom:4px;
}

.qs-home-top .qs-module{
  margin:0;
  min-width:0;
}

#qs-stories,
#qs-events,
.qs-home-quick{
  border:1px solid rgba(0,51,102,0.08);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(245,249,255,0.98) 100%);
  box-shadow:0 10px 26px rgba(0,51,102,0.06);
  padding:14px;
}

.qs-home-top .qs-module-head{
  margin:0 0 10px;
  gap:12px;
}

.qs-home-top .qs-module-copy{
  display:grid;
  gap:3px;
  min-width:0;
}

.qs-home-top .qs-module-head h2{
  font-size:16px;
  letter-spacing:-0.02em;
}

.qs-home-top .qs-module-sub{
  margin:0;
  color:var(--qs-muted);
  font-size:12px;
  line-height:1.45;
}

.qs-home-top .qs-module-head a{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 11px;
  border-radius:999px;
  border:1px solid rgba(0,51,102,0.08);
  background:rgba(255,255,255,0.84);
  font-size:12px;
  font-weight:700;
  text-decoration:none;
  color:var(--qs-text);
}

#qs-stories .qs-hscroll,
#qs-events .qs-hscroll{
  padding:2px 2px 6px;
  gap:10px;
}

#qs-stories .qs-story{
  min-width:82px;
  max-width:90px;
  padding:0;
  border:none;
  background:transparent;
  box-shadow:none;
}

#qs-stories .qs-story img{
  width:64px;
  height:64px;
  margin:0 auto 8px;
  border:2px solid rgba(255,255,255,0.95);
  box-shadow:0 6px 14px rgba(0,51,102,0.10);
}

#qs-stories .qs-story .qs-name{
  font-size:12px;
  font-weight:750;
}

#qs-stories .qs-story .qs-sub{
  font-size:11px;
}

.qs-home-events .qs-module-head{
  margin-bottom:8px;
}

.qs-home-events .qs-event{
  min-width:188px;
  max-width:188px;
  padding:10px;
  border-radius:18px;
  box-shadow:0 4px 14px rgba(0,51,102,0.05);
}

.qs-home-events .qs-event img{
  height:92px;
  border-radius:14px;
}

.qs-home-events .qs-title{
  margin-top:8px;
  font-size:14px;
  font-weight:750;
}

.qs-home-events .qs-meta{
  margin-top:4px;
  line-height:1.4;
}

.qs-home-quick{
  padding:14px;
}

.qs-home-quick .qs-module-head{
  margin-bottom:10px;
}

.qs-home-quick .qs-quick{
  margin:0;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.qs-home-quick .qs-quick-card{
  min-height:78px;
  padding:13px;
  border-radius:16px;
  align-items:flex-start;
  background:rgba(255,255,255,0.92);
  box-shadow:0 4px 14px rgba(0,51,102,0.05);
}

.qs-home-quick .qs-quick-card-btn{
  background:linear-gradient(180deg, rgba(0,148,255,0.10), rgba(255,255,255,0.96));
}

.qs-home-quick .qs-quick-title{
  font-size:15px;
  line-height:1.2;
}

.qs-home-quick .qs-quick-desc{
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
  max-width:22ch;
}

.qs-home-quick .qs-quick-pill{
  background:rgba(0,148,255,0.08);
  color:var(--qs-text);
  border-color:rgba(0,51,102,0.08);
}

#qs-feed-wrap{
  margin-top:10px;
}

.qs-feed-context{
  margin-bottom:8px;
}

.qs-feed-status{
  margin-top:8px;
}

.qs-module-state__inner,
.qs-stories-state__inner{
  padding:12px 14px;
}

.qs-stories-state__body{
  max-width:52ch;
}

@media (min-width: 980px){
  .qs-home-top{
    gap:15px;
  }

  #qs-stories,
  #qs-events,
  .qs-home-quick{
    padding:16px;
  }
}

@media (max-width: 979px){
  .qs-main{
    max-width:920px;
  }

  .qs-home-quick .qs-quick{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px){
  .qs-main{
    padding-top:14px;
  }

  .qs-home-top{
    gap:12px;
  }

  #qs-stories,
  #qs-events,
  .qs-home-quick{
    padding:12px;
    border-radius:18px;
  }

  .qs-home-quick .qs-quick{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:2px;
    scroll-snap-type:x proximity;
  }

  .qs-home-quick .qs-quick-card{
    min-width:220px;
    scroll-snap-align:start;
  }

  .qs-home-events .qs-event{
    min-width:170px;
    max-width:170px;
  }
}

@media (max-width: 560px){
  .qs-home-top .qs-module-head{
    align-items:flex-start;
  }

  .qs-home-top .qs-module-head a{
    min-height:32px;
    padding:0 10px;
  }

  #qs-stories .qs-story{
    min-width:78px;
    max-width:84px;
  }

  .qs-home-quick .qs-quick-card{
    min-width:210px;
  }

  .qs-home-events .qs-event{
    min-width:156px;
    max-width:156px;
  }
}


/* Milestone 3 — Home Quick Row verdichten */
.qs-main{
  padding-top:12px;
}

.qs-home-top{
  gap:10px;
}

#qs-stories,
#qs-events{
  padding:14px 16px;
}

#qs-stories .qs-module-head,
#qs-events .qs-module-head{
  margin-bottom:6px;
}

#qs-stories .qs-hscroll,
#qs-events .qs-hscroll{
  padding-bottom:4px;
}

.qs-home-events .qs-event{
  min-width:170px;
  max-width:188px;
  padding:9px;
}

.qs-home-events .qs-event img{
  height:82px;
  margin-bottom:6px;
}

.qs-home-quick{
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,0.95);
  box-shadow:0 1px 8px rgba(0,0,0,0.04);
}

.qs-home-quick .qs-module-head{
  margin:0 0 6px;
  align-items:center;
}

.qs-home-quick .qs-module-copy{
  gap:0;
}

.qs-home-quick .qs-quick{
  margin:0;
  gap:8px;
}

.qs-home-quick .qs-quick-card{
  min-height:84px;
  padding:10px 12px;
  border-radius:14px;
  gap:8px;
  box-shadow:none;
}

.qs-home-quick .qs-quick-card > div:first-child{
  display:grid;
  gap:3px;
  min-width:0;
}

.qs-home-quick .qs-quick-title{
  font-size:14px;
  line-height:1.2;
}

.qs-home-quick .qs-quick-desc{
  font-size:11px;
  line-height:1.3;
  max-width:none;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.qs-home-quick .qs-quick-pill{
  align-self:flex-start;
  font-size:11px;
  padding:3px 7px;
}

#qs-feed-wrap{
  margin-top:6px;
}

.qs-pills{
  margin:6px 0 10px;
}

.qs-feed-context{
  margin-bottom:6px;
}

@media (min-width:980px){
  .qs-home-top{
    gap:10px;
  }

  #qs-stories,
  #qs-events{
    padding:14px 16px;
  }

  .qs-home-quick{
    padding:10px 14px;
  }
}

@media (max-width:720px){
  .qs-main{
    padding-top:12px;
  }

  .qs-home-top{
    gap:10px;
  }

  #qs-stories,
  #qs-events,
  .qs-home-quick{
    padding:12px;
  }

  .qs-home-quick .qs-module-head{
    margin-bottom:4px;
  }

  .qs-home-quick .qs-quick{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding-bottom:2px;
    scroll-snap-type:x proximity;
  }

  .qs-home-quick .qs-quick-card{
    min-width:188px;
    max-width:220px;
    min-height:74px;
    padding:10px;
    scroll-snap-align:start;
  }

  .qs-home-events .qs-event{
    min-width:160px;
    max-width:160px;
  }

  #qs-feed-wrap{
    margin-top:4px;
  }
}

@media (max-width:560px){
  .qs-home-quick .qs-quick-card{
    min-width:176px;
    max-width:204px;
  }

  .qs-home-events .qs-event{
    min-width:152px;
    max-width:152px;
  }
}


/* ===== Milestone 5 – Acceptance pass ===== */
.qs-main{
  padding-top:10px;
}

.qs-home-top{
  gap:8px;
  margin-bottom:2px;
}

.qs-home-top .qs-module-head{
  margin-bottom:8px;
}

.qs-home-top .qs-module-copy{
  gap:2px;
}

.qs-home-top .qs-module-sub{
  line-height:1.4;
}

#qs-stories,
#qs-events,
.qs-home-quick{
  padding:12px;
}

.qs-home-quick{
  padding-block:10px;
}

.qs-home-quick .qs-quick{
  gap:7px;
}

.qs-home-quick .qs-quick-card{
  min-height:68px;
  padding:9px 10px;
  border-radius:18px;
}

.qs-home-quick .qs-quick-title{
  font-size:0.97rem;
}

.qs-home-quick .qs-quick-desc{
  margin-top:2px;
  font-size:0.84rem;
  line-height:1.3;
}

.qs-home-quick .qs-quick-pill{
  min-height:24px;
  padding:0 8px;
  font-size:0.74rem;
}

#qs-feed-wrap{
  margin-top:0;
}

#qs-feed-wrap .qs-module-head{
  margin-bottom:8px;
}

@media (min-width: 900px){
  .qs-home-quick .qs-quick{
    overflow: visible;
  }

  .qs-home-quick .qs-quick-card{
    flex:1 1 0;
    min-width:0;
    max-width:none;
  }
}

@media (max-width: 720px){
  .qs-main{
    padding-top:8px;
  }

  .qs-home-top{
    gap:6px;
  }

  .qs-home-quick{
    padding:10px;
  }

  .qs-home-quick .qs-quick{
    gap:6px;
  }

  .qs-home-quick .qs-quick-card{
    min-width:168px;
    max-width:192px;
  }
}


/* ===== Finaler Milestone 2 – Feed-first UI & Preview-Grids ===== */
.qs-home-top{
  gap:7px;
}

.qs-home-top .qs-module-head{
  margin-bottom:7px;
}

.qs-home-quick{
  padding:8px 10px;
  border-radius:16px;
  background:rgba(255,255,255,0.96);
  box-shadow:0 1px 6px rgba(0,0,0,0.04);
}

.qs-home-quick .qs-module-head{
  margin:0 0 5px;
  align-items:center;
}

.qs-home-quick .qs-module-head a{
  min-height:30px;
  padding:0 10px;
  font-size:12px;
}

.qs-home-quick .qs-quick{
  gap:8px;
}

.qs-home-quick .qs-quick-card{
  min-height:62px;
  padding:10px 12px;
  border-radius:14px;
  align-items:center;
  gap:10px;
}

.qs-home-quick .qs-quick-title{
  font-size:14px;
  line-height:1.2;
}

.qs-home-quick .qs-quick-desc{
  margin-top:2px;
  font-size:11px;
  line-height:1.25;
}

.qs-home-quick .qs-quick-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:flex-start;
  min-width:42px;
  height:24px;
  padding:0 10px;
  line-height:1;
  font-weight:700;
  border-radius:999px;
  box-sizing:border-box;
  white-space:nowrap;
}

#qs-feed-wrap{
  margin-top:0;
}

#qs-feed-wrap .qs-module-head{
  margin-bottom:6px;
}

.qs-pills{
  margin:4px 0 8px;
}

.qs-feed-context{
  margin-bottom:6px;
}

.qs-feed{
  grid-template-columns:minmax(0, 1fr);
  gap:14px;
  align-items:start;
}

.qs-post{
  display:flex;
  flex-direction:column;
  min-width:0;
  border-radius:18px;
}

.qs-post-head{
  padding:10px 12px 8px;
}

.qs-post-media-wrap{
  display:block;
  position:relative;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:rgba(0,51,102,0.05);
}

.qs-post-media{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  display:block;
}

.qs-post-body{
  display:grid;
  gap:8px;
  padding:10px 12px 12px;
}

.qs-post-caption{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

.qs-post-location{
  margin-top:0;
}

.qs-post-metrics{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  min-height:20px;
  color:var(--qs-muted);
}

.qs-post-metric{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-size:12px;
  font-weight:650;
  line-height:1;
}

.qs-post-metric strong{
  font:inherit;
  color:var(--qs-text);
}

.qs-post-actions{
  margin-top:0;
  justify-content:flex-start;
}

.qs-post-cta{
  min-height:32px;
  padding:0 12px;
  font-size:12px;
}

.qs-feed-divider,
.qs-empty-state{
  grid-column:1 / -1;
}

@media (min-width: 980px){
  .qs-feed{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
  }

  .qs-feed-item--story,
  .qs-feed-divider,
  .qs-empty-state{
    grid-column:1 / -1;
  }

  .qs-home-quick .qs-quick-card{
    min-height:58px;
  }
}

@media (max-width: 720px){
  .qs-home-top{
    gap:6px;
  }

  .qs-home-quick{
    padding:8px 10px;
  }

  .qs-home-quick .qs-quick{
    gap:6px;
  }

  .qs-home-quick .qs-quick-card{
    min-width:166px;
    max-width:190px;
    min-height:60px;
    padding:9px 10px;
  }

  .qs-home-quick .qs-quick-pill{
    min-width:38px;
    padding:0 8px;
  }

  .qs-post-body{
    gap:7px;
  }

  .qs-post-caption{
    -webkit-line-clamp:4;
  }
}


/* ===== Milestone B3 – Home Feed Cards & Post Modal Refresh ===== */
#qs-feed-wrap .qs-module-head{
  margin-bottom:10px;
}

.qs-feed{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.qs-feed-item--post{
  cursor:pointer;
}

.qs-feed-item--post:focus-visible{
  outline:3px solid rgba(0,148,255,0.28);
  outline-offset:4px;
}

.qs-post{
  position:relative;
  border-radius:22px;
  border:1px solid rgba(0,51,102,0.10);
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,249,255,0.96));
  box-shadow:0 14px 34px rgba(8,21,38,0.08);
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.qs-feed-item--post:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(8,21,38,0.11);
  border-color:rgba(0,148,255,0.20);
}

.qs-post--liked{
  border-color:rgba(0,148,255,0.22);
  box-shadow:0 18px 38px rgba(0,148,255,0.10);
}

.qs-post-head{
  padding:14px 16px 12px;
  gap:12px;
}

.qs-post-author img{
  width:42px;
  height:42px;
  border:2px solid rgba(255,255,255,0.95);
  box-shadow:0 8px 20px rgba(0,51,102,0.10);
}

.qs-post-author-copy{
  min-width:0;
}

.qs-post-author .qs-post-name{
  font-size:16px;
  line-height:1.2;
}

.qs-post-time{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  background:rgba(0,51,102,0.05);
  color:rgba(0,51,102,0.72);
  font-size:12px;
  font-weight:700;
}

.qs-post-media-wrap{
  position:relative;
  display:block;
  aspect-ratio:4 / 3;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(13,37,69,0.10), rgba(13,37,69,0.04));
}

.qs-post-media-wrap::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:34%;
  background:linear-gradient(180deg, rgba(10,22,40,0.00), rgba(10,22,40,0.12));
  pointer-events:none;
}

.qs-post-media{
  width:100%;
  height:100%;
  max-height:none;
  object-fit:cover;
  display:block;
  transform:scale(1.001);
}

.qs-post-media-badge{
  position:absolute;
  top:14px;
  left:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.40);
  background:rgba(10,22,40,0.50);
  color:#fff;
  backdrop-filter:blur(6px);
  font-size:12px;
  font-weight:800;
  letter-spacing:.01em;
}

.qs-post-media-badge.is-seen{
  background:rgba(10,22,40,0.34);
}

.qs-post-body{
  display:grid;
  gap:14px;
  padding:16px;
}

.qs-post-copy{
  display:grid;
  gap:8px;
}

.qs-post-caption{
  margin:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
  font-size:15px;
  line-height:1.6;
  color:rgba(0,51,102,0.94);
}

.qs-post-caption--placeholder{
  color:rgba(0,51,102,0.48);
  font-style:italic;
}

.qs-post-location{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(0,148,255,0.08);
  color:rgba(0,51,102,0.72);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.qs-post-metrics{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  min-height:0;
}

.qs-post-metric{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:54px;
  padding:10px 12px;
  border-radius:16px;
  background:rgba(0,51,102,0.04);
  border:1px solid rgba(0,51,102,0.07);
  color:rgba(0,51,102,0.68);
}

.qs-post-metric-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(255,255,255,0.92);
  box-shadow:0 4px 10px rgba(8,21,38,0.06);
  font-size:14px;
}

.qs-post-metric-label{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.01em;
  text-transform:uppercase;
}

.qs-post-metric-value{
  display:block;
  margin-top:2px;
  font-size:16px;
  line-height:1.1;
  color:var(--qs-text);
}

.qs-post-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:0;
}

.qs-post-openhint{
  color:rgba(0,51,102,0.58);
  font-size:12px;
  font-weight:700;
}

.qs-post-cta{
  min-height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(0,148,255,0.18);
  background:linear-gradient(180deg, rgba(0,148,255,0.16), rgba(0,148,255,0.10));
  color:var(--qs-text);
  font-size:13px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(0,148,255,0.08);
}

.qs-post-cta--button.is-active{
  border-color:rgba(0,148,255,0.28);
  background:linear-gradient(180deg, rgba(0,148,255,0.22), rgba(0,148,255,0.14));
}

.qs-home-post-modal{
  padding:calc(var(--qs-header-h, 78px) + 16px) 16px 16px;
  align-items:flex-start;
}

.qs-home-post-modal__dialog{
  width:min(1080px, 100%);
  max-height:calc(100dvh - var(--qs-header-h, 78px) - 32px);
  border-radius:28px;
  border:1px solid rgba(0,51,102,0.10);
  box-shadow:0 28px 72px rgba(8,21,38,0.28);
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,249,255,0.98));
  grid-template-columns:minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

.qs-home-post-modal__close{
  top:16px;
  right:16px;
  width:46px;
  height:46px;
  border-radius:16px;
}

.qs-home-post-modal__media{
  min-height:480px;
  background:linear-gradient(180deg, rgba(10,22,40,0.08), rgba(10,22,40,0.04));
}

.qs-home-post-modal__media-inner{
  min-height:480px;
}

.qs-home-post-modal__media-el{
  width:100%;
  height:100%;
  max-height:calc(100dvh - var(--qs-header-h, 78px) - 152px);
  object-fit:contain;
}

.qs-home-post-modal__body{
  max-height:calc(100dvh - var(--qs-header-h, 78px) - 32px);
  padding:24px 22px 22px;
  gap:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.94), rgba(246,249,255,0.98));
}

.qs-home-post-modal__head{
  padding-right:60px;
}

.qs-home-post-modal__author img{
  width:52px;
  height:52px;
  border:2px solid rgba(255,255,255,0.95);
  box-shadow:0 10px 26px rgba(8,21,38,0.10);
}

.qs-home-post-modal__author-name{
  font-size:24px;
  letter-spacing:-0.02em;
}

.qs-home-post-modal__author-meta{
  margin-top:6px;
  font-size:13px;
  color:rgba(0,51,102,0.62);
}

.qs-home-post-modal__summary{
  margin-top:18px;
}

.qs-home-post-modal__counts{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.qs-home-post-modal__count{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:64px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(0,51,102,0.08);
  background:rgba(0,51,102,0.04);
}

.qs-home-post-modal__count-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:999px;
  background:rgba(255,255,255,0.96);
  box-shadow:0 6px 14px rgba(8,21,38,0.06);
  font-size:15px;
}

.qs-home-post-modal__count-copy{
  display:grid;
  gap:2px;
}

.qs-home-post-modal__count-label{
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:rgba(0,51,102,0.56);
}

.qs-home-post-modal__count strong{
  font-size:18px;
  line-height:1.1;
  color:var(--qs-text);
}

.qs-home-post-modal__caption{
  margin-top:18px;
  font-size:15px;
  line-height:1.7;
}

.qs-home-post-modal__location{
  margin-top:14px;
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:rgba(0,148,255,0.08);
  font-size:13px;
  font-weight:700;
}

.qs-home-post-modal__actions{
  margin-top:18px;
}

.qs-home-post-modal__action,
.qs-home-post-modal__send{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(0,148,255,0.18);
  background:linear-gradient(180deg, rgba(0,148,255,0.16), rgba(0,148,255,0.10));
  box-shadow:0 10px 22px rgba(0,148,255,0.08);
}

.qs-home-post-modal__action-icon{
  font-size:18px;
  line-height:1;
}

.qs-home-post-modal__action-label{
  font-weight:800;
}

.qs-home-post-modal__action.is-liked{
  border-color:rgba(0,148,255,0.30);
  background:linear-gradient(180deg, rgba(0,148,255,0.24), rgba(0,148,255,0.15));
}

.qs-home-post-modal__action.is-busy{
  opacity:.78;
}

.qs-home-post-modal__comment-form{
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  margin-top:16px;
}

.qs-home-post-modal__comment-form input{
  min-height:48px;
  padding:0 16px;
  border-radius:16px;
  background:rgba(255,255,255,0.98);
}

.qs-home-post-modal__comment-form.is-busy input{
  opacity:.72;
}

.qs-home-post-modal__hint{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  font-size:13px;
  font-weight:700;
}

.qs-home-post-modal__comments-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-top:18px;
}

.qs-home-post-modal__comments-head h3{
  margin:0;
  font-size:16px;
  font-weight:800;
  color:var(--qs-text);
}

.qs-home-post-modal__comments-head p{
  margin:0;
  color:rgba(0,51,102,0.54);
  font-size:12px;
  text-align:right;
}

.qs-home-post-modal__comments{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.qs-home-post-modal__comments-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:92px;
  border-radius:18px;
  border:1px dashed rgba(0,51,102,0.12);
  background:rgba(255,255,255,0.80);
}

.qs-home-post-modal__comments-dot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(0,148,255,0.46);
  animation:qs-home-comment-bounce 1s ease-in-out infinite;
}

.qs-home-post-modal__comments-dot:nth-child(2){ animation-delay:.15s; }
.qs-home-post-modal__comments-dot:nth-child(3){ animation-delay:.3s; }

@keyframes qs-home-comment-bounce{
  0%, 80%, 100%{ transform:translateY(0); opacity:.48; }
  40%{ transform:translateY(-4px); opacity:1; }
}

.qs-home-post-modal__comment{
  padding:14px 16px;
  border-radius:18px;
  background:rgba(0,148,255,0.07);
  border:1px solid rgba(0,148,255,0.12);
}

.qs-home-post-modal__comment--pending{
  border-style:dashed;
}

.qs-home-post-modal__comment-head{
  align-items:center;
}

.qs-home-post-modal__comment-head strong{
  font-size:15px;
}

.qs-home-post-modal__comment-body{
  margin-top:8px;
  line-height:1.6;
}

.qs-home-post-modal.is-loading .qs-home-post-modal__media-inner,
.qs-home-post-modal.is-loading .qs-home-post-modal__caption,
.qs-home-post-modal.is-loading .qs-home-post-modal__comments{
  opacity:.92;
}

@media (min-width: 900px){
  .qs-feed{
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
  }
}

@media (max-width: 860px){
  .qs-home-post-modal{
    padding:calc(var(--qs-header-h, 78px) + 12px) 10px 10px;
  }

  .qs-home-post-modal__dialog{
    width:min(760px, 100%);
    max-height:calc(100dvh - var(--qs-header-h, 78px) - 22px);
    grid-template-columns:1fr;
    border-radius:24px;
  }

  .qs-home-post-modal__media,
  .qs-home-post-modal__media-inner{
    min-height:340px;
  }

  .qs-home-post-modal__counts{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 720px){
  .qs-feed{
    gap:14px;
  }

  .qs-post-head{
    padding:12px 14px 10px;
  }

  .qs-post-body{
    padding:14px;
    gap:12px;
  }

  .qs-post-metrics{
    gap:8px;
  }

  .qs-post-metric{
    min-height:50px;
    padding:10px;
  }

  .qs-post-metric-label{
    display:none;
  }

  .qs-post-actions{
    align-items:flex-start;
    flex-direction:column;
  }

  .qs-post-cta{
    width:100%;
  }
}

@media (max-width: 560px){
  .qs-post{
    border-radius:18px;
  }

  .qs-post-author img{
    width:38px;
    height:38px;
  }

  .qs-post-author .qs-post-name{
    font-size:15px;
  }

  .qs-post-time{
    padding:0 9px;
    font-size:11px;
  }

  .qs-post-metrics{
    grid-template-columns:repeat(3, minmax(0,1fr));
  }

  .qs-post-metric{
    justify-content:center;
    gap:6px;
    padding:9px 8px;
  }

  .qs-post-metric-value{
    font-size:14px;
  }

  .qs-home-post-modal{
    padding:calc(var(--qs-header-h, 78px) + 8px) 6px 6px;
  }

  .qs-home-post-modal__dialog{
    max-height:calc(100dvh - var(--qs-header-h, 78px) - 14px);
    border-radius:20px;
  }

  .qs-home-post-modal__media,
  .qs-home-post-modal__media-inner{
    min-height:240px;
  }

  .qs-home-post-modal__body{
    max-height:calc(100dvh - var(--qs-header-h, 78px) - 14px);
    padding:18px 14px 16px;
  }

  .qs-home-post-modal__head{
    padding-right:50px;
  }

  .qs-home-post-modal__author-name{
    font-size:20px;
  }

  .qs-home-post-modal__counts{
    grid-template-columns:1fr;
  }

  .qs-home-post-modal__count{
    min-height:56px;
  }

  .qs-home-post-modal__comments-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .qs-home-post-modal__comments-head p{
    text-align:left;
  }

  .qs-home-post-modal__comment-form{
    grid-template-columns:1fr;
  }

  .qs-home-post-modal__send{
    width:100%;
  }
}

/* ===== F1 – Post-Modal Finish ===== */
.qs-home-post-modal__dialog{
  width:min(1040px, 100%);
  grid-template-columns:minmax(0, 1.12fr) minmax(340px, 0.88fr);
}

.qs-home-post-modal__body{
  padding:22px 20px 20px;
  gap:0;
}

.qs-home-post-modal__head{
  position:sticky;
  top:0;
  z-index:2;
  margin:-6px -2px 0;
  padding:4px 56px 14px 2px;
  background:linear-gradient(180deg, rgba(255,255,255,0.98) 78%, rgba(255,255,255,0));
  backdrop-filter:blur(8px);
}

.qs-home-post-modal__summary{
  margin-top:16px;
}

.qs-home-post-modal__caption{
  margin-top:16px;
  color:rgba(0,51,102,0.92);
}

.qs-home-post-modal__location[hidden]{
  display:none !important;
}

.qs-home-post-modal__actions{
  margin-top:18px;
}

.qs-home-post-modal__action,
.qs-home-post-modal__send{
  min-height:48px;
}

.qs-home-post-modal__action{
  min-width:168px;
}

.qs-home-post-modal__action.is-public{
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,248,255,0.98));
  border-color:rgba(0,51,102,0.10);
}

.qs-home-post-modal__action.is-public .qs-home-post-modal__action-label{
  color:var(--qs-text);
}

.qs-home-post-modal__comment-form.is-public input{
  background:rgba(247,251,255,0.98);
  border-style:dashed;
  color:rgba(0,51,102,0.72);
  cursor:pointer;
}

.qs-home-post-modal__comment-form.is-public .qs-home-post-modal__send{
  background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(242,248,255,0.98));
  color:var(--qs-text);
  border-color:rgba(0,51,102,0.10);
  box-shadow:none;
}

.qs-home-post-modal__comments-head{
  padding-top:4px;
  border-top:1px solid rgba(0,51,102,0.07);
}

@media (max-width: 860px){
  .qs-home-post-modal__dialog{
    width:min(760px, 100%);
    grid-template-columns:1fr;
  }

  .qs-home-post-modal__body{
    padding:18px 16px 18px;
  }

  .qs-home-post-modal__head{
    margin:-2px 0 0;
    padding:0 52px 12px 0;
  }
}

@media (max-width: 560px){
  .qs-home-post-modal__dialog{
    border-radius:20px;
  }

  .qs-home-post-modal__close{
    width:40px;
    height:40px;
    top:10px;
    right:10px;
  }

  .qs-home-post-modal__action{
    width:100%;
    min-width:0;
  }
}
