/* 闻小满移动工作台：390–860px */
.mobile-bottom-nav,.mobile-more-layer{display:none}
@media(max-width:860px){
  :root{--mobile-bar:68px}
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{background:#fbf7f5}
  body.mobile-sheet-open{overflow:hidden}
  .app{display:block!important;width:100%;min-width:0}
  .side{position:relative!important;inset:auto!important;width:100%!important;height:66px!important;min-height:66px!important;padding:8px 16px!important;display:flex!important;align-items:center;justify-content:space-between;overflow:hidden;border:0!important;border-bottom:1px solid rgba(109,31,58,.15)!important;background:#35141f!important}
  .side .brand{margin:0!important;min-height:48px;gap:10px;transform:none!important}
  .side .brand-mark{width:43px!important;height:43px!important;min-width:43px!important}
  .side .brand-copy strong{font-size:19px!important;letter-spacing:.12em!important}
  .side .brand-copy span{font-size:8px!important;letter-spacing:.2em!important}
  .side>.nav,.side>.rule,.side>.nav-title,.side>.quick,.side>.agent{display:none!important}
  .main{width:100%!important;min-width:0!important;margin:0!important;padding:0 14px calc(var(--mobile-bar) + 22px + env(safe-area-inset-bottom))!important}
  .top{height:48px!important;min-height:48px!important;margin:0 -14px!important;padding:0 14px!important;position:sticky;top:0;z-index:30;background:rgba(251,247,245,.94)!important;backdrop-filter:blur(14px);border-bottom:1px solid rgba(109,31,58,.1)!important}
  .top .crumb{max-width:56vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px!important}
  .top .actions{gap:5px!important}
  .top .date,.top [data-action="import"],.top [data-action="export"],.top [data-action="reset"]{display:none!important}
  .top .icon-button{width:34px!important;height:34px!important;min-width:34px!important}
  .top .user{width:34px!important;height:34px!important;min-width:34px!important;font-size:11px!important}
  #view{min-width:0;width:100%}
  .page-head,.hero-head{margin:20px 0 16px!important;padding:0!important;display:block!important}
  .page-head h1,.hero-head h1{font-size:29px!important;line-height:1.18!important;letter-spacing:.02em!important}
  .page-head p,.hero-head p{font-size:13px!important;line-height:1.75!important;margin-top:7px!important}
  .page-actions{margin-top:14px!important;width:100%;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
  .page-actions .button{width:100%;min-height:44px;padding:10px 8px!important;white-space:normal}
  .hero-live{margin-top:11px!important;display:inline-flex!important}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-bottom:12px!important}
  .metric{min-width:0!important;min-height:122px!important;padding:15px!important;border-radius:16px!important}
  .metric .value{font-size:30px!important}
  .metric-reference{display:block!important}
  .metric-reference .metric-orb{position:relative!important;display:flex!important;width:40px!important;height:40px!important;margin:0 0 10px!important;inset:auto!important;transform:none!important}
  .metric-reference .metric-copy{padding:0!important;margin:0!important}
  .metric .trend{font-size:10px!important;white-space:normal!important}
  .panel,.venue-section,.dashboard-flow-panel{padding:17px!important;border-radius:18px!important;margin-bottom:12px!important;min-width:0!important}
  .panel-head,.venue-section-head{align-items:flex-start!important;gap:10px!important}
  .panel-head h2,.venue-section-head h2{font-size:20px!important}
  .panel-head p,.venue-section-head p{font-size:12px!important;line-height:1.65!important}
  .dashboard-lower,.section-grid,.venue-grid,.kpis,.recap-list{grid-template-columns:1fr!important;gap:12px!important}
  .dashboard-flow{overflow:visible!important}
  .agent-flow{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .agent-flow>button{width:100%!important;min-width:0!important;justify-content:flex-start!important;padding:12px!important}
  .dashboard-loop{font-size:11px!important;padding:10px!important}
  .dashboard-product-display{min-height:200px!important;background-position:center bottom!important;background-size:contain!important}
  .standards{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:14px!important}
  .row{grid-template-columns:44px 8px minmax(0,1fr)!important;gap:8px!important;padding:12px 0!important;align-items:start!important}
  .row .state{grid-column:3;margin-top:5px;justify-self:start!important}
  .process-map{height:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .process-map .node{position:relative!important;inset:auto!important;transform:none!important;width:100%!important}
  .toolbar{display:block!important}
  .toolbar .search{width:100%!important;max-width:none!important}
  .toolbar-right{margin-top:8px!important}
  .table-wrap{overflow:visible!important}
  body[data-route="content"] .table,body[data-route="customers"] .table,body[data-route="history"] .table{display:block;width:100%}
  body[data-route="content"] .table thead,body[data-route="customers"] .table thead,body[data-route="history"] .table thead{display:none}
  body[data-route="content"] .table tbody,body[data-route="customers"] .table tbody,body[data-route="history"] .table tbody{display:grid;gap:10px}
  body[data-route="content"] .table tr,body[data-route="customers"] .table tr,body[data-route="history"] .table tr{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;padding:14px;border:1px solid rgba(109,31,58,.13);border-radius:14px;background:#fff}
  body[data-route="content"] .table td,body[data-route="customers"] .table td,body[data-route="history"] .table td{display:block!important;padding:9px 0!important;border:0!important;min-width:0;overflow-wrap:anywhere}
  body[data-route="content"] .table td:first-child,body[data-route="customers"] .table td:first-child,body[data-route="history"] .table td:first-child{grid-column:1/-1;font-size:15px;font-weight:700;border-bottom:1px solid rgba(109,31,58,.1)!important;padding-top:0!important}
  body[data-route="content"] .table td:last-child,body[data-route="customers"] .table td:last-child,body[data-route="history"] .table td:last-child{grid-column:1/-1;padding-bottom:0!important}
  body[data-route="content"] .table td:not(:first-child):not(:last-child)::before,body[data-route="customers"] .table td:not(:first-child):not(:last-child)::before,body[data-route="history"] .table td:not(:first-child):not(:last-child)::before{display:block;margin-bottom:4px;color:#9b7b84;font-size:10px;letter-spacing:.05em}
  body[data-route="content"] .table td:nth-child(2)::before{content:"平台 / 类型"}body[data-route="content"] .table td:nth-child(3)::before{content:"排期"}body[data-route="content"] .table td:nth-child(4)::before{content:"状态"}body[data-route="content"] .table td:nth-child(5)::before{content:"触达数据"}
  body[data-route="customers"] .table td:nth-child(2)::before{content:"城市 / 来源"}body[data-route="customers"] .table td:nth-child(3)::before{content:"偏好"}body[data-route="customers"] .table td:nth-child(4)::before{content:"生命周期"}body[data-route="customers"] .table td:nth-child(5)::before{content:"消费"}
  body[data-route="history"] .table td:nth-child(2)::before{content:"时间"}body[data-route="history"] .table td:nth-child(3)::before{content:"参加 / 到场"}body[data-route="history"] .table td:nth-child(4)::before{content:"成交人数"}body[data-route="history"] .table td:nth-child(5)::before{content:"成交金额"}
  .venue-hero,.venue-banner{grid-template-columns:1fr!important;padding:20px!important;gap:16px!important;border-radius:18px!important}
  .venue-hero h2,.venue-banner h2{font-size:25px!important;line-height:1.25!important}
  .venue-stats{grid-template-columns:repeat(3,1fr)!important;gap:5px!important}
  .venue-stats strong{font-size:23px!important}
  .venue-host{min-width:0!important;padding:15px!important}
  .schedule-card{grid-template-columns:1fr!important;gap:12px!important}
  .schedule-meta{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important}
  .recap-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .recap-metrics>div{padding:10px 5px!important}
  .dialog{width:calc(100vw - 24px)!important;max-width:none!important;max-height:86vh!important;margin:auto!important}
  .form-grid{grid-template-columns:1fr!important}
  .mobile-bottom-nav{position:fixed;z-index:100;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));height:var(--mobile-bar);display:grid;grid-template-columns:repeat(5,1fr);padding:5px 4px;border:1px solid rgba(109,31,58,.14);border-radius:20px;background:rgba(255,252,250,.96);box-shadow:0 14px 38px rgba(58,18,33,.2);backdrop-filter:blur(18px)}
  .mobile-bottom-nav button{border:0;background:transparent;color:#806b71;font:inherit;font-size:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:15px;min-width:0;cursor:pointer}
  .mobile-bottom-nav button.active{color:#bd245f;background:#faeaf0;font-weight:700}
  .m-icon{position:relative;display:block;width:22px;height:20px;color:currentColor}
  .m-home:before{content:"";position:absolute;left:4px;top:6px;width:12px;height:11px;border:1.8px solid currentColor;border-top:0;border-radius:2px}.m-home:after{content:"";position:absolute;left:5px;top:2px;width:10px;height:10px;border-left:1.8px solid currentColor;border-top:1.8px solid currentColor;transform:rotate(45deg);border-radius:2px}
  .m-content:before{content:"";position:absolute;inset:1px 3px;border:1.8px solid currentColor;border-radius:3px}.m-content:after{content:"";position:absolute;left:7px;right:6px;top:6px;height:1.8px;background:currentColor;box-shadow:0 5px 0 currentColor,0 10px 0 currentColor}
  .m-salon:before{content:"";position:absolute;left:2px;right:2px;bottom:2px;height:10px;border:1.8px solid currentColor;border-radius:8px 8px 3px 3px}.m-salon:after{content:"";position:absolute;left:7px;top:1px;width:7px;height:7px;border:1.8px solid currentColor;border-radius:50%;background:#fffaf8}
  .m-people:before,.m-people:after{content:"";position:absolute;border:1.8px solid currentColor;border-radius:50%}.m-people:before{width:7px;height:7px;left:7px;top:1px}.m-people:after{width:16px;height:9px;left:2px;bottom:1px;border-radius:9px 9px 3px 3px}
  .m-more{display:flex;align-items:center;justify-content:center;gap:3px}.m-more i{width:4px;height:4px;border-radius:50%;background:currentColor}
  .mobile-more-layer{position:fixed;z-index:120;inset:0;pointer-events:none;display:block;visibility:hidden}
  .mobile-more-layer.open{pointer-events:auto;visibility:visible}
  .mobile-more-shade{position:absolute;inset:0;border:0;background:rgba(37,11,21,.42);opacity:0;transition:.22s}
  .mobile-more-layer.open .mobile-more-shade{opacity:1}
  .mobile-more-sheet{position:absolute;left:0;right:0;bottom:0;padding:9px 16px calc(20px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;background:#fffaf8;box-shadow:0 -20px 60px rgba(50,14,28,.25);transform:translateY(105%);transition:.26s ease}
  .mobile-more-layer.open .mobile-more-sheet{transform:translateY(0)}
  .mobile-sheet-handle{width:42px;height:4px;margin:0 auto 14px;border-radius:8px;background:#dbcbd0}
  .mobile-sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.mobile-sheet-head small{color:#9a727f}.mobile-sheet-head h2{margin:3px 0 0;font-size:24px}.mobile-sheet-head>button{width:38px;height:38px;border:0;border-radius:50%;background:#f2e5e9;color:#6d1f3a;font-size:24px}
  .mobile-sheet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-sheet-grid button{display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;gap:2px 10px;text-align:left;padding:13px;border:1px solid rgba(109,31,58,.13);border-radius:15px;background:#fff;color:#341923}.mobile-sheet-grid b{grid-row:1/3;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#f8e6ed;color:#b8225a}.mobile-sheet-grid span{font-weight:700}.mobile-sheet-grid small{color:#90727b;font-size:10px}
  .mobile-sheet-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:13px}.mobile-sheet-actions button{min-height:42px;border:0;border-radius:12px;background:#6d1f3a;color:#fff;font-size:12px}
}
@media(max-width:380px){.metrics{grid-template-columns:1fr!important}.mobile-sheet-actions{grid-template-columns:1fr}.page-head h1,.hero-head h1{font-size:26px!important}}

/* mobile final QA: prevent inherited desktop minimum widths */
@media(max-width:430px){
  .main,#view,#view>*{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .metrics{grid-template-columns:1fr!important}
  .page-actions{grid-template-columns:1fr!important}
  .page-actions .button{min-width:0!important;max-width:100%!important}
  .mobile-bottom-nav{grid-template-columns:repeat(5,20%)!important}
  .mobile-bottom-nav button{width:100%!important;min-width:0!important;max-width:100%!important}
  .wxm-cockpit,.wxm-cockpit-head,.wxm-cockpit-body,.wxm-section,.wxm-card,.wxm-lead,.wxm-grid,.wxm-grid.four,.wxm-roadmap,.wxm-metrics,.venue-hero,.venue-section{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .wxm-cockpit-head{padding:22px 18px!important}
  .wxm-cockpit-head h2,.wxm-card h2,.wxm-card h3,.wxm-card p,.wxm-card b{max-width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important}
  .wxm-tabs{display:flex!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:10px 12px!important}
  .wxm-tabs button{flex:0 0 auto!important;min-width:max-content!important;scroll-snap-align:start}
  .wxm-lead,.wxm-grid,.wxm-grid.four,.wxm-roadmap,.wxm-metrics{grid-template-columns:1fr!important}
  .venue-hero,.venue-banner{overflow:hidden!important}
  .venue-kicker{font-size:10px!important;letter-spacing:.12em!important}
}
/* mobile width lock */
@media(max-width:860px){
.main{display:block!important;width:100%!important;max-width:100vw!important;min-width:0!important;margin:0!important;padding:0 14px calc(var(--mobile-bar) + 22px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important}
#view{min-width:0!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
.metrics{display:grid!important;width:100%!important;max-width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.metric{width:auto!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.panel,.venue-section,.dashboard-flow-panel{width:100%!important;max-width:100%!important;box-sizing:border-box!important;min-width:0!important;overflow:hidden!important}
.mobile-bottom-nav{position:fixed!important;left:8px!important;right:auto!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;overflow:hidden!important}
.mobile-bottom-nav button{width:auto!important;max-width:none!important;min-width:0!important;padding:0!important}
}
@media(max-width:430px){
  .metrics{grid-template-columns:1fr!important}
  .page-actions{grid-template-columns:1fr!important}
  .mobile-bottom-nav{grid-template-columns:repeat(5,20%)!important}
  .mobile-bottom-nav button{width:100%!important;max-width:100%!important}
}
