/* Homepage readability fix 20261005 — DESKTOP only (min-width 1025px).
   Melisa PickMe: 4 rows with real thumbs. Jobs: ~2 tile-cols wide. */

@media (min-width: 1025px) {
  /* Jobs: 1 col, FULL row height aligned with news; dense list */
  .v2-discover-primary:has(#cardJobsWidget) {
    display: grid !important;
    grid-template-columns: minmax(210px, 1.25fr) repeat(4, minmax(0, 1fr)) !important;
    column-gap: 10px !important;
    align-items: stretch !important;
  }
  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget) {
    grid-column: 1 / 2 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important; /* was 340 — fill discover, never clip footer */
    align-self: stretch !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .v2-discover-primary > .v2-city-today {
    grid-column: 2 / -1 !important;
    min-width: 0 !important;
    min-height: 0 !important; /* was 340 — fill discover, never clip footer */
    align-self: stretch !important;
  }

  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important; /* was 340 — fill discover, never clip footer */
    max-height: none !important;
    padding: 10px 9px 8px !important;
    gap: 6px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #faf5ed !important;
    border: 1px solid #ded3c4 !important;
    border-radius: 12px !important;
  }
  #cardJobsWidget .lwl-jobs-stats-grid,
  #cardJobsWidget .lwl-jobs-cards-stack,
  #cardJobsWidget .lwl-jobs-footer,
  #cardJobsWidget .lwl-jobs-radius-badge {
    display: none !important;
  }
  #cardJobsWidget .lwl-jobs-head {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #cardJobsWidget .lwl-jobs-head-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #cardJobsWidget .lwl-jobs-head-title strong {
    font-size: 13px !important;
    font-weight: 750 !important;
    color: #0D3C26 !important;
    letter-spacing: -0.2px !important;
  }
  #cardJobsWidget .lwl-jobs-icon {
    color: #1e4d38 !important;
    flex: none !important;
  }
  #cardJobsWidget .lwl-jobs-meta {
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    font: 600 10px/1.35 Arial, Helvetica, sans-serif !important;
    color: #5c5348 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: hidden !important; /* no inner scroll — rotate instead */
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.28s ease, transform 0.28s ease !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list.is-out {
    opacity: 0 !important;
    transform: translateY(4px) !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list.is-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list .lwl-job-row {
    flex: 0 0 auto !important; /* content-sized — no huge empty cards */
    min-height: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: flex !important;
    width: 100% !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list .lwl-job-row-link {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  #cardJobsWidget .lwl-job-row {
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
  }
  #cardJobsWidget .lwl-job-row-link {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
    border: 1px solid #e6dccf !important;
    background: #fffdf8 !important;
    text-decoration: none !important;
    color: inherit !important;
    overflow: hidden !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s ease, background 0.15s ease !important;
  }
  #cardJobsWidget .lwl-job-row-link:hover {
    border-color: #1e4d38 !important;
    background: #f3f8f5 !important;
  }
  #cardJobsWidget .lwl-job-row-title {
    font: 750 11.5px/1.25 Arial, Helvetica, sans-serif !important;
    color: #17130f !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
    max-width: 100% !important;
    word-break: break-word !important;
  }
  #cardJobsWidget .lwl-job-row-sub {
    font: 600 10px/1.25 Arial, Helvetica, sans-serif !important;
    color: #6e6054 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  #cardJobsWidget .lwl-job-row-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 4px !important;
    margin-top: 2px !important;
  }
  #cardJobsWidget .lwl-job-row-date {
    font: 600 9.5px/1 Arial, Helvetica, sans-serif !important;
    color: #8a7a6c !important;
  }
  #cardJobsWidget .lwl-job-row-chip {
    font: 700 8.5px/1 Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: #1e4d38 !important;
    background: #e8efe9 !important;
    border: 1px solid #c9d9cf !important;
    border-radius: 999px !important;
    padding: 2px 5px !important;
    white-space: nowrap !important;
  }
  #cardJobsWidget .lwl-job-row--empty {
    font: 600 11px/1.3 Arial, Helvetica, sans-serif !important;
    color: #8a7a6c !important;
    padding: 8px !important;
  }
  #cardJobsWidget .lwl-jobs-dense-foot {
    flex: 0 0 auto !important;
    padding-top: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }
  #cardJobsWidget .lwl-jobs-rotate-counter {
    font: 700 10.5px/1.2 Arial, Helvetica, sans-serif !important;
    color: #1e4d38 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }
  #cardJobsWidget .lwl-jobs-more {
    display: inline-block !important;
    font: 750 11.5px/1.2 Arial, Helvetica, sans-serif !important;
    color: #1e4d38 !important;
    text-decoration: none !important;
  }
  #cardJobsWidget .lwl-jobs-more:hover {
    text-decoration: underline !important;
  }

  /* News tiles: full-bleed photo + bottom overlay (do NOT break absolute layout) */
  #cityTodayPanel,
  .v2-discover-primary > .v2-city-today {
    min-height: 0 !important;
    align-self: stretch !important;
  }
  #cityTodayPanel .city-today-grid {
    gap: 8px !important;
    min-height: 0 !important;
    height: 100% !important;
  }

  /* Melisa PickMe: 2 full rows + carousel (no mid-row clip) */
  #cardPickMeStudio,
  .v2-pickme-studio-card {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
  }
  #cardPickMeStudio .pms-stage,
  #cardPickMeStudio .pms-stage.mc-stage,
  #cardPickMeStudio .pms-stage--video,
  #pmsStage.mc-stage,
  .v2-pickme-studio-card .mc-stage,
  .v2-pickme-studio-card .pms-stage {
    height: auto !important;
    min-height: 168px !important;
    max-height: none !important;
    padding: 8px 8px 6px !important;
    gap: 0 !important;
    background: #fffdf9 !important;
    border: 1px solid #ded3c4 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  #pmsStage .mc-carousel-rows,
  .mc-stage--carousel .mc-carousel-rows {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }
  #pmsStage.mc-stage .mc-row,
  .v2-pickme-studio-card .mc-stage .mc-row {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 64px !important;
    height: 64px !important;
    max-height: 64px !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #pmsStage.mc-stage .mc-th,
  .v2-pickme-studio-card .mc-stage .mc-th {
    flex: 0 0 92px !important;
    width: 92px !important;
    height: 56px !important;
    max-height: 56px !important;
    border-radius: 8px !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #ede4d6 !important;
  }
  #pmsStage.mc-stage .mc-th i,
  .v2-pickme-studio-card .mc-stage .mc-th i {
    font: 700 8px/1 Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    padding: 2px 4px !important;
    max-width: calc(100% - 6px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  #pmsStage.mc-stage .mc-k,
  .v2-pickme-studio-card .mc-stage .mc-k {
    font: 700 11px/1.25 Arial, Helvetica, sans-serif !important;
    color: #1e4d38 !important;
  }
  #pmsStage.mc-stage .mc-t,
  .v2-pickme-studio-card .mc-stage .mc-t {
    font: 700 13.5px/1.3 Arial, Helvetica, sans-serif !important;
    color: #17130f !important;
    -webkit-line-clamp: 2 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  #pmsStage.mc-stage .mc-foot,
  .v2-pickme-studio-card .mc-stage .mc-foot {
    font: 600 11px/1.25 Arial, Helvetica, sans-serif !important;
    padding: 6px 2px 2px !important;
    flex: 0 0 auto !important;
  }
  .mc-stage .mc-dots {
    display: flex !important;
    gap: 5px !important;
    justify-content: center !important;
    padding: 4px 0 2px !important;
    flex: 0 0 auto !important;
  }
  .mc-stage .mc-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    border: 0 !important;
    padding: 0 !important;
    background: rgba(30, 77, 56, 0.28) !important;
    cursor: pointer !important;
  }
  .mc-stage .mc-dot.is-active {
    background: #1e4d38 !important;
    transform: scale(1.15) !important;
  }


}

/* ============================================================
   Melisa assistant card: no input-over-buttons overlap 20261005
   Desktop ≥1025 only. PickMe / jobs / news untouched.
   ============================================================ */
@media (min-width: 1025px) {
  .v2-right-stack .v2-assistant,
  #rightSideStack > .v2-assistant {
    flex: 0 0 auto !important; /* do not grow — kill empty water under input */
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    padding-bottom: 12px !important;
  }
  /* When chat open, allow grow again */
  .v2-right-stack .v2-assistant.chat-active,
  #rightSideStack > .v2-assistant.chat-active {
    flex: 1 1 auto !important;
  }
  .v2-right-stack .v2-assistant .response-card-wrapper {
    flex: 0 0 auto !important;
  }
  .v2-right-stack .v2-assistant.chat-active .response-card-wrapper {
    flex: 1 1 auto !important;
  }

  .v2-right-stack .v2-assistant .v2-intro,
  .v2-right-stack .v2-assistant:not(.chat-active) .v2-intro {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
  }

  .v2-right-stack .v2-assistant .v2-orb {
    width: 72px !important;
    height: 72px !important;
    margin: 2px auto 10px !important;
    flex: 0 0 auto !important;
  }

  .v2-right-stack .v2-assistant .melisa-intro-copy {
    flex: 0 0 auto !important;
  }

  .v2-right-stack .v2-assistant .v2-intro h2 {
    font-size: 20px !important;
    margin-bottom: 6px !important;
  }

  .v2-right-stack .v2-assistant .melisa-pitch {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
  }

  /* Bridge = 3 action buttons — compact, fully above input */
  .v2-right-stack .v2-assistant .melisa-bridge {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    gap: 8px !important;
  }

  .v2-right-stack .v2-assistant .melisa-bridge-label {
    font-size: 12.5px !important;
    margin: 0 !important;
  }

  .v2-right-stack .v2-assistant .melisa-bridge-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .v2-right-stack .v2-assistant .melisa-bridge-item {
    min-height: 42px !important;
    height: auto !important;
    padding: 6px 10px !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }

  .v2-right-stack .v2-assistant .melisa-bridge-item svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }

  .v2-right-stack .v2-assistant .melisa-bridge-item strong {
    font-size: 13px !important;
  }

  .v2-right-stack .v2-assistant .melisa-bridge-item small {
    font-size: 10.5px !important;
  }

  .v2-right-stack .v2-assistant .melisa-bridge-item b {
    font-size: 16px !important;
  }

  /* Input row strictly below buttons — no overlap */
  .v2-right-stack .v2-assistant .melisa-bottom-bar,
  .v2-right-stack .v2-assistant:not(.chat-active) .melisa-bottom-bar {
    flex: 0 0 auto !important;
    margin-top: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .v2-right-stack .v2-assistant .melisa-form {
    height: 48px !important;
  }
}


/* ============================================================
   discover-above-footer-20261005
   Fixed-viewport: discover row must end ABOVE .v2-footer.
   Shrink hero/tiles proportionally; jobs/news fill remaining.
   ============================================================ */
@media (min-width: 1025px) {
  .v2-page {
    gap: 10px !important; /* small air between main/discover and footer */
  }
  .v2-footer {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 6 !important;
    padding: 8px 28px !important;
    min-height: 0 !important;
    margin-top: 0 !important;
  }
  #rightSideStack {
    max-height: 100% !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
  }

  /* Free vertical budget for discover */
  .v2-hero {
    height: clamp(200px, 22vh, 320px) !important;
    min-height: 0 !important;
    max-height: 34vh !important;
  }

  .v2-main {
    row-gap: 8px !important;
  }

  .v2-tiles {
    grid-template-rows: minmax(52px, 64px) minmax(52px, 64px) !important;
    gap: 8px !important;
  }
  .v2-tile {
    min-height: 0 !important;
    padding: 6px 8px !important;
  }
  .v2-tile svg {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
  }
  .v2-tile strong { font-size: 12.5px !important; }
  .v2-tile small { font-size: 10.5px !important; }

  .v2-directory-header { margin: 0 0 4px 0 !important; }
  .v2-directory-header h2 { font-size: 18px !important; }

  .v2-discover {
    grid-row: 3 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    margin: 0 !important;
    align-self: stretch !important;
  }

  .v2-discover-primary,
  .v2-discover-primary:has(#cardJobsWidget) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    align-items: stretch !important;
  }

  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  .v2-discover-primary > .v2-city-today,
  #cityTodayPanel {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }

  #cardJobsWidget .lwl-jobs-dense-foot {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 4px !important;
    min-height: 22px !important;
  }
  #cardJobsWidget .lwl-jobs-rotate-counter,
  #cardJobsWidget .lwl-jobs-more {
    flex: 0 0 auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  #cityTodayPanel .city-today-grid {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: 100% !important;
    gap: 8px !important;
  }

  #cityTodayPanel .city-news-card,
  #cityTodayPanel .city-today-grid .city-news-card {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #cityTodayPanel .city-news-photo,
  #cityTodayPanel .city-news-card .city-news-media {
    flex: 0 1 42% !important;
    min-height: 56px !important;
    max-height: 110px !important;
    height: auto !important;
  }

  #cityTodayPanel .city-news-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 8px 10px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    overflow: hidden !important;
  }

  #cityTodayPanel .city-news-title,
  #cityTodayPanel .city-today-grid .city-news-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    font-size: 13.5px !important;
    line-height: 1.28 !important;
    font-weight: 750 !important;
    max-height: calc(1.28em * 3) !important;
  }

  #cityTodayPanel .city-news-meta,
  #cityTodayPanel .city-news-source {
    font-size: 11px !important;
    flex: 0 0 auto !important;
  }
}

/* Extra-tight viewports (720–800): more budget to discover */
@media (min-width: 1025px) and (max-height: 800px) {
  .v2-hero {
    height: clamp(180px, 20vh, 240px) !important;
    max-height: 240px !important;
  }
  .v2-tiles {
    grid-template-rows: 52px 52px !important;
    gap: 6px !important;
  }
  .v2-directory-header h2 { font-size: 16px !important; }
  #cityTodayPanel .city-news-title,
  #cityTodayPanel .city-today-grid .city-news-title {
    -webkit-line-clamp: 2 !important;
    max-height: calc(1.28em * 2) !important;
    font-size: 12.5px !important;
  }
  #cityTodayPanel .city-news-photo,
  #cityTodayPanel .city-news-card .city-news-media {
    max-height: 80px !important;
    min-height: 48px !important;
  }
}

@media (min-width: 1025px) and (max-height: 720px) {
  .v2-hero {
    height: 170px !important;
    max-height: 170px !important;
  }
  .v2-tiles {
    grid-template-rows: 48px 48px !important;
  }
}


/* ============================================================
   homepage-regfix-20261005
   Restore full-bleed news photos + compact jobs + right-col above footer.
   ============================================================ */
@media (min-width: 1025px) {
  /* --- NEWS: absolute full-bleed photo, body overlay at bottom --- */
  #cityTodayPanel .city-news-card,
  #cityTodayPanel .city-today-grid .city-news-card,
  #cityTodayPanel .city-news-slot > .city-news-card {
    display: block !important;
    position: relative !important;
    flex-direction: unset !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    background: #1a2e24 !important;
  }
  #cityTodayPanel .city-news-photo,
  #cityTodayPanel .city-news-card .city-news-media,
  #cityTodayPanel .city-news-card .city-news-photo {
    position: absolute !important;
    inset: 0 !important;
    flex: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: hidden !important;
    background-color: #1a2e24 !important;
  }
  #cityTodayPanel .city-news-photo img,
  #cityTodayPanel .city-news-card img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
  #cityTodayPanel .city-news-photo::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, transparent 42%, rgba(10, 24, 18, 0.55) 72%, rgba(10, 24, 18, 0.88) 100%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
  }
  #cityTodayPanel .city-news-body {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 2 !important;
    flex: none !important;
    min-height: 0 !important;
    padding: 8px 10px 9px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    background: transparent !important;
    overflow: hidden !important;
  }
  #cityTodayPanel .city-news-title,
  #cityTodayPanel .city-today-grid .city-news-title {
    position: static !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    max-height: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35) !important;
  }
  #cityTodayPanel .city-news-meta,
  #cityTodayPanel .city-news-source {
    color: rgba(255,255,255,0.82) !important;
    font-size: 10px !important;
  }

  /* --- JOBS: compact content-sized rows, no right clip, no empty stretch --- */
  #cardJobsWidget .lwl-jobs-dense-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    justify-content: space-between !important; /* distribute compact rows, no big empty hole */
    gap: 4px !important;
    overflow: hidden !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list .lwl-job-row,
  #cardJobsWidget .lwl-job-row {
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  #cardJobsWidget .lwl-job-row-link {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 5px 7px !important;
  }
  #cardJobsWidget .lwl-job-row-title,
  #cardJobsWidget .lwl-job-row-sub,
  #cardJobsWidget .lwl-job-row-meta {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  #cardJobsWidget .lwl-job-row-chip {
    flex: 0 1 auto !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 46% !important;
  }

  /* --- RIGHT COLUMN: Melisa + PickMe end above footer --- */
  #rightSideStack,
  .v2-right-stack {
    max-height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
  #rightSideStack > .v2-assistant,
  .v2-right-stack .v2-assistant {
    flex: 0 1 auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .v2-right-stack .v2-assistant .v2-orb {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 6px !important;
  }
  .v2-right-stack .v2-assistant .v2-intro h2 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }
  .v2-right-stack .v2-assistant .melisa-pitch {
    font-size: 12px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge {
    margin: 8px 0 0 !important;
    gap: 6px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item {
    min-height: 36px !important;
    padding: 4px 8px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item strong { font-size: 12px !important; }
  .v2-right-stack .v2-assistant .melisa-bridge-item small { font-size: 10px !important; }
  .v2-right-stack .v2-assistant .melisa-form { height: 44px !important; }
  .v2-right-stack .v2-assistant .melisa-bottom-bar { margin-top: 8px !important; }

  #rightSideStack #cardPickMeStudio,
  .v2-right-stack #cardPickMeStudio,
  .v2-right-stack .v2-pickme-studio-card {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 8px 9px 8px !important;
  }
  #cardPickMeStudio .pms-stage,
  #cardPickMeStudio .pms-stage.mc-stage,
  #pmsStage.mc-stage {
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    padding: 6px !important;
  }
  #pmsStage.mc-stage .mc-row,
  .v2-pickme-studio-card .mc-stage .mc-row {
    min-height: 48px !important;
    height: 48px !important;
    max-height: 48px !important;
    gap: 8px !important;
    padding: 2px 4px !important;
  }
  #pmsStage.mc-stage .mc-th,
  .v2-pickme-studio-card .mc-stage .mc-th {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 44px !important;
    max-height: 44px !important;
  }
  #pmsStage.mc-stage .mc-t,
  .v2-pickme-studio-card .mc-stage .mc-t {
    font-size: 12px !important;
    -webkit-line-clamp: 2 !important;
  }
}

@media (min-width: 1025px) and (max-height: 800px) {
  .v2-right-stack .v2-assistant .v2-orb {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 4px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item {
    min-height: 34px !important;
    padding: 3px 7px !important;
  }
  #pmsStage.mc-stage .mc-row,
  .v2-pickme-studio-card .mc-stage .mc-row {
    min-height: 44px !important;
    height: 44px !important;
    max-height: 44px !important;
  }
  /* neutralize earlier max-height photo strip rules */
  #cityTodayPanel .city-news-photo,
  #cityTodayPanel .city-news-card .city-news-media {
    max-height: none !important;
    min-height: 0 !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
  }
}


/* ============================================================
   homepage-balance-20261005
   Cap discover (jobs+news) ~360px — jobs stay compact, not watery.
   Give remaining right-column height to PickMe (larger thumbs).
   Melisa assistant stays compact. ~8–16px air above footer.
   Desktop ≥1025 only. /m/ untouched.
   ============================================================ */
@media (min-width: 1025px) {
  /* --- Discover row: hard height cap, pin above footer --- */
  .v2-discover {
    height: 360px !important;
    max-height: 360px !important;
    min-height: 0 !important;
    align-self: end !important;
    overflow: hidden !important;
    margin: 0 !important;
  }
  .v2-discover-primary,
  .v2-discover-primary:has(#cardJobsWidget) {
    height: 100% !important;
    max-height: 360px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget),
  .v2-discover-primary > .v2-city-today,
  #cityTodayPanel {
    height: 100% !important;
    max-height: 360px !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  /* Jobs: fill capped tile, content-sized rows (no watery stretch) */
  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    height: 100% !important;
    max-height: 360px !important;
    min-height: 0 !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list {
    justify-content: flex-start !important;
    gap: 5px !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list .lwl-job-row,
  #cardJobsWidget .lwl-job-row {
    flex: 0 0 auto !important;
    height: auto !important;
  }
  #cardJobsWidget .lwl-jobs-dense-foot {
    flex: 0 0 auto !important;
    margin-top: auto !important;
  }

  /* News: keep full-bleed photo inside capped height */
  #cityTodayPanel .city-news-card,
  #cityTodayPanel .city-today-grid .city-news-card {
    height: 100% !important;
    max-height: 100% !important;
  }

  /* --- Right column: Melisa compact, PickMe takes leftover --- */
  #rightSideStack,
  .v2-right-stack {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  #rightSideStack > .v2-assistant,
  .v2-right-stack .v2-assistant,
  .v2-right-stack .v2-assistant:not(.chat-active) {
    flex: 0 0 auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .v2-right-stack .v2-assistant .v2-orb {
    width: 56px !important;
    height: 56px !important;
    margin: 0 auto 6px !important;
  }
  .v2-right-stack .v2-assistant .v2-intro h2 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }
  .v2-right-stack .v2-assistant .melisa-pitch {
    font-size: 12px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge {
    margin: 8px 0 0 !important;
    gap: 6px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item {
    min-height: 36px !important;
    padding: 4px 8px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bottom-bar {
    margin-top: 8px !important;
    flex: 0 0 auto !important;
  }
  .v2-right-stack .v2-assistant .melisa-form {
    height: 44px !important;
  }

  #rightSideStack #cardPickMeStudio,
  .v2-right-stack #cardPickMeStudio,
  .v2-right-stack .v2-pickme-studio-card {
    flex: 1 1 auto !important;
    min-height: 220px !important;
    max-height: none !important;
    height: auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 10px 9px !important;
    box-sizing: border-box !important;
  }
  #cardPickMeStudio .pms-head,
  .v2-pickme-studio-card .pms-head {
    flex: 0 0 auto !important;
  }
  #cardPickMeStudio .pms-stage,
  #cardPickMeStudio .pms-stage.mc-stage,
  #pmsStage.mc-stage {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-evenly !important;
    gap: 6px !important;
    padding: 8px !important;
  }
  #pmsStage.mc-stage .mc-row,
  .v2-pickme-studio-card .mc-stage .mc-row {
    flex: 0 0 auto !important;
    min-height: 64px !important;
    height: 64px !important;
    max-height: 72px !important;
    gap: 10px !important;
    padding: 4px 6px !important;
  }
  #pmsStage.mc-stage .mc-th,
  .v2-pickme-studio-card .mc-stage .mc-th {
    flex: 0 0 96px !important;
    width: 96px !important;
    height: 56px !important;
    max-height: 56px !important;
  }
  #pmsStage.mc-stage .mc-th i,
  .v2-pickme-studio-card .mc-stage .mc-th i {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
  }
  #pmsStage.mc-stage .mc-t,
  .v2-pickme-studio-card .mc-stage .mc-t {
    font-size: 13px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }
  #pmsStage.mc-stage .mc-k,
  .v2-pickme-studio-card .mc-stage .mc-k {
    font-size: 10px !important;
  }

  /* Footer air */
  .v2-page {
    gap: 0 !important;
  }
  .v2-footer {
    flex: 0 0 auto !important;
    padding: 10px 28px !important;
    margin-top: 0 !important;
  }
  .v2-main {
    padding-bottom: 0 !important;
    row-gap: 10px !important;
  }
}

/* Tall screens: keep discover capped; PickMe can show 3 roomy rows */
@media (min-width: 1025px) and (min-height: 900px) {
  .v2-discover {
    height: 360px !important;
    max-height: 360px !important;
  }
  #pmsStage.mc-stage .mc-row,
  .v2-pickme-studio-card .mc-stage .mc-row {
    min-height: 68px !important;
    height: 68px !important;
    max-height: 76px !important;
  }
  #pmsStage.mc-stage .mc-th,
  .v2-pickme-studio-card .mc-stage .mc-th {
    flex: 0 0 104px !important;
    width: 104px !important;
    height: 60px !important;
    max-height: 60px !important;
  }
}

/* Shorter laptop screens: slightly tighter discover + PickMe rows */
@media (min-width: 1025px) and (max-height: 800px) {
  .v2-discover {
    height: 320px !important;
    max-height: 320px !important;
  }
  .v2-discover-primary,
  .v2-discover-primary:has(#cardJobsWidget),
  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget),
  .v2-discover-primary > .v2-city-today,
  #cityTodayPanel,
  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    max-height: 320px !important;
  }
  #pmsStage.mc-stage .mc-row,
  .v2-pickme-studio-card .mc-stage .mc-row {
    min-height: 52px !important;
    height: 52px !important;
    max-height: 56px !important;
  }
  #pmsStage.mc-stage .mc-th,
  .v2-pickme-studio-card .mc-stage .mc-th {
    flex: 0 0 80px !important;
    width: 80px !important;
    height: 46px !important;
    max-height: 46px !important;
  }
}

/* ============================================================
   homepage-pickme-height-20261005
   All bottom columns = PickMe Studio card height.
   Jobs + News + PickMe share one height, bottoms flush on the
   footer line; the row settles DOWN (no upward stretch).
   Desktop ≥1025 only. /m/ untouched.
   ============================================================ */
@media (min-width: 1025px) {
  :root { --ll-pm-h: 298px; }
}
@media (min-width: 1025px) and (min-height: 900px) {
  :root { --ll-pm-h: 306px; }
}
@media (min-width: 1025px) and (max-height: 800px) {
  :root { --ll-pm-h: 274px; }
}
@media (min-width: 1025px) {
  /* Discover row (jobs + news) = PickMe height, pinned to bottom */
  .v2-discover,
  .v2-discover-primary,
  .v2-discover-primary:has(#cardJobsWidget),
  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget),
  .v2-discover-primary > .v2-city-today,
  #cityTodayPanel,
  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    height: var(--ll-pm-h) !important;
    max-height: var(--ll-pm-h) !important;
    min-height: 0 !important;
  }
  .v2-discover {
    align-self: end !important;
    margin: 0 !important;
  }
  /* Right column: Melisa on top, PickMe pressed to the bottom */
  #rightSideStack,
  .v2-right-stack {
    justify-content: space-between !important;
  }
  #rightSideStack > #bottomSideStack,
  .v2-right-stack > .v2-bottom-side-stack {
    flex: 0 0 var(--ll-pm-h) !important;
    height: var(--ll-pm-h) !important;
    max-height: var(--ll-pm-h) !important;
    min-height: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
  }
  #rightSideStack #cardPickMeStudio,
  .v2-right-stack #cardPickMeStudio,
  .v2-right-stack .v2-pickme-studio-card {
    flex: 1 1 auto !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }
}
/* Jobs at PickMe height: 3 uniform rows fit (1-line titles, 2-line meta) */
@media (min-width: 1025px) {
  #cardJobsWidget .lwl-jobs-meta {
    -webkit-line-clamp: 2 !important;
  }
  #cardJobsWidget .lwl-job-row-title {
    display: block !important;
    -webkit-line-clamp: unset !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}
/* Laptop height: trim Melisa so PickMe keeps its full height */
@media (min-width: 1025px) and (max-height: 800px) {
  #rightSideStack,
  .v2-right-stack { gap: 6px !important; }
  .v2-right-stack .v2-assistant .v2-orb {
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto 4px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item {
    min-height: 32px !important;
  }
  .v2-right-stack .v2-assistant .melisa-form {
    height: 40px !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list { gap: 4px !important; }
  #cardJobsWidget .lwl-job-row-link,
  #cardJobsWidget .lwl-jobs-dense-list .lwl-job-row-link {
    padding: 3px 7px !important;
  }
}
/* Very short viewports: drop the pitch line, smaller orb */
@media (min-width: 1025px) and (max-height: 740px) {
  .v2-right-stack .v2-assistant .melisa-pitch {
    display: none !important;
  }
  .v2-right-stack .v2-assistant .v2-orb {
    width: 32px !important;
    height: 32px !important;
    margin: 0 auto 2px !important;
  }
}

/* ============================================================
   homepage-no-gap-20261005
   Kill cream void between categories (#bereiche) and discover
   row. Cause was grid row 3 = 1fr + align-self:end on a shorter
   discover → leftover coffee bg above jobs/news/PickMe.
   Fix: leftover vertical budget goes into HERO (1fr), discover
   row is auto + align-self:start so it sits tight under tiles.
   Keep --ll-pm-h equal heights, bottoms flush above footer,
   PickMe pressed down via right-stack space-between. Desktop
   ≥1025 only. /m/ untouched. Do NOT stretch columns upward.
   ============================================================ */
@media (min-width: 1025px) {
  /* Leftover → hero; dir + discover content-sized */
  .v2-main {
    grid-template-rows: minmax(0, 1fr) auto auto !important;
    row-gap: 8px !important;
    align-content: stretch !important;
  }

  /* Hero absorbs the former cream void */
  .v2-hero {
    grid-row: 1 !important;
    height: 100% !important;
    min-height: 170px !important;
    max-height: none !important;
    align-self: stretch !important;
  }

  /* Directory stays content-sized in row 2 */
  .v2-directory,
  #bereiche {
    grid-row: 2 !important;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Discover = PickMe height, pinned to TOP of its auto row
     (was align-self:end → cream gap). Bottoms still meet footer
     because row 3 is the last main row. */
  .v2-discover {
    grid-row: 3 !important;
    align-self: start !important;
    height: var(--ll-pm-h) !important;
    max-height: var(--ll-pm-h) !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  .v2-discover-primary,
  .v2-discover-primary:has(#cardJobsWidget),
  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget),
  .v2-discover-primary > .v2-city-today,
  #cityTodayPanel,
  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    height: var(--ll-pm-h) !important;
    max-height: var(--ll-pm-h) !important;
    min-height: 0 !important;
  }

  /* Right column still spans full main; PickMe stays at bottom
     so its bottom edge matches jobs/news above the footer. */
  #rightSideStack,
  .v2-right-stack {
    justify-content: space-between !important;
  }
  #rightSideStack > #bottomSideStack,
  .v2-right-stack > .v2-bottom-side-stack {
    flex: 0 0 var(--ll-pm-h) !important;
    height: var(--ll-pm-h) !important;
    max-height: var(--ll-pm-h) !important;
    min-height: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
  }

  /* Footer flush under the row */
  .v2-page {
    gap: 0 !important;
    justify-content: flex-start !important;
  }
  .v2-footer {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
}

/* Tall screens: hero can grow; keep discover at PickMe height */
@media (min-width: 1025px) and (min-height: 900px) {
  .v2-discover,
  .v2-discover-primary,
  .v2-discover-primary:has(#cardJobsWidget),
  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget),
  .v2-discover-primary > .v2-city-today,
  #cityTodayPanel,
  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    height: var(--ll-pm-h) !important;
    max-height: var(--ll-pm-h) !important;
  }
}

/* Short laptops: keep hero readable, discover still tight under cats */
@media (min-width: 1025px) and (max-height: 800px) {
  .v2-hero {
    min-height: 160px !important;
  }
  .v2-main {
    row-gap: 6px !important;
  }
}
@media (min-width: 1025px) and (max-height: 720px) {
  .v2-hero {
    min-height: 140px !important;
  }
}


/* ============================================================
   homepage-melisa-align-20261005
   1) Drop Melisa flush onto PickMe (kill mid-column void from
      space-between / margin-top:auto on tall screens).
   2) Undo Melisa squeeze on normal heights — roomier orb,
      buttons, input. Short laptops keep prior compact rules.
   3) Hide leftover KI badges/watermarks on PickMe thumbs & foot
      (JS also strips them). Titles + images only.
   4) Keep bottoms of jobs/news/PickMe flush; grid stays aligned.
   Desktop ≥1025 only. /m/ untouched.
   ============================================================ */
@media (min-width: 1025px) {
  /* Right column: pack Melisa + PickMe to the BOTTOM, no mid gap */
  #rightSideStack,
  .v2-right-stack {
    justify-content: flex-end !important;
    gap: 10px !important;
  }
  #rightSideStack > #bottomSideStack,
  .v2-right-stack > .v2-bottom-side-stack {
    margin-top: 0 !important; /* was auto → created the cream void */
    flex: 0 0 var(--ll-pm-h) !important;
    height: var(--ll-pm-h) !important;
    max-height: var(--ll-pm-h) !important;
  }
  #rightSideStack > .v2-assistant,
  .v2-right-stack .v2-assistant,
  .v2-right-stack .v2-assistant:not(.chat-active) {
    flex: 0 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 10px !important;
  }

  /* Roomier Melisa (normal / tall viewports) */
  .v2-right-stack .v2-assistant .v2-orb {
    width: 68px !important;
    height: 68px !important;
    margin: 4px auto 10px !important;
  }
  .v2-right-stack .v2-assistant .v2-intro h2 {
    font-size: 19px !important;
    margin-bottom: 6px !important;
  }
  .v2-right-stack .v2-assistant .melisa-pitch {
    font-size: 13px !important;
    line-height: 1.4 !important;
    display: block !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge {
    margin: 12px 0 0 !important;
    gap: 8px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-label {
    font-size: 13px !important;
    margin: 0 0 2px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-list {
    gap: 7px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item {
    min-height: 42px !important;
    padding: 7px 11px !important;
    gap: 9px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item strong {
    font-size: 13px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item small {
    font-size: 11px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bottom-bar,
  .v2-right-stack .v2-assistant:not(.chat-active) .melisa-bottom-bar {
    margin-top: 12px !important;
  }
  .v2-right-stack .v2-assistant .melisa-form {
    height: 48px !important;
  }

  /* Kill any leftover KI watermark / badge on PickMe thumbs */
  #pmsStage.mc-stage .mc-th i,
  .v2-pickme-studio-card .mc-stage .mc-th i,
  .mc-stage .mc-th i,
  .mc-m .mc-th i {
    display: none !important;
  }
  #pmsStage.mc-stage .mc-foot,
  .v2-pickme-studio-card .mc-stage .mc-foot {
    font-size: 10px !important;
  }
}

/* Short laptops: keep Melisa compact so PickMe height holds */
@media (min-width: 1025px) and (max-height: 800px) {
  #rightSideStack,
  .v2-right-stack { gap: 6px !important; }
  .v2-right-stack .v2-assistant .v2-orb {
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto 4px !important;
  }
  .v2-right-stack .v2-assistant .v2-intro h2 {
    font-size: 16px !important;
    margin-bottom: 3px !important;
  }
  .v2-right-stack .v2-assistant .melisa-pitch {
    font-size: 11.5px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge {
    margin: 6px 0 0 !important;
    gap: 5px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item {
    min-height: 34px !important;
    padding: 4px 8px !important;
  }
  .v2-right-stack .v2-assistant .melisa-bridge-item strong { font-size: 12px !important; }
  .v2-right-stack .v2-assistant .melisa-bridge-item small { font-size: 10px !important; }
  .v2-right-stack .v2-assistant .melisa-form { height: 42px !important; }
  .v2-right-stack .v2-assistant .melisa-bottom-bar { margin-top: 6px !important; }
  .v2-right-stack .v2-assistant { padding-bottom: 6px !important; }
}
@media (min-width: 1025px) and (max-height: 740px) {
  .v2-right-stack .v2-assistant .melisa-pitch {
    display: none !important;
  }
  .v2-right-stack .v2-assistant .v2-orb {
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto 2px !important;
  }
}

/* ============================================================
   homepage-grid-align-20261005
   One clean desktop grid:
   - tiles / jobs / news share the SAME 5 equal columns + 8px gutters
   - jobs = tile col 1; news cards = tile cols 2–5 (each card under a tile)
   - main↔Melisa gutter = 8px (was 24px cream void on the right)
   - Melisa flush on PickMe (gap 0), jobs/news/PickMe same height,
     bottoms flush on footer. Dense. Desktop ≥1025 only. /m/ untouched.
   ============================================================ */
@media (min-width: 1025px) {
  :root {
    --ll-gutter: 8px;
    --ll-side: 400px;
  }

  /* Main: left content | 8px | Melisa column — kill right cream void */
  .v2-main {
    grid-template-columns: minmax(0, 1fr) var(--ll-side) !important;
    column-gap: var(--ll-gutter) !important;
  }
  .v2-right-stack,
  #rightSideStack {
    width: var(--ll-side) !important;
    max-width: var(--ll-side) !important;
  }

  /* Tiles: 5 equal tracks, shared gutter */
  .v2-tiles,
  .v2-tiles.v2-tiles-10,
  .v2-tiles-10 {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    column-gap: var(--ll-gutter) !important;
    row-gap: var(--ll-gutter) !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Directory + discover share the left column edges */
  .v2-directory,
  #bereiche {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .v2-discover {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Discover primary = EXACT same 5 tracks as tiles.
     Jobs → col 1. News panel → cols 2–5. */
  .v2-discover-primary,
  .v2-discover-primary:has(#cardJobsWidget) {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    column-gap: var(--ll-gutter) !important;
    row-gap: 0 !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .v2-discover-primary > .v2-bottom-left-stack:has(#cardJobsWidget) {
    grid-column: 1 / 2 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .v2-discover-primary > .v2-city-today,
  #cityTodayPanel {
    grid-column: 2 / -1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    padding: 0 !important; /* padding would break col alignment */
    gap: 0 !important;
    margin: 0 !important;
  }

  /* 4 news cards = tile cols 2–5, same gutter */
  #cityTodayPanel .city-today-grid,
  #cityTodayPanel .city-today-grid.city-today-grid--quad,
  .city-today-grid,
  .city-today-grid.city-today-grid--quad {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: var(--ll-gutter) !important;
    column-gap: var(--ll-gutter) !important;
    row-gap: var(--ll-gutter) !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  /* Melisa flush on PickMe — no mid cream void */
  #rightSideStack,
  .v2-right-stack {
    justify-content: flex-end !important;
    gap: 0 !important;
  }
  #rightSideStack > .v2-assistant,
  .v2-right-stack .v2-assistant,
  .v2-right-stack .v2-assistant:not(.chat-active) {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  #rightSideStack > #bottomSideStack,
  .v2-right-stack > .v2-bottom-side-stack {
    margin-top: 0 !important;
  }
  #rightSideStack #cardPickMeStudio,
  .v2-right-stack #cardPickMeStudio,
  .v2-right-stack .v2-pickme-studio-card {
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
}

/* ============================================================
   homepage-no-water-20261005
   Kill the white "water" at the bottom of Arbeitsmarkt & Jobs
   and PickMe Studio (left after contact block removal).
   - Row height one notch lower (306/298 → 272) → row settles DOWN,
     hero absorbs the difference. Bottoms of jobs/news/PickMe stay
     flush on the footer, all three same height.
   - Jobs: meta 1 line, compact rows; JS fits as many rows as the
     card holds (2–4) and rows stretch to fill — no void under list.
   - PickMe: no space-evenly; 2 rows fill the stage with bigger
     pictures; dots sit on the foot line between label and Archiv.
   Desktop ≥1025 only. /m/ untouched.
   ============================================================ */
@media (min-width: 1025px) {
  :root { --ll-pm-h: 272px; }
}
@media (min-width: 1025px) and (min-height: 900px) {
  :root { --ll-pm-h: 272px; }
}
@media (min-width: 1025px) and (max-height: 800px) {
  :root { --ll-pm-h: 272px; }
}
@media (min-width: 1025px) {
  /* ---------- Jobs: fill the card, no bottom void ---------- */
  #cardJobsWidget.lwl-jobs-widget,
  #cardJobsWidget.lwl-jobs-widget--dense {
    padding: 9px 9px 7px !important;
    gap: 5px !important;
  }
  #cardJobsWidget .lwl-jobs-meta {
    -webkit-line-clamp: 1 !important;
    line-clamp: 1 !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    gap: 4px !important;
    justify-content: flex-start !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list .lwl-job-row,
  #cardJobsWidget .lwl-job-row {
    flex: 1 1 0 !important;   /* rows share the full list height */
    min-height: 0 !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list .lwl-job-row-link,
  #cardJobsWidget .lwl-job-row-link {
    height: 100% !important;
    justify-content: center !important;
    padding: 4px 7px !important;
  }
  /* JS measuring pass: natural row height */
  #cardJobsWidget .lwl-jobs-dense-list.is-measure .lwl-job-row {
    flex: 0 0 auto !important;
  }
  #cardJobsWidget .lwl-jobs-dense-list.is-measure .lwl-job-row-link {
    height: auto !important;
  }
  #cardJobsWidget .lwl-jobs-dense-foot {
    padding-top: 1px !important;
  }

  /* ---------- PickMe Studio: fill the stage ---------- */
  #rightSideStack #cardPickMeStudio,
  .v2-right-stack #cardPickMeStudio,
  .v2-right-stack .v2-pickme-studio-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 9px 10px 9px !important;
    gap: 7px !important;
    box-sizing: border-box !important;
  }
  #cardPickMeStudio .pms-header,
  #cardPickMeStudio .pms-head {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  #cardPickMeStudio .pms-subtitle:empty { display: none !important; }
  #cardPickMeStudio .pms-stage,
  #cardPickMeStudio .pms-stage.mc-stage,
  #pmsStage.mc-stage {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 7px 5px !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    overflow: hidden !important;
  }
  /* Carousel: rows on top (fill), foot line = label · dots · Archiv */
  #pmsStage.mc-stage.mc-stage--carousel {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
    row-gap: 4px !important;
    align-items: center !important;
  }
  #pmsStage.mc-stage--carousel .mc-carousel-rows {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    min-height: 0 !important;
    height: 100% !important;
  }
  #pmsStage.mc-stage--carousel .mc-row {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    align-items: stretch !important;
    gap: 11px !important;
    padding: 3px 4px !important;
  }
  #pmsStage.mc-stage--carousel .mc-th {
    flex: 0 0 auto !important;
    aspect-ratio: 3 / 2 !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    max-width: 130px !important;
    align-self: stretch !important;
  }
  #pmsStage.mc-stage--carousel .mc-tx {
    justify-content: center !important;
  }
  #pmsStage.mc-stage--carousel .mc-t {
    font-size: 14px !important;
    line-height: 1.28 !important;
    -webkit-line-clamp: 3 !important;
  }
  #pmsStage.mc-stage--carousel .mc-k {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }
  #pmsStage.mc-stage--carousel .mc-foot {
    display: contents !important;
  }
  #pmsStage.mc-stage--carousel .mc-foot > span {
    grid-column: 1 !important;
    grid-row: 2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-left: 3px !important;
    font: 600 10px/1.2 Arial, Helvetica, sans-serif !important;
    color: #6e6054 !important;
  }
  #pmsStage.mc-stage--carousel .mc-foot > a {
    grid-column: 3 !important;
    grid-row: 2 !important;
    white-space: nowrap !important;
    padding-right: 3px !important;
    font: 800 10px/1.2 Arial, Helvetica, sans-serif !important;
    color: #1e4d38 !important;
    text-decoration: none !important;
  }
  #pmsStage.mc-stage--carousel .mc-dots {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
  }
}
/* Narrow desktops: jobs title wraps → drop the (already truncated)
   meta line so 3 job rows still fit without a void. */
@media (min-width: 1025px) and (max-width: 1300px) {
  #cardJobsWidget .lwl-jobs-meta { display: none !important; }
}
