/* ============================================================
   NewOlx — OLX.pt-recognisable but a touch more modern.
   Palette is rooted in OLX's dark teal #002f34 + lime accents.
   ============================================================ */

:root {
  color-scheme: light;

  --olx-teal: #002f34;
  --olx-teal-strong: #001b1f;
  --olx-teal-soft: #103a40;
  --olx-lime: #23e5db;
  --olx-lime-strong: #14b7af;
  --olx-orange: #ff5722;

  --page: #f4f6f6;
  --panel: #ffffff;
  --panel-strong: #eef2f2;
  --ink: #002f34;
  --ink-soft: #345055;
  --muted: #67797d;
  --border: #d8dee0;
  --border-soft: #e7ecec;

  --radius-lg: 18px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-soft: 0 4px 16px rgba(0, 47, 52, 0.06);
  --shadow: 0 12px 36px rgba(0, 47, 52, 0.12);
  --ring: 0 0 0 3px rgba(35, 229, 219, 0.35);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------------------------------------
   Topbar (OLX dark-teal)
   ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--olx-teal);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.12);
}

.topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  background: var(--olx-lime);
  color: var(--olx-teal);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.04em;
  border-radius: 8px;
}

.brand-tag {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.topbar-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.topbar-nav a:hover {
  color: #fff;
  border-bottom-color: var(--olx-lime);
}

/* Profile switcher (active user + raw profile link) */
.profile-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-switcher-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-select {
  display: inline-flex;
}

.profile-select select {
  appearance: none;
  -webkit-appearance: none;
  max-width: 160px;
  padding: 6px 26px 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23ffffff' d='M0 0h10L5 6z'/%3E%3C/svg%3E")
    no-repeat right 9px center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.profile-select select:hover {
  border-color: var(--olx-lime);
  background-color: rgba(255, 255, 255, 0.18);
}

.profile-select select:focus-visible {
  outline: 2px solid var(--olx-lime);
  outline-offset: 1px;
}

.profile-select select option {
  color: #1a1a1a;
}

.profile-raw-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.profile-raw-link:hover {
  color: #fff;
  border-bottom-color: var(--olx-lime);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Page shell + blocks
   ------------------------------------------------------------ */

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.block-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.block-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--olx-teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--olx-teal-strong);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn-ghost {
  background: transparent;
  color: var(--olx-teal);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--olx-teal);
  background: var(--panel-strong);
}

/* ------------------------------------------------------------
   Hero + Query Expansion
   ------------------------------------------------------------ */

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f3fbfa 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olx-lime-strong);
  font-weight: 800;
}

.welcome-title {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  color: var(--olx-teal);
}

.welcome-sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.qx-form {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.qx-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qx-input:focus-within {
  border-color: var(--olx-lime-strong);
  box-shadow: var(--ring);
}

.qx-input-icon {
  font-size: 18px;
  opacity: 0.7;
}

.qx-input input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--ink);
}

#qx-submit {
  height: 50px;
  padding: 0 28px;
  font-size: 15px;
}

.qx-meta {
  margin: 4px 4px 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* Query expansion tree */

.qx-tree {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qx-result-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qx-result-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olx-lime-strong);
  font-weight: 800;
}

.qx-result-query {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.qx-open-olx {
  align-self: flex-start;
  margin-top: 10px;
  text-decoration: none;
}

.qx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.qx-specific {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.qx-node {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qx-node-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.qx-node-source {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--panel-strong);
  color: var(--olx-teal);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.qx-node-query {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.qx-node-angle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.qx-offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qx-offer {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  background: #fafbfb;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.qx-offer:hover {
  border-color: var(--olx-lime-strong);
  transform: translateY(-1px);
}

.qx-offer-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #e4ecec center/cover no-repeat;
}

.qx-offer-copy {
  min-width: 0;
}

.qx-offer-title {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.qx-offer-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--olx-lime-strong);
  font-weight: 700;
}

.qx-empty {
  margin: 0;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
}

.qx-node-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.qx-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qx-count {
  color: var(--muted);
  font-size: 12px;
}

/* QX skeleton */
.qx-node-sk {
  min-height: 280px;
}

.qx-node-sk .sk-title {
  height: 18px;
}

.qx-node-sk .sk-line {
  height: 12px;
  width: 80%;
}

.qx-node-sk .sk-offer {
  height: 56px;
  border-radius: 10px;
}

/* ------------------------------------------------------------
   Suggestions
   ------------------------------------------------------------ */

.suggestions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.suggestion-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 270px;
}

.suggestion-card:not(.sk):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--olx-lime-strong);
}

.suggestion-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--panel-strong);
  color: var(--olx-teal);
}

.suggestion-card[data-kind="profile"] .suggestion-pill,
.suggestion-card[data-kind="repeat"] .suggestion-pill,
.suggestion-card[data-kind="predicted"] .suggestion-pill,
.suggestion-card[data-kind="discover"] .suggestion-pill {
  background: rgba(35, 229, 219, 0.18);
  color: var(--olx-lime-strong);
}

.suggestion-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.suggestion-query {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suggestion-previews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.preview {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: #e4ecec center/cover no-repeat;
  overflow: hidden;
}

.preview.missing {
  background: repeating-linear-gradient(45deg, #e4ecec, #e4ecec 8px, #eef2f2 8px, #eef2f2 16px);
}

.preview-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 7px 5px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 27, 31, 0.92) 0%, rgba(0, 27, 31, 0.55) 60%, rgba(0, 27, 31, 0) 100%);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-cta {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--olx-lime-strong);
}

/* Suggestion skeleton */
.suggestion-card.sk {
  pointer-events: none;
}

.suggestion-card.sk .sk-pill {
  height: 14px;
  width: 70px;
  border-radius: var(--radius-pill);
}

.suggestion-card.sk .sk-title {
  height: 22px;
}

.suggestion-card.sk .sk-cta {
  height: 16px;
  width: 130px;
  margin-top: 4px;
}

/* ------------------------------------------------------------
   Chat tile + inline
   ------------------------------------------------------------ */

.chat-tile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #02464d 0%, #002f34 60%);
  color: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--olx-teal-soft);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.chat-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.chat-tile.chat-tile-sk {
  pointer-events: none;
}

.chat-ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--olx-lime);
  color: var(--olx-teal);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 12px;
  flex-shrink: 0;
}

.chat-tile-body {
  flex: 1;
  min-width: 0;
}

.chat-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.chat-topic {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.chat-question {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.4;
}

.chat-tile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--olx-lime);
  color: var(--olx-teal);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
  flex-shrink: 0;
}

/* Inline chat */
.chat-inline {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.chat-inline.open {
  opacity: 1;
  transform: translateY(0);
}

.chat-thread {
  max-height: 360px;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fafbfb;
}

.chat-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}

.chat-msg p {
  margin: 0;
}

.chat-msg ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.chat-msg-assistant {
  align-self: flex-start;
  background: var(--panel-strong);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}

.chat-msg-user {
  align-self: flex-end;
  background: var(--olx-teal);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg.typing {
  padding: 12px 14px;
}

.chat-msg code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #d8e2e2;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  background: #fff;
}

.chat-input input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--panel-strong);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.chat-input input:focus-visible {
  border-color: var(--olx-lime-strong);
  box-shadow: var(--ring);
}

#chat-send {
  padding: 10px 22px;
}

/* ------------------------------------------------------------
   Highlights feed
   ------------------------------------------------------------ */

.feed-head {
  align-items: center;
  text-align: center;
}

.feed-title {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: inherit;
}

.feed-card:not(.feed-sk):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feed-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #e4ecec center/cover no-repeat;
}

.feed-image.missing {
  background: repeating-linear-gradient(45deg, #e4ecec, #e4ecec 10px, #eef2f2 10px, #eef2f2 20px);
}

.feed-bucket-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(0, 47, 52, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.feed-bucket-pill.global {
  background: rgba(0, 47, 52, 0.85);
}

.feed-bucket-pill.category {
  background: rgba(35, 229, 219, 0.92);
  color: var(--olx-teal);
}

.feed-body {
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feed-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
}

.feed-card-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.feed-card-price {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--olx-teal);
}

.feed-card-price:empty {
  display: none;
}

/* Feed skeletons */

.feed-sk {
  pointer-events: none;
}

.feed-sk .feed-image {
  background: none;
}

.feed-title-line {
  height: 14px;
}

.feed-meta-line {
  height: 12px;
  width: 60%;
}

.feed-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.feed-end {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.feed-sentinel {
  height: 1px;
}

/* ------------------------------------------------------------
   Shared: shimmer & typing dots
   ------------------------------------------------------------ */

.shimmer {
  position: relative;
  background: linear-gradient(90deg, #e4ecec, #f3f7f7, #e4ecec);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}

.shimmer.wide {
  width: 70%;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olx-lime-strong);
  animation: typing 1.1s ease-in-out infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 900px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .topbar-nav {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    padding: 26px 20px;
  }

  .qx-row {
    grid-template-columns: 1fr;
  }

  #qx-submit {
    height: 48px;
    width: 100%;
  }

  .suggestions {
    grid-template-columns: 1fr;
  }

  .suggestion-card {
    min-height: auto;
  }

  .qx-grid,
  .qx-specific {
    grid-template-columns: 1fr;
  }

  .chat-tile {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: left;
  }

  .chat-tile-cta {
    align-self: flex-start;
  }

  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .feed-card-title {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .feed {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
