/* Konekts Mobile MVP — Sprint 1
   Mobile/tablet-only presentation layer. Desktop is intentionally untouched. */

@media (max-width: 860px){
  html,body{overflow-x:hidden!important}
  body{background:#f8f6fb!important}

  /* App shell */
  html[data-product-ux="pulso"] .pulso-rail{display:none!important}
  html[data-product-ux="pulso"] .pulso-stage{margin-left:0!important;width:100%!important;min-width:0!important}
  html[data-product-ux="pulso"] .pulso-stage-layout{display:block!important;min-width:0!important}
  html[data-product-ux="pulso"] .pulso-main{width:100%!important;min-width:0!important;max-width:100%!important;padding:14px 12px calc(94px + env(safe-area-inset-bottom))!important}
  html[data-product-ux="pulso"] .pulso-workspace{min-width:0!important;max-width:100%!important}

  /* Compact mobile header */
  html[data-product-ux="pulso"] .pulso-context-bar{
    position:sticky!important;top:0!important;z-index:60!important;
    min-height:68px!important;height:auto!important;
    padding:10px 12px!important;gap:10px!important;
    display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;
    align-items:center!important;background:rgba(255,255,255,.97)!important;
    border-bottom:1px solid #ece6f5!important;backdrop-filter:blur(16px)!important
  }
  html[data-product-ux="pulso"] .pulso-mobile-menu{width:44px!important;height:44px!important;min-height:44px!important;border-radius:14px!important;margin:0!important}
  html[data-product-ux="pulso"] .pulso-event-context{min-width:0!important;display:block!important}
  html[data-product-ux="pulso"] .pulso-event-context label{display:block!important;min-width:0!important;width:100%!important}
  html[data-product-ux="pulso"] .pulso-event-context label>small{display:none!important}
  html[data-product-ux="pulso"] #activeEventSelect{width:100%!important;max-width:100%!important;height:44px!important;min-height:44px!important;padding:0 36px 0 13px!important;border-radius:14px!important;font-size:15px!important;font-weight:800!important;background:#fff!important}
  html[data-product-ux="pulso"] .pulso-event-signal{display:none!important}
  html[data-product-ux="pulso"] .pulso-context-actions{display:flex!important;justify-content:flex-end!important;min-width:0!important}
  html[data-product-ux="pulso"] .pulso-theme-control{display:none!important}
  html[data-product-ux="pulso"] .pulso-context-actions>*:not(.pulso-icon-button):not(button){max-width:44px!important}
  html[data-product-ux="pulso"] .pulso-icon-button{width:44px!important;height:44px!important;min-height:44px!important;border-radius:50%!important}

  /* Page hierarchy */
  html[data-product-ux="pulso"] .pulso-page-title{margin:4px 0 14px!important;padding:0 2px!important;gap:5px!important}
  html[data-product-ux="pulso"] .pulso-page-title>span{display:none!important}
  html[data-product-ux="pulso"] .pulso-page-title h1{font-size:clamp(24px,7vw,30px)!important;line-height:1.08!important;letter-spacing:-.04em!important;margin:0!important}
  html[data-product-ux="pulso"] .pulso-page-title>p{font-size:14px!important;line-height:1.45!important;margin:4px 0 0!important;color:#746d83!important}
  html[data-product-ux="pulso"] .pulso-title-meta{font-size:12px!important;gap:8px!important;flex-wrap:wrap!important}
  html[data-product-ux="pulso"] .panel,
  html[data-product-ux="pulso"] .card{border-radius:18px!important;box-shadow:0 8px 28px rgba(45,28,78,.04)!important}

  /* Drawer: one clean column, no overlaps */
  html[data-product-ux="pulso"] .pulso-drawer{
    width:min(92vw,390px)!important;max-width:390px!important;
    padding:18px 14px calc(24px + env(safe-area-inset-bottom))!important;
    overflow-x:hidden!important;background:#fff!important
  }
  html[data-product-ux="pulso"] .pulso-drawer>header{align-items:center!important;gap:12px!important}
  html[data-product-ux="pulso"] .pulso-drawer>header small{font-size:9px!important;color:#7c3aed!important}
  html[data-product-ux="pulso"] .pulso-drawer>header h2{font-size:26px!important;line-height:1.05!important;letter-spacing:-.045em!important;margin:3px 0 0!important}
  html[data-product-ux="pulso"] .pulso-drawer>header button{width:44px!important;height:44px!important;flex:0 0 44px!important}
  html[data-product-ux="pulso"] .pulso-drawer-create{margin-top:16px!important;padding:13px 15px!important;border-radius:14px!important;font-size:15px!important}
  html[data-product-ux="pulso"] .pulso-drawer-event{
    margin:14px 0 18px!important;padding:14px!important;
    grid-template-columns:minmax(0,1fr) 48px!important;gap:10px!important;
    border-radius:18px!important;min-height:92px!important
  }
  html[data-product-ux="pulso"] .pulso-drawer-event b{font-size:17px!important;margin:4px 0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html[data-product-ux="pulso"] .pulso-drawer-event em{font-size:11px!important;line-height:1.35!important;white-space:normal!important;display:block!important}
  html[data-product-ux="pulso"] .pulso-drawer-event strong{width:48px!important;height:48px!important;font-size:13px!important}
  html[data-product-ux="pulso"] .pulso-drawer-groups{gap:15px!important}
  html[data-product-ux="pulso"] .pulso-drawer-groups section>small{font-size:9px!important;margin:0 0 6px 4px!important}
  html[data-product-ux="pulso"] .pulso-drawer-groups nav{grid-template-columns:1fr!important;gap:4px!important}
  html[data-product-ux="pulso"] .pulso-drawer-groups nav button{width:100%!important;min-height:48px!important;padding:7px 9px!important;border-radius:13px!important;font-size:14px!important}
  html[data-product-ux="pulso"] .pulso-drawer-groups nav button i{width:34px!important;height:34px!important;flex:0 0 34px!important}
  html[data-product-ux="pulso"] .pulso-drawer footer{margin-top:18px!important;padding-top:14px!important}
  html[data-product-ux="pulso"] .mobile-security-entry{width:100%!important;margin:0 0 12px!important;padding:12px 14px!important;border:1px solid #e5dcf5!important;border-radius:13px!important;background:#faf8ff!important;color:#5f35b5!important;font-weight:800!important;text-align:left!important}

  /* Never cover content with account-security launcher on phone/tablet */
  #konekts-security-launcher{display:none!important}

  /* KIE: reduce technical clutter in Sprint 1 */
  html[data-product-ux="pulso"] .copilot-layout{display:block!important;min-width:0!important}
  html[data-product-ux="pulso"] .copilot-chat{padding:16px!important;border-radius:20px!important}
  html[data-product-ux="pulso"] .copilot-head{display:block!important}
  html[data-product-ux="pulso"] .copilot-head h2{font-size:27px!important;line-height:1.08!important;margin:5px 0 7px!important}
  html[data-product-ux="pulso"] .copilot-head p{font-size:15px!important;line-height:1.48!important;margin:0!important}
  html[data-product-ux="pulso"] .copilot-status-group{margin-top:12px!important;display:flex!important;gap:7px!important;align-items:center!important;flex-wrap:wrap!important}
  html[data-product-ux="pulso"] .kie-style-quick{display:none!important}
  html[data-product-ux="pulso"] .copilot-status.ai-status{display:none!important}
  html[data-product-ux="pulso"] .copilot-status-group .copilot-status:last-child{display:none!important}
  html[data-product-ux="pulso"] .copilot-status{font-size:12px!important;padding:7px 10px!important}
  html[data-product-ux="pulso"] .chat-readiness-note{padding:14px!important;margin:12px 0!important;border-radius:15px!important}
  html[data-product-ux="pulso"] .chat-readiness-note b{font-size:17px!important}
  html[data-product-ux="pulso"] .chat-readiness-note span{font-size:13px!important;line-height:1.4!important}
  html[data-product-ux="pulso"] .chat-messages{gap:10px!important}
  html[data-product-ux="pulso"] .message-bubble{font-size:15px!important;line-height:1.5!important;padding:13px 14px!important}
  html[data-product-ux="pulso"] .message-avatar{width:36px!important;height:36px!important;flex:0 0 36px!important}
  html[data-product-ux="pulso"] .chat-input-wrap{grid-template-columns:1fr!important;gap:8px!important}
  html[data-product-ux="pulso"] #copilotInput{min-height:88px!important;padding:13px!important;border-radius:14px!important}
  html[data-product-ux="pulso"] #sendCopilot{width:100%!important;min-height:50px!important;border-radius:14px!important}

  /* Guests / communication / check-in */
  html[data-mobile-mvp="v1"] .cf-ops-tabs{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:5px!important;padding:5px!important;margin:0 0 14px!important;
    overflow:visible!important;position:static!important;border-radius:15px!important
  }
  html[data-mobile-mvp="v1"] .cf-ops-tabs button{min-width:0!important;padding:9px 5px!important;font-size:12px!important;white-space:normal!important;line-height:1.2!important}
  html[data-mobile-mvp="v1"] .cf-ops-tabs span{display:none!important}
  html[data-mobile-mvp="v1"] .cf-page{gap:14px!important;min-width:0!important}
  html[data-mobile-mvp="v1"] .cf-page-head{display:block!important}
  html[data-mobile-mvp="v1"] .cf-page-head>div{min-width:0!important}
  html[data-mobile-mvp="v1"] .cf-page-head>.tag{display:none!important}
  html[data-mobile-mvp="v1"] .cf-page-head .kicker{font-size:10px!important;letter-spacing:.12em!important}
  html[data-mobile-mvp="v1"] .cf-page-head h2{font-size:25px!important;line-height:1.1!important;letter-spacing:-.035em!important;margin:5px 0 7px!important}
  html[data-mobile-mvp="v1"] .cf-page-head p{font-size:14px!important;line-height:1.45!important}
  html[data-mobile-mvp="v1"] .cf-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  html[data-mobile-mvp="v1"] .cf-metrics article{padding:12px!important;border-radius:14px!important;min-width:0!important}
  html[data-mobile-mvp="v1"] .cf-metrics b{font-size:23px!important;margin:3px 0!important}
  html[data-mobile-mvp="v1"] .cf-metrics span,html[data-mobile-mvp="v1"] .cf-metrics small{font-size:11px!important;line-height:1.3!important}
  html[data-mobile-mvp="v1"] .cf-grid-2{grid-template-columns:1fr!important;gap:12px!important}
  html[data-mobile-mvp="v1"] .cf-panel{padding:14px!important}
  html[data-mobile-mvp="v1"] .cf-checkin-toolbar,html[data-mobile-mvp="v1"] .cf-checkin-toolbar>div{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:8px!important}
  html[data-mobile-mvp="v1"] .cf-checkin-toolbar .btn{width:100%!important}
  html[data-mobile-mvp="v1"] .cf-checkin-list article,html[data-mobile-mvp="v1"] .cf-pref-list article{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;align-items:start!important}
  html[data-mobile-mvp="v1"] .cf-checkin-person{min-width:0!important;width:100%!important}
  html[data-mobile-mvp="v1"] .cf-checkin-actions{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}
  html[data-mobile-mvp="v1"] .cf-checkin-actions>*{width:100%!important}
  html[data-mobile-mvp="v1"] .cf-kie-card{padding:14px!important;border-radius:15px!important}

  /* Reception access */
  html[data-mobile-mvp="v1"] .reception-access-panel{padding:15px!important;margin:12px 0!important;border-radius:18px!important;gap:11px!important;min-width:0!important}
  html[data-mobile-mvp="v1"] .reception-access-panel header{display:block!important}
  html[data-mobile-mvp="v1"] .reception-access-panel header>.tag{display:none!important}
  html[data-mobile-mvp="v1"] .reception-access-panel h3{font-size:22px!important;line-height:1.15!important;margin:4px 0 6px!important}
  html[data-mobile-mvp="v1"] .reception-access-panel p{font-size:14px!important;line-height:1.45!important}
  html[data-mobile-mvp="v1"] .reception-access-actions{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:7px!important}
  html[data-mobile-mvp="v1"] .reception-access-actions .btn{width:100%!important}
  html[data-mobile-mvp="v1"] .reception-access-url{padding:11px!important;min-width:0!important}
  html[data-mobile-mvp="v1"] .reception-access-url code{white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;font-size:11px!important}

  /* Extras: sell the benefit, not implementation details */
  html[data-mobile-mvp="v1"] .commerce-launch-note{display:none!important}
  html[data-mobile-mvp="v1"] .commerce-grid{grid-template-columns:1fr!important;gap:12px!important}
  html[data-mobile-mvp="v1"] .commerce-card{padding:17px!important;border-radius:18px!important}
  html[data-mobile-mvp="v1"] .commerce-card h3{font-size:23px!important;line-height:1.14!important}
  html[data-mobile-mvp="v1"] .commerce-card p,html[data-mobile-mvp="v1"] .commerce-card li{font-size:14px!important;line-height:1.45!important}
  html[data-mobile-mvp="v1"] .commerce-card .btn{width:100%!important;white-space:normal!important}
  html[data-mobile-mvp="v1"] .section-head{display:block!important;margin-bottom:14px!important}
  html[data-mobile-mvp="v1"] .section-head h2{font-size:26px!important;line-height:1.12!important;margin:4px 0 7px!important}
  html[data-mobile-mvp="v1"] .section-head p{font-size:14px!important;line-height:1.45!important}

  /* Bottom navigation must not fight browser chrome */
  html[data-product-ux="pulso"] .pulso-mobile-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))!important;min-height:66px!important}
}

@media (max-width: 430px){
  html[data-product-ux="pulso"] .pulso-main{padding-left:10px!important;padding-right:10px!important}
  html[data-product-ux="pulso"] .pulso-context-bar{padding-left:9px!important;padding-right:9px!important;grid-template-columns:42px minmax(0,1fr) 42px!important}
  html[data-mobile-mvp="v1"] .cf-metrics{gap:7px!important}
  html[data-mobile-mvp="v1"] .cf-metrics article{padding:11px!important}
}
