/* MIGI Funnel OS — scoped styling; preserves surrounding admin and existing modals */
#lma-funnel-host.lmf-shell{--lmf-ink:#19251f;--lmf-muted:#768179;--lmf-border:#e2eae5;--lmf-green:#159b65;--lmf-bg:#f5f8f6;color:var(--lmf-ink);max-width:100%;min-width:0;font-family:inherit}
.lmf-shell *{box-sizing:border-box}
.lmf-shell .lmf-eyebrow{font-size:10px;color:#16885c;letter-spacing:.15em;font-weight:900}
.lmf-shell .lmf-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:24px 0 14px}
.lmf-shell h2{font-size:25px!important;font-weight:850!important;letter-spacing:-.045em;margin:5px 0 4px!important;color:var(--lmf-ink)}
.lmf-shell .lmf-top p,.lmf-shell .lmf-analytics p{font-size:12px;color:var(--lmf-muted);line-height:1.55;margin:4px 0}
.lmf-shell button{font-size:12px;font-weight:740;white-space:nowrap;border:1px solid #dfe8e2;border-radius:10px;background:#fff;color:#283b32;padding:8px 11px;cursor:pointer;min-height:34px;transition:background .16s,border-color .16s}
.lmf-shell button:hover{background:#effaf4;border-color:#a6d8bd}
.lmf-shell button.active,.lmf-shell button.lmf-primary{background:#17452f!important;border-color:#17452f!important;color:#fff!important}
.lmf-shell .lmf-views{display:flex;flex-wrap:wrap;gap:5px;padding:4px;border:1px solid var(--lmf-border);background:#fff;border-radius:14px}
.lmf-shell .lmf-views button{border:0}
.lmf-shell .lmf-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.lmf-shell .lmf-stat{background:#fff;border:1px solid var(--lmf-border);border-radius:16px;padding:15px;min-width:0}
.lmf-shell .lmf-stat small,.lmf-shell .lmf-stat span{display:block;color:#738078;font-size:11px;font-weight:550}
.lmf-shell .lmf-stat strong{display:block;color:#26392f;font-size:24px;font-weight:870;letter-spacing:-.04em;margin:7px 0 5px;overflow-wrap:anywhere}
.lmf-shell .lmf-stat-0{background:#f3f7ff}.lmf-shell .lmf-stat-1{background:#fff9ed}.lmf-shell .lmf-stat-2{background:#f1fbf7}.lmf-shell .lmf-stat-3{background:#f4f0ff}
.lmf-shell .lmf-global-filters{background:#fff;border:1px solid var(--lmf-border);border-radius:17px;padding:13px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin:14px 0}
.lmf-shell .lmf-global-filters label{display:flex;flex:1 1 110px;flex-direction:column;gap:6px;min-width:100px;color:#6b786f;font-size:10px;font-weight:790}
.lmf-shell .lmf-global-filters label.lmf-long{flex:2 1 220px}
.lmf-shell input,.lmf-shell select{height:36px;min-width:0;width:100%;background:#fff;border:1px solid #dce6df;border-radius:10px;color:#223329;padding:7px 9px;font:inherit;font-size:12px;outline-offset:2px}
.lmf-shell input:focus,.lmf-shell select:focus{border-color:#159b65;outline:2px solid #c5efda}
.lmf-shell .lmf-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0}
.lmf-shell .lmf-controls-hint{color:#7d8881;font-size:10px;margin-left:auto;max-width:290px;line-height:1.3}
.lmf-shell .lmf-settings{background:#fbfdfb;border:1px solid #c8e9d9;border-radius:16px;padding:16px;margin:6px 0 16px;display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end}
.lmf-shell .lmf-settings[hidden]{display:none}
.lmf-shell .lmf-settings h3{margin:0;width:100%;font-size:15px}
.lmf-shell .lmf-settings p{width:100%;margin:0;color:#69796f;font-size:12px;line-height:1.5}
.lmf-shell .lmf-settings label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:770;min-width:140px}
.lmf-shell .lmf-settings label.lmf-checkbox{flex-direction:row;align-items:center}
.lmf-shell .lmf-settings .lmf-checkbox input{height:17px;width:17px}
.lmf-shell .lmf-stage-nav{display:flex;gap:7px;overflow:auto;scrollbar-width:thin;margin:16px 0 10px}
.lmf-shell .lmf-stage-nav button{flex:1 0 auto;background:#f4f8f5;padding:10px 12px;border-radius:11px}
.lmf-shell .lmf-lanes{display:grid;grid-template-columns:repeat(4,minmax(252px,1fr));gap:12px;align-items:start;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:3px 1px 18px;scrollbar-color:#b4cabd transparent}
.lmf-shell .lmf-lane{scroll-snap-align:start;background:#f8faf9;border:1px solid #dfe7e1;border-radius:17px;min-width:0;overflow:hidden;box-shadow:0 5px 18px rgba(19,51,33,.035)}
.lmf-shell .lmf-lane-head{padding:14px;background:#fff;border-bottom:1px solid var(--lmf-border);min-height:78px}
.lmf-shell .lmf-lane-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lmf-shell .lmf-lane-title b{font-size:14px;letter-spacing:-.01em}
.lmf-shell .lmf-lane-title span{font-weight:850;background:#eff5f1;border-radius:14px;padding:4px 9px;font-size:11px}
.lmf-shell .lmf-lane-head small{display:block;font-size:10px;color:#879188;margin-top:8px}
.lmf-shell .lmf-lane[data-lmf-lane=basket] .lmf-lane-head{border-top:4px solid #8d9dcd}
.lmf-shell .lmf-lane[data-lmf-lane=moderation] .lmf-lane-head{border-top:4px solid #ecb15d}
.lmf-shell .lmf-lane[data-lmf-lane=published] .lmf-lane-head{border-top:4px solid #29ae79}
.lmf-shell .lmf-lane[data-lmf-lane=sold] .lmf-lane-head{border-top:4px solid #9381c5}
.lmf-shell .lmf-lane-filters{display:flex;flex-direction:column;gap:5px;padding:10px 11px}
.lmf-shell .lmf-lane-filters input,.lmf-shell .lmf-lane-filters select{height:33px;background:#fff;font-size:11px}
.lmf-shell .lmf-lane-body{display:flex;flex-direction:column;gap:9px;padding:0 10px 10px;min-height:156px}
.lmf-shell .lmf-card{border:1px solid #e4e9e5;background:#fff;border-radius:14px;padding:12px;min-width:0}
.lmf-shell .lmf-card-meta{display:flex;justify-content:space-between;gap:6px;color:#919d94;font-size:10px;font-weight:730}
.lmf-shell .lmf-card h4{font-size:13px;font-weight:810;margin:10px 0 6px;line-height:1.36;color:#1b2720;overflow-wrap:anywhere}
.lmf-shell .lmf-card>p{font-size:11px;color:#728177;line-height:1.45;margin:5px 0;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lmf-shell .lmf-card-tags{display:flex;flex-wrap:wrap;gap:4px;margin:10px 0}
.lmf-shell .lmf-card-tags span{font-size:9px;padding:4px 6px;background:#f0f4f1;border-radius:6px;color:#62766a}
.lmf-shell .lmf-card-bottom{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:10px 0}
.lmf-shell .lmf-card-bottom strong{font-size:14px;font-weight:840;color:#173f2d}
.lmf-shell .lmf-card-bottom small{font-size:10px;color:#86938b}
.lmf-shell .lmf-salebox{display:flex;flex-direction:column;gap:3px;border-top:1px solid #e9eee8;margin-top:8px;padding-top:8px;max-width:100%}
.lmf-shell .lmf-salebox b{color:#7255ab;font-size:13px}
.lmf-shell .lmf-salebox span{font-weight:780;overflow-wrap:anywhere;font-size:11px}
.lmf-shell .lmf-salebox .lmf-alert{color:#b24630}
.lmf-shell .lmf-card-actions{border-top:1px solid #edf1ee;margin-top:9px;padding-top:9px;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.lmf-shell .lmf-card-actions button{font-size:10px;padding:6px 9px;min-height:30px}
.lmf-shell .lmf-card-actions .lmf-link{color:#0c7950;background:#f3fbf6}
.lmf-shell .lmf-card-actions .lmf-muted{font-size:9px;color:#9daaa0;white-space:normal}
.lmf-shell .lmf-lane-foot{padding:8px 11px 12px;border-top:1px solid #e6eee8;display:flex;align-items:center;justify-content:space-between;gap:5px}
.lmf-shell .lmf-lane-foot span{font-size:10px;color:#8b958f}
.lmf-shell .lmf-lane-foot button{font-size:10px;padding:6px 9px}
.lmf-shell .lmf-empty{padding:22px 12px;text-align:center;color:#7d9084;font-size:12px;line-height:1.5}
.lmf-shell .lmf-error{color:#b44236;background:#fff0ed;border-radius:10px}
.lmf-shell .lmf-compact .lmf-card{padding:8px 10px}.lmf-shell .lmf-compact .lmf-card h4{margin:5px 0;font-size:12px}.lmf-shell .lmf-compact .lmf-card>p{display:none}.lmf-shell .lmf-compact .lmf-card-tags{margin:3px 0}.lmf-shell .lmf-compact .lmf-card-bottom{margin:4px 0}
.lmf-shell .lmf-table-wrap{overflow:auto;max-width:100%;border:1px solid var(--lmf-border);border-radius:16px;background:#fff}
.lmf-shell .lmf-table{border-collapse:collapse;width:100%;min-width:850px;font-size:12px}
.lmf-shell .lmf-table th,.lmf-shell .lmf-table td{padding:12px;text-align:left;border-bottom:1px solid #e9efeb;vertical-align:middle}
.lmf-shell .lmf-table th{font-size:10px;letter-spacing:.04em;color:#627367;background:#f7faf8;position:sticky;top:0}
.lmf-shell .lmf-table td small{display:block;color:#9aa79d;margin-top:4px}
.lmf-shell .lmf-analytics{margin:10px 0 17px;background:#fff;border:1px solid var(--lmf-border);border-radius:18px;padding:18px}
.lmf-shell .lmf-analytics-header{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px}
.lmf-shell .lmf-analytics-header h3{font-size:17px;margin:0}.lmf-shell .lmf-analytics-header select{max-width:150px}
.lmf-shell .lmf-analytics-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.lmf-shell .lmf-analytics-metrics>div{padding:12px;border-radius:13px;background:#f5f9f6;min-width:0}
.lmf-shell .lmf-analytics-metrics small{display:block;font-size:10px;color:#758478}
.lmf-shell .lmf-analytics-metrics b{display:block;font-size:19px;margin-top:8px;overflow-wrap:anywhere}
.lmf-shell .lmf-charts{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:13px 0}
.lmf-shell .lmf-charts article{padding:15px;border:1px solid #eaf0eb;border-radius:14px;min-width:0}
.lmf-shell .lmf-charts h4,.lmf-shell .lmf-insights h4{font-size:13px;margin:0 0 12px}
.lmf-shell .lmf-charts svg{width:100%;height:155px;display:block;overflow:visible;fill:#2dad7b}
.lmf-shell .lmf-charts svg line{stroke:#d1dfd5;stroke-width:1}
.lmf-shell .lmf-chart-label{display:flex;justify-content:space-between;font-size:10px;color:#8c9a90}
.lmf-shell .lmf-category-bars>div{display:grid;grid-template-columns:minmax(66px,1fr) 2fr 67px;gap:10px;align-items:center;margin:8px 0;font-size:10px}
.lmf-shell .lmf-category-bars span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lmf-shell .lmf-category-bars>div>div{height:8px;background:#e8f0eb;border-radius:5px;overflow:hidden}
.lmf-shell .lmf-category-bars i{display:block;height:100%;background:#31af7b}
.lmf-shell .lmf-insights{background:#f4f8f5;border-radius:13px;padding:14px}
.lmf-shell .lmf-insights p{border-left:2px solid #a7dabb;padding:4px 0 4px 11px;margin:9px 0}
.lmf-shell .lmf-notes{font-size:10px!important;color:#93a096!important;margin-top:11px!important}
@media(max-width:1290px){.lmf-shell .lmf-lanes{grid-template-columns:repeat(4,minmax(275px,1fr))}.lmf-shell .lmf-global-filters label{flex-basis:115px}}
@media(max-width:850px){.lmf-shell .lmf-top{flex-direction:column}.lmf-shell .lmf-stats,.lmf-shell .lmf-analytics-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.lmf-shell .lmf-charts{grid-template-columns:1fr}.lmf-shell .lmf-lanes{display:flex;overflow-x:auto;gap:10px;scroll-snap-type:x mandatory}.lmf-shell .lmf-lane{min-width:min(85vw,360px);width:min(85vw,360px);flex:0 0 auto}.lmf-shell .lmf-stage-nav{position:sticky;top:0;background:#fff;z-index:7;padding:8px 0}.lmf-shell .lmf-stage-nav button{font-size:11px}.lmf-shell .lmf-controls-hint{display:none}}
@media(max-width:480px){.lmf-shell .lmf-lane{width:min(84vw,335px);min-width:min(84vw,335px)}.lmf-shell .lmf-top h2{font-size:21px!important}.lmf-shell .lmf-global-filters{gap:7px}.lmf-shell .lmf-global-filters label{flex:1 1 42%}.lmf-shell .lmf-global-filters label.lmf-long{flex:1 1 100%}.lmf-shell .lmf-stat{padding:11px}.lmf-shell .lmf-stat strong{font-size:20px}.lmf-shell .lmf-settings label{flex:1 1 44%;min-width:0}}

.lmf-shell .lmf-table-pages{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:12px;border-top:1px solid #e9efeb}
