.stores-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.stores-search { max-width: 360px; }
.stores-table .cell-main b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stores-screens { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.stores-actions { display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; }

.stores-created { border-left: 4px solid var(--th-red, #C8102E); }
.stores-created__body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; width: 100%; }
.stores-created__body > div { min-width: 220px; flex: 1; }

.stores-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; align-items: start; }
.stores-form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 14px; align-items: center; }
.stores-form-grid > *, .stores-form-grid-3 > * { min-width: 0; }
.stores-switch { margin-top: 8px; }
.stores-narrow { max-width: 360px; }

.stores-field { display: flex; flex-direction: column; gap: 6px; }
.stores-toggle { width: fit-content; }
.stores-toggle .mud-toggle-item { min-width: 44px; }

.stores-add-city { display: inline-flex; align-items: center; gap: 6px; color: var(--th-red, #C8102E); font-weight: 600; }
.stores-new-city { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--th-cream, #F5EDE3); display: flex; flex-direction: column; gap: 8px; }

.stores-adv-title { display: flex; flex-direction: column; gap: 2px; }
.stores-adv-group { display: block; color: var(--th-brown, #6F4E37); margin-top: 12px; }
.stores-adv-group:first-child { margin-top: 0; }
.stores-checks { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 4px; }

.stores-steps { display: flex; flex-direction: column; gap: 10px; }
.stores-step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--border, rgba(0,0,0,.12)); border-radius: 10px; }
.stores-step__icon { display: inline-flex; align-items: center; justify-content: center; }
.stores-step__detail { color: var(--muted, #6b6b6b); font-size: .8rem; }
.stores-step--pending { opacity: .65; }
.stores-step--running { border-color: var(--th-red, #C8102E); }
.stores-step--done .stores-step__label { font-weight: 600; }
.stores-step--failed { border-color: var(--mud-palette-error); background: var(--th-red-soft, #FBE6EA); }
.stores-step--skipped .stores-step__label { color: var(--muted, #6b6b6b); }

.stores-config__store { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--muted, #6b6b6b); font-size: .9rem; }
.stores-config__store .mud-icon-root { color: var(--th-red, #C8102E); }
.stores-config__store b { color: var(--ink, inherit); }
.stores-section { padding: 14px 0; border-bottom: 1px solid var(--border, rgba(0,0,0,.12)); }
.stores-section:first-of-type { padding-top: 0; }
.stores-section__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stores-section__head .section-title { margin-bottom: 0; }
.stores-preview { overflow-x: auto; padding-bottom: 4px; }

.stcfg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.stcfg__main { min-width: 0; }
.stcfg__store { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: linear-gradient(135deg, var(--th-red, #C8102E), #8f0b21); color: #fff; }
.stcfg__store > div { display: flex; flex-direction: column; min-width: 0; }
.stcfg__store b { font-size: 1.02rem; line-height: 1.2; }
.stcfg__store span { opacity: .85; font-size: .82rem; }
.stcfg__store-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.16); flex: none; }
.stcfg__tabs .mud-tabs-tabbar { border-bottom: 1px solid var(--border, rgba(0,0,0,.12)); }
.stcfg__tabs .mud-tab { text-transform: none; font-weight: 600; min-width: 0; padding: 6px 14px; }
.stcfg__panel { padding: 16px 2px 4px; }
.stcfg-card { border: 1px solid var(--border, rgba(0,0,0,.12)); border-radius: 14px; overflow: hidden; background: var(--mud-palette-surface); }
.stcfg-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.stcfg-row + .stcfg-row { border-top: 1px solid var(--border, rgba(0,0,0,.08)); }
.stcfg-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 180px; flex: 1; }
.stcfg-row__text b { font-size: .92rem; }
.stcfg-row__text span { color: var(--muted, #6b6b6b); font-size: .8rem; }
.stcfg-tab { display: inline-flex; align-items: center; gap: 8px; }
.stcfg-tab__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--th-red, #C8102E); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; }
.seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--th-cream, #F5EDE3); border: 1px solid var(--border, rgba(0,0,0,.08)); flex: none; max-width: 100%; flex-wrap: wrap; }
.seg__item { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink, #3b2a24); font: inherit; font-size: .85rem; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg__item:hover:not(:disabled):not(.on) { background: rgba(200, 16, 46, .08); color: var(--th-red, #C8102E); }
.seg__item.on { background: var(--th-red, #C8102E); color: #fff; box-shadow: 0 2px 8px rgba(200, 16, 46, .28); }
.seg__item:disabled { cursor: default; opacity: .6; }
.seg__item:focus-visible { outline: 2px solid var(--th-red, #C8102E); outline-offset: 2px; }
.seg--cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; }
.seg--cards .seg__item { flex-direction: column; gap: 6px; min-height: 72px; padding: 12px 8px; border: 1px solid var(--border, rgba(0,0,0,.12)); border-radius: 12px; background: var(--mud-palette-surface); white-space: normal; line-height: 1.25; text-align: center; }
.seg--cards .seg__item.on { border-color: var(--th-red, #C8102E); background: var(--th-red, #C8102E); color: #fff; box-shadow: 0 4px 12px rgba(200, 16, 46, .25); }
.stcfg-order { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stcfg-order__card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 12px 14px; border: 2px solid var(--border, rgba(0,0,0,.12)); border-radius: 14px; background: var(--mud-palette-surface); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.stcfg-order__card:hover:not(:disabled) { border-color: var(--th-red, #C8102E); transform: translateY(-1px); }
.stcfg-order__card.selected { border-color: var(--th-red, #C8102E); box-shadow: 0 0 0 4px var(--th-red-soft, #FBE6EA); }
.stcfg-order__card b { font-size: .92rem; }
.stcfg-order__card > span:last-child { color: var(--muted, #6b6b6b); font-size: .8rem; }
.stcfg-order__arrow { color: var(--th-red, #C8102E); display: inline-flex; }
.stcfg-wall { display: flex; gap: 5px; }
.stcfg-wall i { display: inline-flex; align-items: flex-end; justify-content: center; width: 26px; height: 44px; border-radius: 5px; background: #2b2b2b; color: rgba(255,255,255,.8); font-style: normal; font-size: .72rem; font-weight: 700; padding-bottom: 4px; }
.stcfg-wall i.first { background: var(--th-red, #C8102E); color: #fff; }
.stcfg-promos { display: flex; flex-direction: column; gap: 8px; }
.stcfg-promo { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border: 1px solid var(--border, rgba(0,0,0,.12)); border-radius: 12px; transition: border-color .15s, background .15s; }
.stcfg-promo.on { border-color: var(--th-red, #C8102E); background: var(--th-red-soft, #FBE6EA); }
.stcfg-promo.inactive { opacity: .6; }
.stcfg-promo__thumb { width: 92px; height: 52px; border-radius: 8px; overflow: hidden; background: #1f1f1f; display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); }
.stcfg-promo__thumb img, .stcfg-promo__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stcfg-promo__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stcfg-promo__text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stcfg-promo__text span { color: var(--muted, #6b6b6b); font-size: .78rem; }
.stcfg-weather { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; background: var(--th-cream, #F5EDE3); }
.stcfg__preview { position: sticky; top: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, #2a2a2a, #161616); color: #fff; }
.stcfg__preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.stcfg__preview-head > div { display: flex; flex-direction: column; gap: 2px; }
.stcfg__preview-head span { font-size: .75rem; opacity: .7; }
.stcfg__preview-head .mud-icon-button { color: #fff; }
.stcfg__preview-wall { overflow-x: auto; padding: 4px 0 2px; }
.stcfg__preview-wall .preview-screens { gap: 6px; flex-wrap: nowrap; }
.stcfg__preview-wall .preview-frame { border-color: rgba(255,255,255,.18); }
.stcfg__dirty { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #ffd27a; }

@media (max-width: 1100px) {
    .stcfg { grid-template-columns: minmax(0, 1fr); }
    .stcfg__preview { position: static; order: -1; }
}

@media (max-width: 900px) {
    .stores-form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .stores-form-grid, .stores-form-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .stcfg-order { grid-template-columns: minmax(0, 1fr); }
    .seg--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stcfg-promo { grid-template-columns: 72px minmax(0, 1fr) auto; }
    .stcfg-promo__thumb { width: 72px; height: 42px; }
    .stores-search { max-width: none; width: 100%; }
    .stores-step { grid-template-columns: 28px 1fr; }
    .stores-step__detail { grid-column: 2; }
}
