/* Meesho: Today, Products, Campaigns (the Accounts tab keeps the .mso-* rules in pages.css). Colours come from the shared variables only. */
.ms { max-width: 1240px; }
.ms-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ms-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ms-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ms-grow { flex: 1 1 auto; min-width: 0; }
.ms-small { font-size: 12.5px; }
.ms-wrap { overflow-wrap: anywhere; }
.ms-tab-badge { background: var(--danger); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700; margin-left: 6px; }
.ms-note-ok { background: rgba(62, 207, 142, .1); border: 1px solid rgba(62, 207, 142, .35); color: var(--ok); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; }

/* status and state chips */
.ms-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--panel-3); color: var(--muted); white-space: nowrap; }
.ms-chip.s-ready, .ms-chip.s-made, .ms-chip.s-new { background: var(--accent-bg); color: var(--accent-2); }
.ms-chip.s-new { background: var(--panel-3); color: var(--muted); }
.ms-chip.s-making { background: var(--accent-bg); color: var(--accent-2); }
.ms-chip.s-scheduled, .ms-chip.s-needs-link { background: rgba(245, 185, 66, .14); color: var(--warn); }
.ms-chip.s-posted, .ms-chip.s-linked { background: rgba(62, 207, 142, .15); color: var(--ok); }
.ms-chip.s-held { background: rgba(245, 185, 66, .14); color: var(--warn); }
.ms-chip.s-failed { background: var(--danger-bg); color: var(--danger); }
.ms-chip.s-skipped { background: var(--panel-3); color: var(--faint); text-decoration: line-through; }

/* summary strip */
.ms-sum { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-sum .chip-btn b { color: var(--text); font-variant-numeric: tabular-nums; }

/* needs you */
.ms-needs { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ms-need { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--warn); flex-wrap: wrap; }
.ms-need.bad { border-left-color: var(--danger); }
.ms-need.info { border-left-color: var(--accent); }
.ms-need-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-need-main b { overflow-wrap: anywhere; }
.ms-need-act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ms-problems { margin: 2px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.ms-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; }
.ms-check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* making now */
.ms-making { display: flex; flex-direction: column; gap: 10px; }
.ms-bar { height: 8px; border-radius: 6px; background: var(--panel-3); overflow: hidden; }
.ms-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; transition: width .6s ease; }

/* campaign slots today */
.ms-camp { display: flex; flex-direction: column; gap: 10px; }
.ms-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-slot { display: flex; flex-direction: column; gap: 3px; min-width: 130px; max-width: 220px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.ms-slot[disabled] { cursor: default; }
.ms-slot:hover:not([disabled]) { border-color: var(--faint); }
.ms-slot .t { font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-slot .st { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ms-slot .nm { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-slot.st-posted { border-color: rgba(62, 207, 142, .45); } .ms-slot.st-posted .st { color: var(--ok); }
.ms-slot.st-scheduled { border-color: rgba(245, 185, 66, .45); } .ms-slot.st-scheduled .st { color: var(--warn); }
.ms-slot.st-making .st, .ms-slot.st-made .st, .ms-slot.st-due .st { color: var(--accent-2); } .ms-slot.st-making, .ms-slot.st-due { border-color: var(--accent); }
.ms-slot.st-held { border-color: rgba(245, 185, 66, .5); } .ms-slot.st-held .st { color: var(--warn); }
.ms-slot.st-failed { border-color: rgba(255, 107, 107, .5); } .ms-slot.st-failed .st { color: var(--danger); }
.ms-slot.st-resting .st, .ms-slot.st-missed .st { color: var(--warn); } .ms-slot.st-missed { opacity: .75; }

/* products */
.ms-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ms-tools .input { width: auto; min-width: 140px; }
.ms-tools .ms-search { flex: 1 1 200px; }
.ms-statuses { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-bulk { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--accent-bg); border: 1px solid rgba(108, 140, 255, .4); position: sticky; top: 0; z-index: 3; }
.ms-list { display: flex; flex-direction: column; gap: 8px; }
.ms-prod { display: grid; grid-template-columns: auto 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.ms-prod.sel { border-color: var(--accent); }
.ms-prod input[type='checkbox'] { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--accent); }
.ms-thumb { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--panel-3); display: grid; place-items: center; color: var(--faint); border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.ms-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-pmain { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ms-pname { background: none; border: 0; padding: 0; color: var(--text); font: inherit; font-weight: 650; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.ms-pname:hover { color: var(--accent-2); text-decoration: underline; }
.ms-pmeta { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 12.5px; }
.ms-miss { color: var(--warn); font-size: 12.5px; }
.ms-err { color: #ff9a9a; font-size: 12.5px; overflow-wrap: anywhere; }
.ms-pact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ms-pager { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* forms */
.ms-form { display: flex; flex-direction: column; gap: 12px; }
.ms-photos { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ms-ph { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--panel-3); border: 1px solid var(--line-2); }
.ms-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-ph button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: grid; place-items: center; padding: 0; }
.ms-ph button:hover { background: var(--danger); }
.ms-refused { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; }
.ms-refused li { margin-bottom: 4px; overflow-wrap: anywhere; }
.ms-hard { font-size: 12.5px; }
.ms-ready { font-weight: 600; font-size: 13px; }
.ms-ready.ok { color: var(--ok); } .ms-ready.no { color: var(--warn); }

/* details drawer */
.ms-drawer .modal-body { display: flex; flex-direction: column; gap: 14px; }
.ms-tl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; font-size: 12.5px; }
.ms-tl li { display: grid; grid-template-columns: 130px 90px minmax(0, 1fr); gap: 8px; }
.ms-tl .w { color: var(--faint); } .ms-tl .e { font-weight: 700; color: var(--muted); } .ms-tl .n { overflow-wrap: anywhere; }
.ms-kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; font-size: 13px; margin: 0; }
.ms-kv dt { color: var(--muted); } .ms-kv dd { margin: 0; overflow-wrap: anywhere; }

/* campaigns */
.ms-clist { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.ms-ccard { display: flex; flex-direction: column; gap: 10px; }
.ms-ccard.off { opacity: .8; }
.ms-times { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-times .ms-chip { background: var(--panel-3); color: var(--text); }
.ms-days { display: flex; gap: 6px; flex-wrap: wrap; }
.ms-slotrow { display: grid; grid-template-columns: 110px 140px 120px auto; gap: 8px; align-items: center; }
.ms-slotrow .input { width: 100%; }
.ms-err-box { white-space: pre-line; }

@media (max-width: 760px) {
  .ms-prod { grid-template-columns: auto 56px minmax(0, 1fr); }
  .ms-prod .ms-pact { grid-column: 1 / -1; justify-content: flex-start; }
  .ms-thumb { width: 56px; height: 56px; }
  .ms-slotrow { grid-template-columns: 1fr 1fr; }
  .ms-clist { grid-template-columns: minmax(0, 1fr); }
  .ms-tl li { grid-template-columns: minmax(0, 1fr); }
  .ms-kv { grid-template-columns: 1fr; }
  .ms-tools .input { min-width: 0; flex: 1 1 140px; }
}

/* a product's listing photographs (faces hidden, read on their own) and the checks on what was made from them */
.mp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mp-tile { display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; min-width: 0; }
.mp-tile.off { opacity: .72; border-style: dashed; }
.mp-img { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 8px; background: var(--panel-3); display: grid; place-items: center; }
.mp-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-noimg { padding: 12px; text-align: center; font-size: 12.5px; }
.mp-meta { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mp-badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--panel-3); color: var(--muted); }
.mp-badge.ok { background: rgba(62, 207, 142, .15); color: var(--ok); }
.mp-badge.bad { background: var(--danger-bg); color: var(--danger); }
.mp-colours { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.mp-colour { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.mp-colour.unsure { opacity: .75; }
.mp-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--sw, var(--panel-3)); flex: 0 0 auto; }
.mp-colours.big .mp-swatch { width: 24px; height: 24px; }
.mp-cname i { font-style: normal; color: var(--faint); margin-left: 5px; font-variant-numeric: tabular-nums; }
.mp-look { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.mp-kv { margin: 0; display: grid; gap: 6px; }
.mp-row { display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: baseline; }
.mp-row dt { color: var(--muted); font-size: 12.5px; }
.mp-row dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; overflow-wrap: anywhere; }
.mp-conflict { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; }
.mp-edit-row { display: grid; grid-template-columns: 1fr 1fr 110px; gap: 8px; }
.mp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mp-check { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.mp-pair { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mp-pair figure { margin: 0; width: 96px; }
.mp-pair img { width: 96px; height: 128px; object-fit: cover; border-radius: 6px; display: block; }
.mp-pair figcaption { font-size: 11.5px; color: var(--muted); text-align: center; }
.mp-refs { display: flex; gap: 8px; }
.mp-verdict { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .mp-row { grid-template-columns: 1fr; } .mp-edit-row { grid-template-columns: 1fr; } }
/* product stock and automatic posting */
.ms-stockline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ms-stockbar { height: 8px; width: 120px; max-width: 40%; border-radius: 6px; background: var(--panel-3); overflow: hidden; flex: 0 0 auto; }
.ms-stockbar i { display: block; height: 100%; background: var(--ok); border-radius: 6px; transition: width .5s ease; }
.ms-stockbar.low i { background: var(--warn); }
.ms-stockbar.none i { background: var(--danger); }
.ms-stocknum { font-weight: 650; font-size: 13px; }
.ms-stocknum.warn { color: var(--warn); }
.ms-stocknum.bad { color: var(--danger); }
.ms-catrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; }
.ms-cathead { display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: baseline; min-width: 0; }
.ms-waiting { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow: auto; }
.ms-waiting li { display: flex; gap: 10px; align-items: center; }
.ms-sect { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.ms-sect h3 { margin: 0; font-size: 14px; }
.ms-whynot { padding: 8px 12px; border-radius: 10px; background: rgba(245, 185, 66, .12); border: 1px solid rgba(245, 185, 66, .4); font-size: 13px; overflow-wrap: anywhere; }
.ms-whynot.bad { background: var(--danger-bg); border-color: rgba(255, 107, 107, .5); }
.ms-recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.ms-recent li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
