/* Estate expansion — international SIMs, travel eSIMs, country views */

/* ---- Freshness stamp: every monthly figure carries its load date ---- */
.mp-fresh {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--fg-3);
}
.mp-fresh .mp-ic { color: var(--fg-3); }
/* ---- eSIM install lifecycle (Story 3) ---- */
.mp-install-badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 4px 11px; border-radius: 999px;
  background: var(--mp-clay-tint); color: var(--mp-clay-ink);
  font-size: 13px; font-weight: 600;
}
.mp-install-grid {
  display: grid; grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px; align-items: start; margin-bottom: 18px;
}
.mp-install-qr {
  padding: 12px; border-radius: 14px; background: #fff;
  border: 1px solid var(--border-subtle); display: flex; justify-content: center;
}
.mp-install-qr svg, .mp-install-qr canvas, .mp-install-qr img { width: 100%; height: auto; display: block; }
.mp-install-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mp-install-note { margin: 0; font-size: 13.5px; color: var(--fg-3); line-height: 1.6; max-width: 58ch; text-wrap: pretty; }
.mp-install-receipt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 15px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-subtle);
}
.mp-install-receipt-text { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg-2); min-width: 0; }
.mp-install-receipt-text .mp-ic { color: var(--fg-3); flex: 0 0 auto; }
.mp-install-receipt-text strong { color: var(--mp-deep-forest); font-weight: 700; }
@media (max-width: 700px) {
  .mp-install-grid { grid-template-columns: 1fr; }
  .mp-install-qr { max-width: 190px; }
}

/* ---- Request pattern (Story 2): banner, row chip, tickets ---- */
.mp-req-banner {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.5;
}
.mp-req-banner-text { flex: 1 1 auto; min-width: 0; }
.mp-req-banner--open { background: var(--mp-clay-tint-soft); border: 1px solid var(--mp-clay-line); color: var(--fg-2); }
.mp-req-banner--open .mp-ic, .mp-req-banner--open strong { color: var(--mp-clay-ink); }
.mp-req-banner--declined { background: rgba(217,128,66,0.16); border: 1px solid rgba(217,128,66,0.42); color: var(--fg-1); }
.mp-req-banner--declined .mp-ic, .mp-req-banner--declined strong { color: var(--mp-clay-ink); }
.mp-req-banner-x {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 7px; border: none;
  background: transparent; color: var(--fg-3); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mp-req-banner-x:hover { background: rgba(255,255,255,0.6); color: var(--fg-1); }
/* Anchors carry no affordance in this project, so an inline link states one. */
.mp-ticket-ref { font-weight: 700; color: var(--mp-clay-ink); text-decoration: underline; text-underline-offset: 2px; }
.mp-ticket-ref:hover { color: var(--mp-clay-ink); text-decoration-thickness: 2px; }

.mp-req-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: var(--mp-clay-tint); color: var(--mp-clay-ink);
  font-size: 13px; font-weight: 600;
}
.mp-status-cell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

.mp-req-open-card { padding: 14px 16px; border-radius: 12px; background: var(--mp-clay-tint-soft); border: 1px solid var(--mp-clay-line); }
.mp-req-open-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--mp-clay-ink); }
.mp-req-open-body { font-size: 13px; color: var(--fg-2); line-height: 1.55; margin-top: 6px; }



/* ---- Group discovery state ---- */
.mp-discovery { padding: 40px 28px; text-align: center; max-width: 520px; margin: 0 auto; }
.mp-discovery-ic {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mp-mist); color: var(--mp-pine);
}
.mp-discovery-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-discovery-msg { font-size: 13.5px; color: var(--fg-3); line-height: 1.6; margin: 8px 0 0; text-wrap: pretty; }
.mp-discovery-cta { margin-top: 18px; display: flex; justify-content: center; }

/* Assigned SIMs column on User Management: one chip per group held */
.mp-table td .mp-sims-cell { min-width: 210px; }

.mp-estate-foot-usage { font-size: 12.5px; font-weight: 600; color: var(--fg-3); }

.mp-fresh-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border-subtle);
  font-size: 12px; font-weight: 600; color: var(--fg-2); white-space: nowrap;
}

/* ---- Allowance flag ---- */
.mp-allow-flag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; line-height: 1.3;
}
.mp-allow-flag--within { background: rgba(37,103,81,0.09); color: var(--mp-pine); }
.mp-allow-flag--over { background: var(--mp-clay-tint); color: var(--mp-clay-ink); }

/* ---- Country summary strip ---- */
.mp-country-strip {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  margin-bottom: 18px;
}
.mp-country-tile {
  display: flex; align-items: flex-start; gap: 11px; text-align: left;
  padding: 13px 14px; border-radius: 12px; cursor: pointer;
  background: #fff; border: 1px solid var(--border-subtle); font: inherit;
  transition: border-color 120ms, box-shadow 120ms;
}
.mp-country-tile:hover { border-color: var(--mp-pine); box-shadow: var(--shadow-soft); }
.mp-country-tile.is-active { border-color: var(--mp-pine); box-shadow: 0 0 0 2px var(--focus-pine); }
.mp-country-flag { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.mp-country-body { min-width: 0; }
.mp-country-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-country-net { display: block; font-size: 12px; color: var(--fg-3); margin-top: 1px; }
.mp-country-figs {
  display: flex; align-items: baseline; gap: 8px; margin-top: 6px;
  font-size: 12.5px; color: var(--fg-2); font-variant-numeric: tabular-nums;
}
.mp-country-figs strong { font-weight: 700; color: var(--fg-1); }

/* ---- Group chips for the mixed-results Group column ---- */
.mp-group-chip--intl { background: rgba(80,154,130,0.16); color: var(--mp-deep-forest); }
.mp-group-chip--travel { background: var(--mp-sand-tint); color: var(--mp-sand-ink); }

/* Country cell in the international table */
.mp-country-cell { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.mp-country-cell .mp-country-flag { font-size: 15px; }

/* Monthly usage cell */
.mp-mu { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.mp-mu b { font-weight: 700; color: var(--fg-1); font-variant-numeric: tabular-nums; }
.mp-mu span { font-size: 13px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.mp-mu.is-over b { color: var(--mp-clay-ink); }

/* ---- Estate by Country card removed: the country strip in the International
   panel is the country view. ---- */
.mp-estate-facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: 10px; font-size: 13.5px; color: var(--fg-2);
}
.mp-estate-facts .mp-country-cell { font-weight: 600; color: var(--mp-deep-forest); }
.mp-usage-months {
  display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 4px 0 16px;
}
.mp-usage-month {
  padding: 14px 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border-subtle);
}
.mp-usage-month-label { font-size: 12px; font-weight: 600; color: var(--fg-3); }
.mp-usage-month-val {
  font-size: 22px; font-weight: 700; color: var(--mp-deep-forest);
  margin-top: 5px; font-variant-numeric: tabular-nums;
}
.mp-usage-month-sub { font-size: 12px; color: var(--fg-3); margin-top: 3px; }
.mp-estate-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

@media (max-width: 820px) {
  .mp-country-strip { grid-template-columns: 1fr 1fr; }
}

/* ---- Wizard (ported from the ATLAS create-pool pattern, Story 4) ---- */
.mp-wiz { display: flex; flex-direction: column; gap: 16px; max-width: 980px; }
.mp-wiz-steps { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mp-wiz-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--fg-3); }
.mp-wiz-steps li.is-current { color: var(--mp-deep-forest); }
.mp-wiz-steps li.is-done { color: var(--mp-pine); }
.mp-wiz-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--bg-2); border: 1px solid var(--border-subtle); color: var(--fg-3); }
.is-current .mp-wiz-dot { background: var(--mp-pine); border-color: var(--mp-pine); color: #fff; }
.is-done .mp-wiz-dot { background: var(--mp-mist); border-color: var(--mp-mist); color: var(--mp-pine); }
.mp-wiz-title { font-size: 16px; font-weight: 700; color: var(--mp-deep-forest); margin-bottom: 14px; }
.mp-wiz-block { margin-top: 26px; }
.mp-wiz-foot { display: flex; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border-subtle); }
.mp-wiz-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border-subtle); font-size: 13.5px; color: var(--fg-2); line-height: 1.55; }
.mp-wiz-note strong { color: var(--mp-deep-forest); font-weight: 700; }
.mp-wiz-note .mp-ic { color: var(--mp-pine); flex: 0 0 auto; margin-top: 1px; }
.mp-wiz-note--warn { background: var(--mp-clay-tint-soft); border-color: var(--mp-clay-line); color: var(--mp-clay-ink); }
.mp-wiz-note--warn .mp-ic, .mp-wiz-note--warn strong { color: var(--mp-clay-ink); }

/* ---- Destination picker ---- */
.mp-dest { position: relative; max-width: 520px; }
.mp-dest-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.mp-dest-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 11px; border-radius: 999px; background: var(--mp-mist); color: var(--mp-deep-forest); font-size: 13px; font-weight: 600; }
.mp-dest-chip.is-zone { background: var(--mp-sand-tint); color: var(--mp-sand-ink); }
.mp-dest-chip .mp-country-flag { font-size: 14px; }
.mp-dest-chip button { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: none; background: rgba(255,255,255,0.6); color: inherit; cursor: pointer; padding: 0; }
.mp-dest-chip button:hover { background: #fff; }
.mp-dest-field { display: flex; align-items: center; gap: 9px; padding: 0 13px; border-radius: 11px; background: #fff; border: 1px solid var(--border-strong); }
.mp-dest-field .mp-ic { color: var(--fg-3); }
.mp-dest-field input { flex: 1; border: none; outline: none; background: none; padding: 12px 0; font: inherit; font-size: 14px; color: var(--fg-1); }
.mp-dest-menu { position: absolute; z-index: 30; left: 0; right: 0; margin-top: 6px; background: #fff; border: 1px solid var(--border-subtle); border-radius: 12px; box-shadow: var(--shadow-card-hover); overflow: hidden; }
.mp-dest-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px 14px; border: none; background: none; font: inherit; text-align: left; cursor: pointer; }
.mp-dest-opt:hover { background: var(--bg-2); }
.mp-dest-opt-main { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--mp-deep-forest); }
.mp-dest-opt-meta { font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.mp-dest-none { padding: 12px 14px; font-size: 13px; color: var(--fg-3); }

/* ---- One trip or ongoing ---- */
.mp-choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 620px; }
.mp-choice { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 16px 18px; border-radius: 13px; background: #fff; border: 1px solid var(--border-subtle); font: inherit; cursor: pointer; transition: border-color 120ms, box-shadow 120ms; }
.mp-choice:hover { border-color: var(--mp-pine); }
.mp-choice.is-selected { border-color: var(--mp-pine); box-shadow: 0 0 0 2px var(--focus-pine); }
.mp-choice-name { font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-choice-msg { font-size: 13px; color: var(--fg-3); line-height: 1.5; }

/* ---- Travel plan cards ---- */
.mp-tplan-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.mp-tplan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid var(--border-subtle); cursor: pointer; transition: border-color 120ms, box-shadow 120ms; }
.mp-tplan:hover { border-color: var(--mp-pine); }
.mp-tplan.is-selected { border-color: var(--mp-pine); box-shadow: 0 0 0 2px var(--focus-pine); }
.mp-tplan-gb { font-size: 26px; font-weight: 700; color: var(--mp-deep-forest); line-height: 1.1; }
.mp-tplan-term { font-size: 12.5px; color: var(--fg-3); line-height: 1.45; min-height: 34px; }
.mp-tplan-price { font-size: 17px; font-weight: 700; color: var(--fg-1); }
.mp-tplan-price span { font-size: 12.5px; font-weight: 600; color: var(--fg-3); }
.mp-tplan .mp-plan-btn { margin-top: 10px; }
.mp-premium-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--mp-sand-tint); color: var(--mp-sand-ink); font-size: 11.5px; font-weight: 700; }
.mp-premium-chip .mp-svc-cost { color: inherit; }
.mp-premium-chip .mp-cost-tip { right: -8px; }

/* ---- Charge summary ---- */
.mp-charge { margin-top: 18px; padding: 18px 20px; border-radius: 13px; background: var(--bg-2); border: 1px solid var(--border-subtle); }
.mp-charge-label { font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-charge-msg { margin: 8px 0 0; font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }
.mp-charge-msg strong { font-weight: 700; }
.mp-field-error { font-size: 12.5px; font-weight: 600; color: var(--mp-ember-ink); margin-top: 7px; }
.mp-modal-ic--ember { background: var(--mp-ember-tint); color: var(--mp-ember-ink); }
.mp-modal-ic--clay { background: var(--mp-clay-tint); color: var(--mp-clay-ink); }
.mp-working { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--fg-2); }
.mp-spin-ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--mp-mist); border-top-color: var(--mp-pine); animation: mp-spin 700ms linear infinite; }

/* ---- Plans on a travel eSIM ---- */
.mp-plan-rows { display: flex; flex-direction: column; }
.mp-plan-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 15px 24px; border-top: 1px solid var(--border-subtle); }
.mp-plan-row:first-child { border-top: none; }
.mp-plan-row-main { min-width: 0; }
.mp-plan-row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.mp-plan-row-name { font-size: 14.5px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-plan-row-sub { font-size: 12.5px; color: var(--fg-3); margin-top: 4px; }
.mp-plan-row-usage { font-size: 13px; color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-plan-row-usage strong { color: var(--fg-1); font-weight: 700; }
.mp-plan-count { font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 820px) {
  .mp-plan-row { grid-template-columns: 1fr; row-gap: 8px; }
  .mp-tplan-grid { grid-template-columns: 1fr; }
}

/* ---- Bulk selection (Story 5) ---- */
.mp-bulk-enter { margin-left: auto; }
.mp-check-cell { width: 40px; padding-right: 0 !important; }
.mp-check { width: 16px; height: 16px; accent-color: var(--mp-pine); cursor: pointer; margin: 0; display: block; }
.mp-bulk-wrap { position: fixed; left: 0; right: 0; bottom: 22px; z-index: 60; display: flex; justify-content: center; pointer-events: none; padding: 0 24px; }
.mp-bulk-bar { pointer-events: auto; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 13px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card-hover); max-width: 100%; }
.mp-bulk-count { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--fg-2); white-space: nowrap; }
.mp-bulk-count .mp-ic { color: var(--mp-pine); }
.mp-bulk-count strong { font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-bulk-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mp-bulk-clear { border: none; background: none; padding: 0 4px; font: inherit; font-size: 13px; font-weight: 700; color: var(--fg-3); cursor: pointer; text-decoration: underline; }
.mp-bulk-clear:hover { color: var(--mp-deep-forest); }

/* Per-line failures */
.mp-fail-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.mp-fail-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13px; color: var(--fg-2); }
.mp-fail-list li span:last-child { color: var(--mp-clay-ink); font-weight: 600; }
.mp-fail-list li span:first-child { flex: 0 0 auto; }
.mp-fail-list li span:last-child { min-width: 0; text-align: right; line-height: 1.45; }

/* Bulk selection is deferred on the phone card layout. */
@media (max-width: 820px) {
  .mp-bulk-enter { display: none; }
  .mp-bulk-wrap { display: none; }
}

/* ---- QA pass (26 August) ---- */
/* 2 — group chips in the Assigned SIMs column read as links */
.mp-chip-link { display: inline-flex; border-radius: 999px; text-decoration: none; transition: box-shadow 120ms, filter 120ms; }
.mp-chip-link:hover { box-shadow: 0 0 0 2px var(--focus-pine); filter: brightness(0.97); }
.mp-chip-link:focus-visible { outline: 2px solid var(--mp-pine); outline-offset: 2px; }
.mp-sims-cell { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* 4 — hero sub-text sits at the meta scale so the headline figure leads */
.mp-pool-hero-tot { font-size: 13.5px; font-weight: 500; color: var(--fg-3); }

/* 8 — plan groups under coverage headings */
.mp-plan-group { margin-bottom: 26px; }
.mp-plan-group:last-child { margin-bottom: 0; }
.mp-plan-group-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--border-subtle); }
.mp-plan-group-head .mp-ic { color: var(--mp-pine); align-self: center; }
.mp-plan-group-head .mp-country-flag { font-size: 17px; align-self: center; }
.mp-plan-group-name { font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-plan-group-sub { font-size: 12.5px; color: var(--fg-3); }

/* 14, 15 — estate detail sections inside the shared disclosure */
.mp-estate-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mp-estate-detail-grid h4 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
@media (max-width: 820px) { .mp-estate-detail-grid { grid-template-columns: 1fr; } }

/* Multi-line fields: the shared input class pins a single-line height, so the
   rows attribute alone does nothing. Scoped to textarea only. */
textarea.mp-field-input { height: auto; min-height: 132px; padding: 12px 14px; resize: vertical; line-height: 1.55; }

/* ---- QA round 2 ---- */
/* 5 — interface text never below 12px; estate detail reference text sits up a step */
.mp-estate-detail-grid .mp-kv-label, .mp-estate-plan .mp-kv-label { font-size: 13px; }
.mp-estate-detail-grid .mp-kv-value, .mp-estate-plan .mp-kv-value { font-size: 15px; }
.mp-usage-month-label { font-size: 13px; }
.mp-usage-month-sub { font-size: 13px; }

/* 6 — pencil on hover beside a single editable field label */
.mp-kv-editable .mp-kv-label { display: flex; align-items: center; gap: 6px; }
.mp-kv-edit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: none; border-radius: 6px;
  background: transparent; color: var(--fg-3); cursor: pointer;
  opacity: 0; transition: opacity 120ms, background 120ms, color 120ms;
}
.mp-kv-editable:hover .mp-kv-edit, .mp-kv-edit:focus-visible { opacity: 1; }
.mp-kv-edit:hover { background: var(--mp-mist); color: var(--mp-pine); }

/* 9 — monthly usage reads on one line, like the standard usage cell */
.mp-mu-line { font-size: 14px; color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mp-mu-line b { font-weight: 700; color: var(--fg-1); }
.mp-mu-line.is-over b { color: var(--mp-clay-ink); }
.mp-mu-none { font-size: 14px; color: var(--fg-3); }

/* ---- QA round 3 ---- */
/* 2 — the QR is single use, said plainly beside it */
.mp-install-once { margin: 12px 0 0; max-width: 220px; font-size: 12.5px; color: var(--fg-3); line-height: 1.5; text-align: center; }

/* 5 — step 2 header and coverage filter chips */
.mp-wiz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-wiz-count { font-size: 13.5px; color: var(--fg-3); }
.mp-cov-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mp-cov-chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border-subtle); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--fg-2); cursor: pointer; transition: border-color 120ms, background 120ms, color 120ms; }
.mp-cov-chip:hover { border-color: var(--mp-pine); color: var(--mp-deep-forest); }
.mp-cov-chip.is-active { background: var(--mp-deep-forest); border-color: var(--mp-deep-forest); color: #fff; }

/* 6 — six positional tints, quiet and palette-derived. Position drives the
   tint, so every destination gets the same rhythm. Text stays --fg-1/--fg-2. */
.mp-plan-group { margin-bottom: 18px; padding: 16px 18px 18px; border-radius: 14px; border: 1px solid var(--border-subtle); }
.mp-plan-group-head { border-bottom-color: rgba(30,65,54,0.10); }
.mp-plan-group--t1 { background: rgba(80,154,130,0.07); }
.mp-plan-group--t2 { background: rgba(196,178,136,0.13); }
.mp-plan-group--t3 { background: rgba(30,65,54,0.05); }
.mp-plan-group--t4 { background: rgba(122,155,138,0.11); }
.mp-plan-group--t5 { background: rgba(217,196,158,0.13); }
.mp-plan-group--t6 { background: rgba(37,103,81,0.06); }

/* 7 — the overlap warning carries a link */
.mp-wiz-note-link { color: inherit; font-weight: 700; text-decoration: underline; }

/* 9 — type sweep: reference labels sit at 13px, values at 14.5px+ */
.mp-tplan-term { font-size: 13px; }
.mp-tplan-price span { font-size: 13px; }
.mp-country-net { font-size: 12.5px; }
.mp-country-figs { font-size: 13px; }
.mp-plan-group-sub { font-size: 13px; }
.mp-plan-row-sub { font-size: 13px; }
.mp-plan-row-usage { font-size: 13.5px; }
.mp-plan-count { font-size: 13px; }
.mp-dest-opt-meta { font-size: 12.5px; }
.mp-premium-chip { font-size: 13px; }
.mp-fresh, .mp-fresh-chip { font-size: 12.5px; }
.mp-usage-month-label, .mp-usage-month-sub { color: var(--fg-3); }

/* 10 — validity cell reads as its own fact, not body text */
.mp-validity { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--border-subtle); font-size: 12.5px; font-weight: 600; color: var(--fg-2); white-space: nowrap; }
.mp-validity .mp-ic { color: var(--fg-3); }
.mp-validity--soon { background: rgba(217,128,66,0.12); border-color: rgba(217,128,66,0.28); color: var(--mp-clay-ink); }
.mp-validity--soon .mp-ic { color: var(--mp-clay-ink); }
.mp-validity--awaiting { background: var(--mp-mist); border-color: rgba(80,154,130,0.28); color: var(--mp-pine); }
.mp-validity--awaiting .mp-ic { color: var(--mp-pine); }

/* ---- CSV upload and batches (Story 6) ---- */
.mp-csv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.mp-csv-h { margin: 0 0 5px; font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-csv-p { margin: 0; font-size: 13.5px; color: var(--fg-3); line-height: 1.55; }
.mp-csv-head-cta { display: flex; gap: 9px; flex-wrap: wrap; }
.mp-csv-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border-subtle); }

.mp-drop {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 38px 24px; border-radius: 14px; cursor: pointer;
  border: 1.5px dashed var(--border-strong); background: var(--bg-2);
  transition: border-color 120ms, background 120ms;
}
.mp-drop:hover, .mp-drop.is-over { border-color: var(--mp-pine); background: var(--mp-mist); }
.mp-drop:focus-visible { outline: 2px solid var(--mp-pine); outline-offset: 2px; }
.mp-drop-ic { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--mp-pine); margin-bottom: 6px; }
.mp-drop-title { font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); text-align: center; word-break: break-all; }
.mp-drop-msg { font-size: 13px; color: var(--fg-3); }

/* Validation report: three buckets, blocked reads warn because the file needs
   fixing, not because anything is broken. */
.mp-report { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.mp-bucket { border-radius: 12px; border: 1px solid var(--border-subtle); overflow: hidden; background: #fff; }
.mp-bucket-head { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px 16px; border: none; background: none; font: inherit; text-align: left; cursor: pointer; }
.mp-bucket-head:hover { background: var(--bg-2); }
.mp-bucket-ic { display: flex; align-items: center; }
.mp-bucket-count { font-size: 17px; font-weight: 700; color: var(--mp-deep-forest); font-variant-numeric: tabular-nums; min-width: 22px; }
.mp-bucket-label { font-size: 14px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-bucket-sub { font-size: 13px; color: var(--fg-3); margin-left: auto; margin-right: 4px; }
.mp-bucket--ok .mp-bucket-ic { color: var(--mp-pine); }
.mp-bucket--info .mp-bucket-ic { color: var(--fg-3); }
.mp-bucket--warn { border-color: rgba(217,128,66,0.35); background: rgba(217,128,66,0.06); }
.mp-bucket--warn .mp-bucket-ic { color: var(--mp-clay-ink); }
.mp-bucket-rows { border-top: 1px solid var(--border-subtle); max-height: 300px; overflow-y: auto; }
.mp-bucket-row { display: grid; grid-template-columns: 72px 1fr 1.4fr; gap: 14px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--border-subtle); font-size: 13.5px; }
.mp-bucket-row:last-child { border-bottom: none; }
.mp-bucket-line { font-size: 12.5px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.mp-bucket-who { font-weight: 600; color: var(--fg-1); }
.mp-bucket-who em { font-weight: 500; color: var(--fg-3); }
.mp-bucket-serial { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--fg-3); }
.mp-bucket-reason { color: var(--fg-2); line-height: 1.5; }
.mp-bucket--warn .mp-bucket-reason { color: var(--mp-clay-ink); }

/* Submitted state */
.mp-batch-done { padding: 40px 28px; text-align: center; max-width: 520px; margin: 0 auto; }
.mp-batch-done-ic { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px; background: var(--mp-mist); color: var(--mp-pine); }
.mp-batch-done-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-batch-done-msg { margin: 0; font-size: 14.5px; color: var(--fg-2); line-height: 1.65; }
.mp-batch-ref { margin-top: 18px; font-size: 13px; color: var(--fg-3); }
.mp-batch-ref strong { color: var(--mp-deep-forest); font-weight: 700; }
.mp-batch-done-cta { margin-top: 22px; display: flex; justify-content: center; }

@media (max-width: 820px) {
  .mp-bucket-row { grid-template-columns: 1fr; row-gap: 4px; }
  .mp-bucket-sub { display: none; }
}

/* An alert row that leads somewhere says so */
.mp-act-link { display: inline-block; margin-top: 7px; padding: 0; border: none; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--mp-pine); cursor: pointer; text-decoration: underline; }

/* A banner with a title and a sentence needs the title on its own line */
.mp-batch-banner-body strong { display: block; margin-bottom: 3px; }

/* A reference or a date is one token: never break it across lines. */
.mp-table td.mp-mono, .mp-table td.mp-nowrap { white-space: nowrap; }

/* ---- Consistency sweep ---- */
/* The estate user-page card heading, as a class rather than inline overrides */
.mp-estate-card-kind { font-size: 18px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-estate-card-line { font-size: 16px; font-weight: 400; color: var(--mp-deep-forest); margin: 2px 0 0; }
.mp-bucket-serial-inline { margin-left: 8px; font-size: 13px; color: var(--fg-3); }

/* Card-level show and hide, for a panel a customer may not want */
.mp-panel-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-subtle); background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--fg-3);
  cursor: pointer; transition: border-color 120ms, color 120ms;
}
.mp-panel-toggle:hover { border-color: var(--mp-pine); color: var(--mp-deep-forest); }
.mp-panel-toggle .mp-ic { transform: rotate(0deg); }
.mp-panel-toggle.is-open .mp-ic { transform: rotate(180deg); }
.mp-panel-toggle:focus-visible { outline: 2px solid var(--mp-pine); outline-offset: 2px; }

/* Alert summary cards filter the list: the ring says which one is showing.
   No transition — React re-renders the card on the state change, so an
   animated ring is discarded at its start value and freezes on the card you
   just left. A 2px ring earns nothing from easing. */
.mp-alert-summary { box-shadow: 0 0 0 0 rgba(37,103,81,0); }
.mp-alert-summary.is-active { box-shadow: 0 0 0 2px var(--mp-pine); }
.mp-alert-summary.is-active-high { box-shadow: 0 0 0 2px rgba(207,76,0,0.35); }

/* ---- Assign a SIM (Story 12) ---- */
.mp-assign-user { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
.mp-assign-user-name { font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-assign-user-email { font-size: 13px; color: var(--fg-3); }
.mp-assign-step-title { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: var(--mp-deep-forest); }

/* Kind tiles */
.mp-assign-kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mp-assign-kind { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--border-subtle); background: #fff; cursor: pointer; transition: border-color 120ms, box-shadow 120ms; }
.mp-assign-kind:hover { border-color: var(--mp-pine); }
.mp-assign-kind.is-selected { border-color: var(--mp-pine); box-shadow: 0 0 0 2px var(--focus-pine); }
.mp-assign-kind.is-blocked { opacity: 0.55; cursor: default; }
.mp-assign-kind.is-blocked:hover { border-color: var(--border-subtle); }
.mp-assign-kind-ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--mp-chalk); color: var(--mp-charcoal); flex: 0 0 auto; }
.mp-assign-kind.is-selected .mp-assign-kind-ic { background: var(--mp-pine); color: #fff; }
.mp-assign-kind-body { min-width: 0; }
.mp-assign-kind-name { font-size: 14.5px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-assign-kind-sub { margin-top: 4px; font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.mp-assign-kind-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: none; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--mp-pine); cursor: pointer; text-decoration: underline; opacity: 1 !important; }
.mp-assign-kind-link:hover { color: var(--mp-deep-forest); }
.mp-assign-kind-check { position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%; background: var(--mp-pine); color: #fff; display: flex; align-items: center; justify-content: center; }

/* Pool context strip */
.mp-assign-pool-ctx { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border-subtle); font-size: 13.5px; color: var(--fg-2); }
.mp-assign-pool-ctx .mp-ic { color: var(--mp-pine); }
.mp-assign-pool-ctx strong { font-weight: 700; color: var(--mp-deep-forest); }

/* SIM pick list — uses mp-table, so only the search bar and empty state are custom */
.mp-assign-list { margin-top: 4px; }
.mp-assign-list-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mp-assign-search-wrap { flex: 1; min-width: 280px; }
.mp-assign-search-wrap .mp-finder-field { width: 100%; }
.mp-assign-empty { padding: 20px 0; }
.mp-assign-tr { cursor: pointer; }
.mp-assign-tr:hover { background: var(--bg-2); }
.mp-assign-tr td:last-child .mp-ic { color: var(--fg-3); }

/* Confirm pair */
.mp-assign-confirm-pair { display: flex; align-items: center; gap: 18px; margin: 18px 0; min-width: 0; }
.mp-assign-confirm-item { flex: 1; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-subtle); }
.mp-assign-confirm-label { font-size: 12px; font-weight: 700; color: var(--fg-3); margin-bottom: 6px; }
.mp-assign-confirm-value { font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-assign-confirm-sub { font-size: 13px; color: var(--fg-3); margin-top: 3px; }
.mp-assign-confirm-arrow { color: var(--fg-3); flex: 0 0 auto; }

/* UK/pool rows need fewer columns than international */
.mp-assign-row--uk { grid-template-columns: 190px auto 1fr auto 20px; }

/* Five kinds: one row when wide, then 3 + 2, never a lone orphan above 620px. */
.mp-assign-kinds--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1280px) { .mp-assign-kinds--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) {
  .mp-assign-kinds { grid-template-columns: repeat(2, 1fr); }
  .mp-assign-kinds--5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) { .mp-assign-kinds--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .mp-assign-kinds { grid-template-columns: 1fr; }
  .mp-assign-row { grid-template-columns: 1fr; gap: 6px; }
  .mp-assign-row-serial { min-width: 0; }
  .mp-assign-confirm-pair { flex-direction: column; }
  .mp-assign-confirm-arrow { transform: rotate(90deg); }
}

/* Transfer Your Number */
.mp-transfer-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.mp-transfer-step-num { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: var(--mp-deep-forest); color: #fff; flex: 0 0 auto; margin-top: 2px; }
.mp-transfer-step-head { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--mp-deep-forest); }
.mp-transfer-step-body { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.6; }
.mp-transfer-callout { margin: 24px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border-subtle); }
.mp-transfer-callout-label { font-size: 13px; font-weight: 700; color: var(--fg-3); margin-bottom: 14px; }
