/* HYDPOLL responsive modules — mobile/tablet structure layer */

@media (max-width: 1024px) {
  body.hyd-responsive-modules {
    --hyd-rsp-gap: 12px;
    --hyd-rsp-page-x: 14px;
    --hyd-rsp-touch: 44px;
    --hyd-rsp-nav-h: 74px;
    --hyd-rsp-radius: 14px;
    --hyd-rsp-border: #dfe6ef;
    --hyd-rsp-bg: #f7faff;
    --hyd-rsp-card: #ffffff;
    --hyd-rsp-text: #0B2140;
    --hyd-rsp-muted: #64748b;
  }

  body.hyd-responsive-modules [data-hyd-responsive-root="true"] {
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  body.hyd-responsive-modules [data-hyd-responsive-root="true"] *,
  body.hyd-responsive-modules [data-hyd-responsive-root="true"] *::before,
  body.hyd-responsive-modules [data-hyd-responsive-root="true"] *::after {
    box-sizing: border-box;
    letter-spacing: 0 !important;
  }

  body.hyd-responsive-modules [data-hyd-responsive-root="true"] > * {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.hyd-responsive-modules [data-hyd-responsive-root="true"] > [style*="min-width"],
  body.hyd-responsive-modules [data-hyd-card="true"][style*="min-width"] {
    min-width: 0 !important;
  }

  body.hyd-responsive-modules #mob2-nav.show {
    grid-template-columns: repeat(var(--mob2-slot-count, 6), minmax(0, 1fr)) !important;
    align-items: center !important;
  }

  body.hyd-responsive-modules #mob2-nav .mob2-it {
    min-width: 0 !important;
  }

  body.hyd-responsive-modules [data-hyd-grid="true"] {
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)) !important;
    gap: var(--hyd-rsp-gap) !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.hyd-responsive-modules [data-hyd-grid="kpi"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.hyd-responsive-modules [data-hyd-actions="true"],
  body.hyd-responsive-modules [data-hyd-toolbar="true"] {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.hyd-responsive-modules [data-hyd-actions="true"] > *,
  body.hyd-responsive-modules [data-hyd-toolbar="true"] > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.hyd-responsive-modules [data-hyd-card="true"] {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  body.hyd-responsive-modules [data-hyd-scroll-x="true"] {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  body.hyd-responsive-modules table[data-hyd-table="true"] {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
  }

  body.hyd-responsive-modules table[data-hyd-table-mode="scroll"],
  body.hyd-responsive-modules table[data-hyd-table-mode="matrix"] {
    width: max-content !important;
    max-width: none !important;
    min-width: min(760px, calc(100vw - 28px)) !important;
  }

  body.hyd-responsive-modules [data-hyd-table-shell="true"] {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.hyd-responsive-modules table[data-hyd-table="true"] th,
  body.hyd-responsive-modules table[data-hyd-table="true"] td {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  body.hyd-responsive-modules .modal,
  body.hyd-responsive-modules #modal,
  body.hyd-responsive-modules .dm2-drawer,
  body.hyd-responsive-modules .drawer,
  body.hyd-responsive-modules .side-panel {
    max-width: calc(100vw - 18px) !important;
  }

  body.hyd-responsive-modules input,
  body.hyd-responsive-modules select,
  body.hyd-responsive-modules textarea {
    max-width: 100% !important;
    min-height: var(--hyd-rsp-touch) !important;
    font-size: 16px !important;
  }

  body.hyd-responsive-modules button,
  body.hyd-responsive-modules .btn,
  body.hyd-responsive-modules [role="button"] {
    min-height: var(--hyd-rsp-touch);
    line-height: 1.15;
    white-space: normal;
  }

  body.hyd-responsive-modules [data-hyd-projection-row="true"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)) !important;
    align-items: end !important;
    gap: 8px !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  body.hyd-responsive-modules [data-hyd-projection-row="true"] [data-hyd-projection-item="true"] {
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
  }

  body.hyd-responsive-modules #direction-commerciale-container [data-hyd-actions="true"] {
    justify-content: flex-start !important;
  }

  body.hyd-responsive-modules #direction-commerciale-container [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.hyd-responsive-modules .xm-plan-hero {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.hyd-responsive-modules .xm-plan-hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    min-width: 0 !important;
  }

  body.hyd-responsive-modules .xm-plan-week-scroll {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.hyd-responsive-modules .xm-plan-week {
    min-width: 0 !important;
    grid-template-columns: repeat(7, minmax(92px, 1fr)) !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.hyd-tablet-module [data-hyd-responsive-root="true"] {
    padding-left: max(14px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(14px, env(safe-area-inset-right, 0px)) !important;
  }

  body.hyd-tablet-module [data-hyd-grid="kpi"] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.hyd-tablet-module [data-hyd-grid="true"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.hyd-tablet-module [data-hyd-table-shell="true"] {
    border: 1px solid var(--hyd-rsp-border);
    border-radius: var(--hyd-rsp-radius);
    background: var(--hyd-rsp-card);
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.hyd-tablet-module .modal,
  body.hyd-tablet-module #modal .mbox,
  body.hyd-tablet-module .modal-content,
  body.hyd-tablet-module .drawer-panel {
    width: min(720px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
  }
}

@media (max-width: 768px) {
  body.hyd-mobile-module {
    --hyd-rsp-page-x: 10px;
    padding-bottom: calc(var(--hyd-rsp-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.hyd-mobile-module [data-hyd-responsive-root="true"] {
    width: 100vw !important;
    padding: 12px var(--hyd-rsp-page-x) 96px !important;
  }

  body.hyd-mobile-module [data-hyd-responsive-root="true"] h1 {
    font-size: 24px !important;
    line-height: 1.12 !important;
    margin-bottom: 6px !important;
    overflow-wrap: anywhere;
  }

  body.hyd-mobile-module [data-hyd-responsive-root="true"] h2 {
    font-size: 20px !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }

  body.hyd-mobile-module [data-hyd-responsive-root="true"] h3 {
    font-size: 16px !important;
    line-height: 1.22 !important;
    overflow-wrap: anywhere;
  }

  body.hyd-mobile-module [data-hyd-grid="true"],
  body.hyd-mobile-module [data-hyd-grid="kpi"] {
    grid-template-columns: 1fr !important;
  }

  body.hyd-mobile-module [data-hyd-projection-row="true"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.hyd-mobile-module [data-hyd-grid="compact"],
  body.hyd-mobile-module [data-hyd-grid="kpi"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.hyd-mobile-module #direction-commerciale-container [style*="grid-template-columns:repeat(4"],
  body.hyd-mobile-module #direction-commerciale-container [style*="grid-template-columns:repeat(3"],
  body.hyd-mobile-module #direction-commerciale-container [style*="grid-template-columns:2fr"] {
    grid-template-columns: 1fr !important;
  }

  body.hyd-mobile-module #direction-commerciale-container [data-hyd-actions="true"] > button {
    flex: 1 1 140px !important;
  }

  body.hyd-mobile-module .xm-plan-hero {
    padding: 15px 13px !important;
  }

  body.hyd-mobile-module .xm-plan-hero__metrics,
  body.hyd-mobile-module .xm-plan-week {
    grid-template-columns: 1fr !important;
  }

  body.hyd-mobile-module [data-hyd-actions="true"] > button,
  body.hyd-mobile-module [data-hyd-actions="true"] > .btn,
  body.hyd-mobile-module [data-hyd-toolbar="true"] > button,
  body.hyd-mobile-module [data-hyd-toolbar="true"] > .btn {
    flex: 1 1 150px !important;
    min-height: 44px !important;
    justify-content: center !important;
  }

  body.hyd-mobile-module [data-hyd-toolbar="true"] > input,
  body.hyd-mobile-module [data-hyd-toolbar="true"] > select,
  body.hyd-mobile-module [data-hyd-toolbar="true"] > textarea,
  body.hyd-mobile-module .filters > input,
  body.hyd-mobile-module .filters > select {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  body.hyd-mobile-module table[data-hyd-table-mode="scroll"],
  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] {
    display: table !important;
    width: max-content !important;
    max-width: none !important;
    min-width: 720px !important;
  }

  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] {
    min-width: 840px !important;
  }

  body.hyd-mobile-module table[data-hyd-table-mode="scroll"] thead,
  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] thead {
    display: table-header-group !important;
  }

  body.hyd-mobile-module table[data-hyd-table-mode="scroll"] tbody,
  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] tbody {
    display: table-row-group !important;
  }

  body.hyd-mobile-module table[data-hyd-table-mode="scroll"] tr,
  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] tr {
    display: table-row !important;
  }

  body.hyd-mobile-module table[data-hyd-table-mode="scroll"] th,
  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] th,
  body.hyd-mobile-module table[data-hyd-table-mode="scroll"] td,
  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] td {
    display: table-cell !important;
    width: auto !important;
    padding: 9px 10px !important;
    white-space: normal !important;
  }

  body.hyd-mobile-module table[data-hyd-table-mode="scroll"] td::before,
  body.hyd-mobile-module table[data-hyd-table-mode="matrix"] td::before {
    display: none !important;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) {
    display: block !important;
    min-width: 0 !important;
    border-collapse: separate !important;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) thead {
    display: none !important;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) tbody,
  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) tr,
  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) td {
    display: block !important;
    width: 100% !important;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) tr {
    margin: 0 0 10px !important;
    padding: 10px !important;
    border: 1px solid var(--hyd-rsp-border) !important;
    border-radius: var(--hyd-rsp-radius) !important;
    background: var(--hyd-rsp-card) !important;
    box-shadow: 0 6px 18px rgba(8, 18, 38, .05);
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) td {
    display: grid !important;
    grid-template-columns: minmax(92px, 38%) minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: start !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    text-align: left !important;
    color: var(--hyd-rsp-text);
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) td:last-child {
    border-bottom: 0 !important;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) td::before {
    content: attr(data-hyd-label);
    display: block;
    color: var(--hyd-rsp-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.25;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) td[data-hyd-label=""] {
    grid-template-columns: 1fr !important;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) td[data-hyd-label=""]::before {
    display: none;
  }

  body.hyd-mobile-module #modal.open .mbox,
  body.hyd-mobile-module .modal-content,
  body.hyd-mobile-module .drawer-panel {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  body.hyd-mobile-module .mhead {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  body.hyd-mobile-module .mfoot {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  body.hyd-mobile-module .qafab2-btn,
  body.hyd-mobile-module .hydai-bubble,
  body.hyd-mobile-module .hyd-fab,
  body.hyd-mobile-module .fab {
    bottom: calc(86px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.hyd-mobile-module .mod-help-banner {
    margin: 10px 0 14px !important;
    border-radius: 16px !important;
  }
}

@media (max-width: 420px) {
  body.hyd-mobile-module [data-hyd-grid="compact"],
  body.hyd-mobile-module [data-hyd-grid="kpi"] {
    grid-template-columns: 1fr !important;
  }

  body.hyd-mobile-module table[data-hyd-table="true"]:not([data-hyd-table-mode="scroll"]):not([data-hyd-table-mode="matrix"]) td {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
}

@media (max-width: 360px) {
  body.hyd-mobile-module {
    --hyd-rsp-page-x: 8px;
    --hyd-rsp-gap: 8px;
  }

  body.hyd-mobile-module [data-hyd-grid="compact"],
  body.hyd-mobile-module [data-hyd-grid="kpi"] {
    grid-template-columns: 1fr !important;
  }
}

/* HYDPOLL responsive hardening v3 — dense V1 forms, piezo, toasts */
@media (max-width: 1024px) {
  html,
  body.hyd-responsive-modules {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(#app,.app,.wrapper,.main,#main) {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-field-grid="true"],
    .g2,
    .g3,
    .g4
  ) {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important;
    gap: 10px !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-field="true"],
    .fg,
    .field,
    .form-group,
    .input-group
  ) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 8px !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-control="true"],
    .fi,
    .fs,
    .fta,
    input,
    select,
    textarea
  ) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    line-height: 1.25 !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-inline-width="true"],
    [style*="width"],
    [style*="min-width"]
  ) {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-inline-flex="true"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-inline-flex="true"] > :where(button,.btn,a.btn,input,select,textarea,label) {
    flex: 1 1 min(180px, 100%) !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    button,
    .btn,
    a.btn,
    [role="button"]
  ) {
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 8px 10px !important;
    border-radius: 12px !important;
    overflow-wrap: anywhere !important;
    text-align: center;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-card="true"],
    .card,
    .panel,
    .box,
    .tile
  ) {
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-tabs-row="true"] {
    display: flex !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-tabs-row="true"]::-webkit-scrollbar {
    display: none;
  }

  body.hyd-responsive-modules:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-tabs-row="true"] > * {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  body.hyd-tablet-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-field-grid-cols="3"],
    [data-hyd-field-grid-cols="4"],
    .g3,
    .g4
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.hyd-tablet-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-field-grid-cols="2"],
    .g2
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.hyd-tablet-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] :where(.card,.panel,[data-hyd-card="true"]) {
    padding: 12px !important;
    border-radius: 14px !important;
  }
}

@media (max-width: 768px) {
  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] {
    width: 100% !important;
    padding: 8px max(8px, env(safe-area-inset-left, 0px)) calc(122px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px)) !important;
    scroll-padding-bottom: calc(124px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-field-grid="true"],
    .g2,
    .g3,
    .g4
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-card="true"],
    .card,
    .panel,
    .box,
    .tile
  ) {
    padding: 10px !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(.fl,label,.label) {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
    overflow-wrap: anywhere !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-control="true"],
    .fi,
    .fs,
    .fta,
    input,
    select,
    textarea
  ) {
    min-height: 40px !important;
    padding: 8px 10px !important;
    font-size: 16px !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    button,
    .btn,
    a.btn,
    [role="button"]
  ) {
    min-height: 40px !important;
    font-size: clamp(11px, 3.3vw, 13px) !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] :where(.card,.panel,[data-hyd-card="true"]) {
    padding: 10px !important;
    border-radius: 14px !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] :where(.fg,[data-hyd-field="true"]) {
    margin-bottom: 7px !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-module="piezo"] [data-hyd-inline-flex="true"] > :where(button,.btn,a.btn) {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) :where(
    .toast,
    .kp-toast,
    .rh-toast,
    #st-toast,
    #toast,
    .notification,
    .snackbar
  ) {
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.hyd-mobile-module #toast2-container {
    left: max(10px, env(safe-area-inset-left, 0px)) !important;
    right: max(10px, env(safe-area-inset-right, 0px)) !important;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: none !important;
    width: auto !important;
  }

  body.hyd-mobile-module #toast2-container .toast2 {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media (max-width: 420px) {
  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] {
    padding-inline: max(6px, env(safe-area-inset-left, 0px)) max(6px, env(safe-area-inset-right, 0px)) !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    [data-hyd-card="true"],
    .card,
    .panel,
    .box,
    .tile
  ) {
    padding: 9px !important;
    border-radius: 12px !important;
  }

  body.hyd-mobile-module:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(button,.btn,a.btn) {
    padding-inline: 8px !important;
  }
}

/* HYDPOLL responsive lock v4 — anti-regression overflow guard */
@media (max-width: 1024px) {
  body.hyd-responsive-modules.hyd-layout-locked:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) {
    overscroll-behavior-x: none;
  }

  body.hyd-responsive-modules.hyd-layout-locked:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    overflow-x: clip !important;
  }

  body.hyd-responsive-modules.hyd-layout-locked:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    .card,
    .panel,
    .box,
    .tile,
    .modal,
    .drawer,
    .side-panel,
    [data-hyd-card="true"],
    [data-hyd-inline-width="true"],
    [data-hyd-overflow-guard="true"]
  ) {
    max-inline-size: 100% !important;
    min-inline-size: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  body.hyd-responsive-modules.hyd-layout-overflow:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-overflow-guard="true"]:not(table):not(svg):not(canvas):not(img) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  body.hyd-responsive-modules.hyd-layout-locked:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    img,
    svg,
    canvas,
    video,
    iframe
  ) {
    max-inline-size: 100% !important;
  }

  body.hyd-responsive-modules.hyd-layout-locked:not(.hp-doc):not(.hyd-pdf-body):not(.pdf-body) [data-hyd-responsive-root="true"] :where(
    table,
    .table,
    .data-table
  ) {
    max-inline-size: 100% !important;
  }
}
