/* Retain LimoFlow's actual controls, handlers, focus and validation. */
html[data-mobile="true"] #limoflow-form {
  --theme-card-background:#2F343A!important;
  --theme-card-bg:#2F343A!important;
  --card:#2F343A!important;
  --theme-input-bg:#101012!important;
  --theme-input-border:#777C82!important;
}
/* Home photo remains visible through the card, without fading its controls. */
html[data-mobile="true"][data-appearance="hero"] #limoflow-form {
  --theme-card-background:rgba(47,52,58,.55)!important;
  --theme-card-bg:rgba(47,52,58,.55)!important;
  --card:rgba(47,52,58,.55)!important;
  --theme-input-bg:rgba(16,16,18,.3)!important;
}
html[data-mobile="true"] #limoflow-form input[role="combobox"] { font-size:16px!important; min-height:48px; }
html[data-mobile="true"] #limoflow-form > div > div > [data-slot="card"] { border:0!important; padding-top:8px!important; }
html[data-mobile="true"] #limoflow-form [role="tab"] { min-height:48px; font-size:15px!important; padding-block:12px!important; }
/* Long localized date labels need their own row, not half a phone screen. */
html[data-mobile="true"] #limoflow-form .flex:has(> div > .relative > button[aria-haspopup="dialog"]) {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:12px!important;
}
html[data-mobile="true"] #limoflow-form button[aria-haspopup="dialog"] { min-height:48px; font-size:15px!important; }
html[data-mobile="true"] [data-limoflow-portal] [role="dialog"] {
  left:8px!important;
  width:calc(100vw - 16px)!important;
  max-width:none!important;
  box-sizing:border-box;
  background:#2F343A!important;
  color:#F3EDE4!important;
  border:1px solid #96999D!important;
  box-shadow:0 12px 32px #0009!important;
}
html[data-mobile="true"] [data-limoflow-portal] [role="dialog"]:has([role="grid"]) { padding:10px 6px!important; }
html[data-mobile="true"] [data-limoflow-portal] [role="grid"],
html[data-mobile="true"] [data-limoflow-portal] [role="row"] { gap:0!important; }
html[data-mobile="true"] [data-limoflow-portal] [role="gridcell"] {
  min-width:0!important; min-height:44px!important; padding:8px 0!important;
  font-size:15px!important; touch-action:manipulation;
}
html[data-mobile="true"] [data-limoflow-portal] [role="columnheader"] { padding:6px 0!important; font-size:12px!important; }
html[data-mobile="true"] [data-limoflow-portal] [role="dialog"] button { touch-action:manipulation; }
html[data-mobile="true"] .tp-dropdown[role="dialog"] .tp-col { height:220px!important; min-height:0!important; }
.tp-dropdown[role="dialog"] .tp-scroll {
  min-height:0!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
  touch-action:pan-y;
  -webkit-overflow-scrolling:touch;
}
html[data-mobile="true"] .tp-dropdown[role="dialog"] .tp-btn { min-height:44px!important; font-size:16px!important; }
html[data-mobile="true"] .tp-dropdown[role="dialog"] > button { min-height:48px!important; font-size:15px!important; }
