.sfm-shell { display:grid; gap:16px; color:#20242b; }
.sfm-command { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px 19px; border:1px solid #dce1e7; border-radius:15px; background:#f8f9fb; }
.sfm-command span,.sfm-published header span,.sfm-promo-bar>div>span,.sfm-offers>header span,.sfm-discount-tools>div>span,.sfm-offer-editor header span { color:#d9202f; font-size:10px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.sfm-command h2 { margin:2px 0 3px; font-size:23px; letter-spacing:-.04em; }
.sfm-command p,.sfm-promo-bar p,.sfm-discount-tools p { margin:0; color:#737983; font-size:13px; }
.sfm-command>button,.sfm-tabs button,.sfm-content button { min-height:42px; padding:0 15px; border:1px solid #d5dae1; border-radius:11px; color:#2e333a; background:#fff; font-weight:800; }
.sfm-content button.primary,.sfm-health>button,.sfm-offers>header>button { color:#fff; border-color:#d9202f; background:#d9202f; }
.sfm-command>button:hover,.sfm-tabs button:hover,.sfm-content button:hover { border-color:#aeb5bf; }
.sfm-content button.primary:hover,.sfm-health>button:hover,.sfm-offers>header>button:hover { border-color:#b81624; background:#b81624; }
.sfm-tabs { display:flex; gap:7px; padding:5px; border:1px solid #dce1e7; border-radius:15px; background:#eef1f5; }
.sfm-tabs button { flex:1; border-color:transparent; background:transparent; }
.sfm-tabs button.active { border-color:#d7dce2; background:#fff; box-shadow:0 7px 18px rgba(28,33,40,.08); }
.sfm-content { min-width:0; }
.sfm-loading { display:grid; min-height:420px; place-items:center; align-content:center; gap:12px; border:1px solid #dce1e7; border-radius:20px; background:#f7f8fa; }
.sfm-loading i { width:38px; height:38px; border:4px solid #e0e3e8; border-top-color:#d9202f; border-radius:50%; animation:sfm-spin .8s linear infinite; }
.sfm-loading span { color:#8a9099; font-size:10px; font-weight:850; letter-spacing:.14em; text-transform:uppercase; }
@keyframes sfm-spin { to { transform:rotate(360deg); } }
.sfm-health { position:relative; display:grid; grid-template-columns:1fr auto; gap:5px 22px; padding:19px 21px; overflow:hidden; border:1px solid #222831; border-radius:16px; color:#f8f9fa; background:linear-gradient(135deg,#242a32,#11151a); }
.sfm-health::after { position:absolute; right:-60px; top:-85px; width:260px; height:260px; border-radius:50%; background:radial-gradient(circle,rgba(35,205,124,.22),transparent 68%); content:""; pointer-events:none; }
.sfm-health.has-error::after { background:radial-gradient(circle,rgba(217,32,47,.26),transparent 68%); }
.sfm-health-signal { display:flex; align-items:center; gap:8px; color:#9aa1aa; font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.sfm-health-signal i { width:8px; height:8px; border-radius:50%; background:#26d281; box-shadow:0 0 0 5px rgba(38,210,129,.12); }
.sfm-health.has-error .sfm-health-signal i { background:#ff4c5b; box-shadow:0 0 0 5px rgba(255,76,91,.12); }
.sfm-health.has-warning .sfm-health-signal i { background:#f4b740; box-shadow:0 0 0 5px rgba(244,183,64,.12); }
.sfm-health>strong { grid-column:1; margin-top:5px; font-size:clamp(24px,calc(3vw / var(--crm-ui-scale, 1)),36px); letter-spacing:-.05em; }
.sfm-health>p { grid-column:1; margin:0 0 10px; color:#a9afb7; }
.sfm-health dl { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin:0; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:13px; background:rgba(255,255,255,.1); }
.sfm-health dl div { display:grid; gap:4px; padding:11px 13px; background:#181d23; }
.sfm-health dt { color:#8f969f; font-size:10px; font-weight:800; text-transform:uppercase; }
.sfm-health dd { margin:0; color:#fff; font-weight:850; }
.sfm-health>button { position:absolute; z-index:1; top:18px; right:20px; }
.sfm-problems{margin-top:10px;padding:12px 15px;border:1px solid #dce1e7;border-radius:12px;background:#fff}.sfm-problems summary{cursor:pointer;color:#343a43;font-size:12px;font-weight:850}.sfm-problems h4{margin:13px 0 5px;font-size:12px}.sfm-problems p,.sfm-problems li{color:#747c87;font-size:11px;line-height:1.55}.sfm-problems ul{max-height:240px;margin:6px 0 0;padding-left:20px;overflow:auto}
.sfm-channel-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:12px; }
.sfm-channel { min-height:145px; padding:20px; border:1px solid #dce1e7; border-radius:18px; background:#f8f9fb; }
.sfm-channel>span { color:#737983; font-size:11px; font-weight:850; text-transform:uppercase; }
.sfm-channel>strong { display:block; margin:14px 0 8px; font-size:35px; letter-spacing:-.05em; }
.sfm-channel p { margin:0; color:#7c828c; font-size:12px; }
.sfm-published,.sfm-discount-list,.sfm-promo-bar,.sfm-offers { margin-top:12px; padding:20px; border:1px solid #dce1e7; border-radius:20px; background:#f8f9fb; }
.sfm-import { display:grid; grid-template-columns:minmax(230px,.7fr) minmax(380px,1.3fr); gap:22px; padding:24px; border:1px solid #dce1e7; border-radius:20px; background:#f8f9fb; }
.sfm-import-copy span { color:#737983; font-size:11px; font-weight:850; text-transform:uppercase; }
.sfm-import h3 { margin:8px 0; font-size:25px; }
.sfm-import p,.sfm-import aside { color:#737983; }
.sfm-import form { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:18px; border:1px solid #dce1e7; border-radius:16px; background:#fff; }
.sfm-import form label { display:grid; gap:6px; color:#656b74; font-size:11px; font-weight:800; }
.sfm-import form label.wide,.sfm-import form button { grid-column:1/-1; }
.sfm-import form input,.sfm-import form select { width:100%; min-height:44px; padding:0 11px; border:1px solid #d5dae1; border-radius:10px; background:#fff; }
.sfm-import aside { grid-column:2; padding:0 18px; font-size:12px; }
.sfm-import aside strong { color:#252a30; }
.sfm-import aside ol { margin:8px 0 0; padding-left:18px; line-height:1.8; }
.sfm-published header,.sfm-offers>header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:15px; }
.sfm-published h3,.sfm-promo-bar h3,.sfm-offers h3,.sfm-discount-tools h3 { margin:3px 0; font-size:21px; }
.sfm-published header label { display:flex; align-items:center; min-width:min(380px,48%); border:1px solid #d5dae1; border-radius:11px; background:#fff; }
.sfm-published header input { width:100%; min-height:42px; padding:0 12px; border:0; background:transparent; outline:0; }
.sfm-published header kbd { margin-right:9px; color:#9298a1; font:700 10px inherit; }
.sfm-product-row { display:grid; width:100%; grid-template-columns:88px minmax(0,1fr) 200px 22px; align-items:center; gap:14px; min-height:70px!important; padding:10px 12px!important; border-width:1px 0 0!important; border-radius:0!important; text-align:left; }
.sfm-product-row:first-child { border-top:0!important; }
.sfm-product-row>span:not(.sfm-product-state) { display:grid; gap:4px; min-width:0; }
.sfm-product-row strong,.sfm-product-row small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sfm-product-row small { color:#7d838d; font-size:11px; }
.sfm-product-row>span:nth-child(3) { text-align:right; }
.sfm-product-row>i { color:#d9202f; font-style:normal; }
.sfm-product-state { display:inline-flex; width:max-content; padding:6px 8px; border-radius:8px; color:#7e858e; background:#e8ebef; font-size:10px; font-weight:900; }
.sfm-product-state.is-live { color:#087348; background:#dff6eb; }
.sfm-discount-tools { display:grid; grid-template-columns:minmax(260px,1fr) 200px auto auto; align-items:end; gap:12px; padding:21px; border:1px solid #dce1e7; border-radius:20px; background:#f8f9fb; }
.sfm-discount-tools label,.sfm-offer-editor label { display:grid; gap:6px; color:#656b74; font-size:11px; font-weight:800; }
.sfm-discount-tools input,.sfm-discount-list input[type="search"],.sfm-promo-bar input,.sfm-offer-editor input,.sfm-offer-editor select { width:100%; min-height:42px; padding:0 11px; border:1px solid #d5dae1; border-radius:10px; background:#fff; }
.sfm-discount-list header { display:flex; align-items:center; gap:9px; margin-bottom:12px; }
.sfm-discount-list header label { flex:1; }
.sfm-discount-list header>span { margin-left:auto; color:#717780; font-size:12px; }
.sfm-discount-row { display:grid; grid-template-columns:24px minmax(0,1fr) 210px; align-items:center; gap:12px; min-height:67px; padding:9px 11px; border-top:1px solid #e0e4e9; cursor:pointer; }
.sfm-discount-row:first-child { border-top:0; }
.sfm-discount-row>span { display:grid; gap:4px; }
.sfm-discount-row>span:last-child { text-align:right; }
.sfm-discount-row small { color:#858b94; font-size:11px; }
.sfm-discount-row input { width:17px; height:17px; accent-color:#d9202f; }
.sfm-promo-bar { display:grid; grid-template-columns:280px 1fr; gap:26px; }
.sfm-promo-bar form { display:grid; grid-template-columns:1fr 1fr auto auto; align-items:center; gap:9px; }
.sfm-promo-bar form label,.sfm-check { display:flex!important; align-items:center; gap:8px; }
.sfm-promo-bar form input[type="checkbox"],.sfm-check input { width:17px; height:17px; accent-color:#d9202f; }
.sfm-offer-editor { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin:14px 0; padding:18px; border:1px solid #d9dee4; border-radius:15px; background:#fff; }
.sfm-offer-editor header,.sfm-offer-editor footer { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.sfm-offer-editor h4 { margin:3px 0 0; font-size:19px; }
.sfm-offer-editor header>button { min-width:42px; padding:0; font-size:20px; }
.sfm-offer-editor footer { justify-content:flex-end; }
.sfm-file input { position:absolute; opacity:0; pointer-events:none; }
.sfm-file span { display:grid; min-height:42px; place-items:center; border:1px dashed #b9c0c9; border-radius:10px; color:#414750; cursor:pointer; }
.sfm-offer { display:grid; grid-template-columns:120px minmax(0,1fr) 100px auto; align-items:center; gap:14px; padding:12px 0; border-top:1px solid #e0e4e9; }
.sfm-offer:first-child { border-top:0; }
.sfm-offer.is-hidden { opacity:.58; }
.sfm-offer img { width:120px; height:70px; border-radius:9px; object-fit:cover; background:#e5e8ec; }
.sfm-offer>span { display:grid; gap:5px; min-width:0; }
.sfm-offer small { color:#7e858e; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sfm-offer>div { display:flex; gap:6px; }
.sfm-offer button { min-height:36px; padding:0 10px; }
.sfm-offer button.danger { color:#b51e2b; }
.sfm-empty { padding:35px 12px; color:#7d838c; text-align:center; }
.sfm-parser-history{margin-top:12px;padding:20px;border:1px solid #dce1e7;border-radius:20px;background:#f8f9fb}
.sfm-parser-review{margin-top:12px;padding:18px 20px;border:1px solid #e7bdc1;border-radius:18px;background:#fff8f8}
.sfm-parser-review>header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:12px}
.sfm-parser-review>header span{color:#c42330;font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.sfm-parser-review h3{margin:3px 0;font-size:20px}.sfm-parser-review p{margin:0;color:#747b84;font-size:12px}
.sfm-parser-review>header>b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:8px;color:#be2530;background:#ffe4e7}
.sfm-parser-review>div{max-height:360px;overflow:auto;border:1px solid #eadde0;border-radius:12px;background:#fff}
.sfm-content .sfm-parser-review>div>button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:0;border-top:1px solid #f0e7e9;border-radius:0;text-align:left}
.sfm-parser-review>div>button:first-child{border-top:0}.sfm-parser-review button span{display:grid;gap:3px;min-width:0}.sfm-parser-review button strong{font-size:12px}.sfm-parser-review button small{color:#79818b;font-size:11px}.sfm-parser-review button em{flex:0 0 auto;color:#bd2531;font-size:11px;font-style:normal}
.sfm-parser-history>header span{color:#d9202f;font-size:10px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.sfm-parser-history>header h3{margin:4px 0;font-size:21px;letter-spacing:-.03em}
.sfm-parser-history>header p{margin:0 0 18px;color:#737983;font-size:12px}
.sfm-parser-run{margin-top:10px;overflow:hidden;border:1px solid #dde2e8;border-radius:14px;background:#fff}
.sfm-parser-run>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #edf0f3;background:#fff}
.sfm-parser-run time{font-size:13px;font-weight:900;color:#20242b}
.sfm-parser-run>header span{font-size:11px;font-weight:800;color:#747b84;text-align:right}
.sfm-parser-events{max-height:420px;overflow:auto}
.sfm-parser-event{display:grid;grid-template-columns:106px minmax(0,1fr) minmax(145px,auto);align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #edf0f3}
.sfm-parser-event:first-child{border-top:0}
.sfm-parser-event>span{justify-self:start;padding:5px 8px;border-radius:6px;font-size:10px;font-weight:900;white-space:nowrap}
.sfm-parser-event>span.is-new{color:#ad2531;background:#fff0f1}
.sfm-parser-event>span.is-price{color:#385168;background:#edf3f8}
.sfm-parser-event strong{min-width:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.sfm-parser-event small{color:#59616c;font-size:11px;font-weight:750;text-align:right;line-height:1.4}
.sfm-parser-empty{padding:36px 20px;border:1px dashed #d2d8e0;border-radius:14px;background:#fff;text-align:center}
.sfm-parser-empty strong{font-size:15px}
.sfm-parser-empty p{max-width:440px;margin:7px auto 0;color:#79818b;font-size:12px;line-height:1.5}
.sfm-content .sfm-parser-more{display:block;width:100%;margin-top:12px}
@media(max-width:680px){.sfm-parser-history{padding:14px}.sfm-parser-run>header{align-items:flex-start;flex-direction:column}.sfm-parser-run>header span{text-align:left}.sfm-parser-event{grid-template-columns:1fr;gap:5px}.sfm-parser-event small{text-align:left}}
@media(max-width:980px){.sfm-health dl{grid-template-columns:repeat(2,1fr)}.sfm-channel-grid{grid-template-columns:1fr}.sfm-discount-tools{grid-template-columns:1fr 1fr}.sfm-discount-tools>div{grid-column:1/-1}.sfm-promo-bar{grid-template-columns:1fr}.sfm-promo-bar form{grid-template-columns:1fr 1fr}.sfm-offer{grid-template-columns:90px minmax(0,1fr)}.sfm-offer img{width:90px}.sfm-offer>div{grid-column:1/-1}.sfm-offer>b{text-align:right}}
@media(max-width:680px){.sfm-command,.sfm-published header,.sfm-offers>header{align-items:stretch;flex-direction:column}.sfm-tabs{overflow-x:auto}.sfm-tabs button{min-width:120px}.sfm-health{grid-template-columns:1fr;padding:21px}.sfm-health>button{position:static;grid-column:1;margin-top:8px}.sfm-health dl{grid-template-columns:1fr}.sfm-published header label{min-width:0;width:100%}.sfm-product-row{grid-template-columns:75px minmax(0,1fr) 18px}.sfm-product-row>span:nth-child(3){grid-column:2;text-align:left}.sfm-discount-tools,.sfm-offer-editor,.sfm-promo-bar form,.sfm-import,.sfm-import form{grid-template-columns:1fr}.sfm-import aside{grid-column:1;padding:0}.sfm-import form label.wide,.sfm-import form button{grid-column:1}.sfm-discount-list header{align-items:stretch;flex-direction:column}.sfm-discount-list header>span{margin-left:0}.sfm-discount-row{grid-template-columns:22px minmax(0,1fr)}.sfm-discount-row>span:last-child{grid-column:2;text-align:left}.sfm-promo-bar{padding:16px}.sfm-offer-editor header,.sfm-offer-editor footer{grid-column:1}.sfm-offer{grid-template-columns:72px minmax(0,1fr)}.sfm-offer img{width:72px;height:58px}.sfm-offer>b{grid-column:2;text-align:left}}
@media(prefers-reduced-motion:reduce){.sfm-loading i{animation:none}}
@media(max-width:680px){.sfm-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.sfm-tabs button{min-width:0;padding:0 8px;font-size:11px}}
