/* CRAFTAGENT V20.58.4 – MODERN MOBILE FINAL ALIGNMENT
 *
 * Hebt ausschließlich im eingebetteten Modern-Design eine ältere, spezifischere
 * 128-px-Regel auf. Classic bleibt bytegenau in seiner V20.58.3-Darstellung.
 */

@media (max-width: 800px) {
  html[data-assistant-theme="modern"] body.widget-embed .assistant-shell {
    grid-template-rows: clamp(150px, 23dvh, 166px) minmax(0, 1fr) !important;
  }

  html[data-assistant-theme="modern"] body.widget-embed .assistant-persona {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  html[data-assistant-theme="modern"] body.widget-embed .service-card {
    grid-template-columns: 32px minmax(0, 1fr) !important;
    gap: 7px !important;
    padding: 9px !important;
  }

  html[data-assistant-theme="modern"] body.widget-embed .service-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    flex-basis: 32px !important;
  }

  html[data-assistant-theme="modern"] body.widget-embed .service-copy strong {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    letter-spacing: -.02em;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: auto;
  }
}

@media (max-width: 380px) and (max-height: 700px) {
  html[data-assistant-theme="modern"] body.widget-embed .assistant-shell {
    grid-template-rows: 150px minmax(0, 1fr) !important;
  }
}
