/*
 * Office Unbound — administrative interface concepts.
 *
 * Loaded after concepts.css; every rule is scoped under `.ux`. Reuses the
 * shared tokens and components (ux-card, ux-rows, ux-chip, the mg- page
 * frame from the Migration Center). Prefixes: oa- admin console frame,
 * ta- tenant admin, tw- new tenant wizard, sp- security policies,
 * up- updates, en- engine settings, da- delegated access.
 */

/* ===================================================== admin frame · oa- == */

.ux.oa { --ux-h: auto; }
.ux .oa-body { grid-template-columns: 236px minmax(0, 1fr); }
.ux .oa-nav { gap: 1px; padding: 10px 8px; }
.ux .oa-org {
  display: flex; align-items: center; gap: 9px; margin: 0 0 8px; padding: 6px 8px 10px; border-bottom: 1px solid var(--ux-line); min-width: 0;
}
.ux .oa-org > .ux-cell__t { flex: 1; }
.ux .oa-org > .ux-i { color: var(--ux-muted); }
.ux .oa-org__av { width: 28px; height: 28px; border-radius: 6px; font-size: 11px; }
.ux .oa-nav__i { min-height: 29px; }
.ux .oa-nav__d { margin-left: auto; }
.ux .oa-nav__apps { margin-top: auto; border-top: 1px solid var(--ux-line); border-radius: 0; padding-top: 8px; min-height: 38px; color: var(--ux-muted); }

.ux .oa-kv { font-size: 12px; gap: 7px 12px; }
.ux .oa-kv > :nth-child(even) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux .oa-rows > li { padding: 8px 14px; align-items: center; font-size: 12.5px; }
.ux .oa-rows > li > .ux-i { margin-top: 0; align-self: flex-start; margin-top: 2px; }
.ux .oa-hint { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.ux .mg-content .ux-card__h > .ux-i { color: var(--ux-muted); }

/* On/off switch. */
.ux .oa-tg { position: relative; display: inline-block; width: 30px; height: 17px; flex: none; border-radius: 9px; background: var(--ux-line-2); }
.ux .oa-tg > i { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.ux .oa-tg.is-on { background: var(--ux-teal); }
.ux .oa-tg.is-on > i { left: 15px; }

/* Radio and option cards, shared by the wizard and engine settings. */
.ux .oa-radio { display: inline-grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--ux-line-2); background: var(--ux-surface); }
.ux .oa-radio.is-on { border-color: var(--ux-navy); }
.ux .oa-radio.is-on::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ux-navy); }

/* The admin console collapses to icons, then to a bottom bar. */
@container ux (max-width: 900px) {
  .ux .oa-body { grid-template-columns: 56px minmax(0, 1fr); }
  .ux .oa-body > .oa-nav { display: flex; padding: 8px 6px; align-items: stretch; }
  .ux .oa-nav .oa-lbl, .ux .oa-nav .oa-nav__n { display: none; }
  .ux .oa-nav__i { justify-content: center; padding: 0; position: relative; }
  .ux .oa-nav__i .ux-i { width: 18px; height: 18px; }
  .ux .oa-nav__d { position: absolute; top: 5px; right: 8px; }
  .ux .oa-org { justify-content: center; padding: 4px 0 10px; }
}
@container ux (max-width: 540px) {
  .ux .oa-body { grid-template-columns: minmax(0, 1fr); }
  .ux .oa-body > .oa-nav { display: none; }
}

/* ===================================================== tenant admin · ta- == */

.ux .ta-quota { display: flex; flex-direction: column; gap: 8px; }
.ux .ta-quota__h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ux-muted); }
.ux .ta-quota__h b { color: var(--ux-ink); }
.ux .ta-quota .oa-kv { margin-top: 4px; }

.ux .ta-doms > li { display: grid; grid-template-columns: minmax(150px, 1fr) auto auto; align-items: center; gap: 10px 16px; padding: 11px 14px; border-top: 1px solid var(--ux-line); }
.ux .ta-doms > li:first-child { border-top: 0; }
.ux .ta-doms__n > span:first-child { font-family: var(--ux-mono); font-size: 12.5px; }
.ux .ta-doms__s { justify-self: end; }
.ux .ta-dns { display: flex; flex-wrap: wrap; gap: 6px; }
.ux .ta-dns__r { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: 4px; border: 1px solid var(--ux-line); font-size: 11.5px; color: var(--ux-muted); white-space: nowrap; }
.ux .ta-dns__r b { color: var(--ux-ink); font-weight: 600; font-size: 11px; letter-spacing: 0.02em; }
.ux .ta-dns__r .ux-i { width: 13px; height: 13px; }
.ux .ta-dns__r--ok .ux-i { color: var(--ux-ok); }
.ux .ta-dns__r--warn { background: var(--ux-warn-bg); border-color: transparent; color: var(--ux-warn); }
.ux .ta-dns__r--bad { background: var(--ux-bad-bg); border-color: transparent; color: var(--ux-bad); }
.ux .ta-fix { grid-column: 1 / -1; padding: 10px 12px; border-radius: 6px; background: var(--ux-bg); border: 1px solid var(--ux-line); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ux .ta-fix__h { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ux-muted); }
.ux .ta-fix__h b { color: var(--ux-teal); font-weight: 500; }
.ux .ta-fix__recs { display: flex; flex-direction: column; gap: 4px; }
.ux .ta-rec { display: grid; grid-template-columns: 52px minmax(0, 150px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px 8px; border-radius: 4px; background: var(--ux-surface); border: 1px solid var(--ux-line); font-size: 12px; }
.ux .ta-rec > b { font-size: 11px; font-weight: 600; color: var(--ux-muted); }
.ux .ta-rec .ux-mono { font-size: 11.5px; color: var(--ux-ink); }
.ux .ta-svc > li { align-items: center; padding: 7px 14px; font-size: 12.5px; }
.ux .ta-svc > li > .ux-i { margin-top: 0; color: var(--ux-muted); }
.ux .ta-svc > li.is-off .ux-rows__t > span:first-child { color: var(--ux-muted); }

@container ux (max-width: 900px) {
  .ux .ta-doms > li { grid-template-columns: minmax(0, 1fr) auto; }
  .ux .ta-dns { grid-column: 1 / -1; grid-row: 2; }
}
@container ux (max-width: 540px) {
  .ux .ta-rec { grid-template-columns: 46px minmax(0, 1fr); }
  .ux .ta-rec > span:last-child { grid-column: 1 / -1; }
  .ux .ta-doms__s { grid-column: 1 / -1; justify-self: start; }
}

/* ================================================= new tenant wizard · tw- == */

.ux .tw-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; padding: 4px 16px 14px; background: var(--ux-surface); border-bottom: 1px solid var(--ux-line); }
.ux .tw-steps > li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.ux .tw-steps > li::before { content: ""; position: absolute; top: 12px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 2px; background: var(--ux-line); }
.ux .tw-steps > li:first-child::before { display: none; }
.ux .tw-steps > li.is-done::before, .ux .tw-steps > li.is-on::before { background: var(--ux-ok); }
.ux .tw-steps__n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ux-line-2); background: var(--ux-surface); color: var(--ux-muted); font-size: 12px; font-weight: 600; }
.ux .tw-steps > li.is-done .tw-steps__n { background: var(--ux-ok); border-color: var(--ux-ok); color: #fff; }
.ux .tw-steps > li.is-on .tw-steps__n { background: var(--ux-navy); border-color: var(--ux-navy); color: #fff; box-shadow: 0 0 0 4px var(--ux-sel); }
.ux .tw-steps__l { font-size: 11.5px; line-height: 1.25; color: var(--ux-muted); }
.ux .tw-steps > li.is-done .tw-steps__l { color: var(--ux-text); }
.ux .tw-steps > li.is-on .tw-steps__l { color: var(--ux-ink); font-weight: 600; }
.ux .tw-mstep { display: none; }

.ux .tw-content { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; padding-top: 18px; }
.ux .tw-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ux .tw-h { font-size: 17px; font-weight: 600; color: var(--ux-ink); letter-spacing: -0.01em; line-height: 1.3; }
.ux .tw-intro p { margin-top: 5px; max-width: 70ch; color: var(--ux-muted); font-size: 13px; line-height: 1.5; }
.ux .tw-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ux .tw-opt { display: flex; flex-direction: column; gap: 9px; padding: 14px; border: 1px solid var(--ux-line-2); border-radius: 8px; background: var(--ux-surface); min-width: 0; }
.ux .tw-opt.is-on { border-color: var(--ux-navy); box-shadow: inset 0 0 0 1px var(--ux-navy); }
.ux .tw-opt__h { display: flex; align-items: center; gap: 9px; }
.ux .tw-opt__h .ux-chip { margin-left: auto; }
.ux .tw-opt__t { font-size: 14px; font-weight: 600; color: var(--ux-ink); }
.ux .tw-opt__f { display: flex; flex-direction: column; gap: 1px; font-size: 12.5px; }
.ux .tw-opt__f > span { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }
.ux .tw-opt__f b { color: var(--ux-ink); font-weight: 500; }
.ux .tw-opt__o { font-size: 12px; color: var(--ux-muted); line-height: 1.45; }
.ux .tw-caps { display: flex; flex-direction: column; border-top: 1px solid var(--ux-line); }
.ux .tw-caps > li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--ux-line); font-size: 12.5px; }
.ux .tw-caps > li > span:last-child { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; }
.ux .tw-opt__lic { display: flex; gap: 7px; font-size: 12px; line-height: 1.45; color: var(--ux-muted); }
.ux .tw-opt__lic .ux-i { margin-top: 1px; color: var(--ux-faint); }
.ux .tw-switch { display: flex; gap: 9px; padding: 10px 12px; border-radius: 6px; background: var(--ux-teal-soft); color: var(--ux-teal); font-size: 12.5px; line-height: 1.45; }
.ux .tw-switch .ux-i { margin-top: 2px; }
.ux .tw-switch > span { color: var(--ux-text); }
.ux .tw-switch b { color: var(--ux-ink); }
.ux .tw-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ux .tw-help { display: flex; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--ux-muted); padding: 0 4px; }
.ux .tw-help .ux-i { margin-top: 1px; flex: none; }
.ux .tw-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--ux-line); background: var(--ux-surface); }

@container ux (max-width: 1000px) { .ux .tw-content { grid-template-columns: minmax(0, 1fr); } .ux .tw-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
@container ux (max-width: 760px) {
  .ux .tw-steps__l { display: none; }
  .ux .tw-steps > li.is-on .tw-steps__l { display: block; position: absolute; top: 32px; white-space: nowrap; }
  .ux .tw-steps { padding-bottom: 30px; }
  .ux .tw-opts { grid-template-columns: minmax(0, 1fr); }
  .ux .tw-side { grid-template-columns: minmax(0, 1fr); }
}
@container ux (max-width: 540px) {
  .ux .tw-steps { display: none; }
  .ux .tw-mstep { display: flex; flex-direction: column; gap: 6px; padding: 2px 16px 12px; background: var(--ux-surface); border-bottom: 1px solid var(--ux-line); font-size: 12.5px; color: var(--ux-muted); }
  .ux .tw-mstep b { color: var(--ux-ink); }
  .ux .tw-content { padding-top: 14px; }
  .ux .tw-foot { padding: 10px 12px; }
}

/* ================================================== security policies · sp- == */

.ux .sp-mfa__enr { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--ux-line); }
.ux .sp-mfa__h { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ux-muted); }
.ux .sp-mfa__h b { color: var(--ux-ink); }
.ux .sp-mfa__m { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ux-muted); }
.ux .sp-mfa__m > span { display: inline-flex; align-items: center; gap: 6px; }
.ux .sp-k { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.ux .sp-k--a { background: var(--ux-teal); }
.ux .sp-k--b { background: var(--ux-navy); }
.ux .sp-pend > li, .ux .sp-alerts > li { align-items: center; font-size: 12.5px; }
.ux .sp-alerts > li > .ux-dot { margin-top: 0; }
.ux .sp-alerts > li.is-done .ux-rows__t > span:first-child { color: var(--ux-muted); font-weight: 400; }
.ux .sp-pol .sp-pol__n { font-weight: 500; }
.ux .sp-pol__s { display: none; }
.ux .ux-table.sp-pol td.sp-c-when { white-space: normal; min-width: 170px; font-size: 12px; line-height: 1.35; }
.ux .sp-roles > li > b { font-size: 13px; color: var(--ux-ink); }
.ux .sp-audit > li { padding: 8px 14px; font-size: 12.5px; }
.ux .sp-t { flex: none; width: 38px; font-size: 12px; color: var(--ux-muted); margin-top: 1px; }
.ux .sp-int { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--ux-line-2); border-radius: 7px; background: var(--ux-bg); }
.ux .sp-int__i { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 8px; background: var(--ux-sunken); color: var(--ux-muted); }
.ux .sp-int__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ux .sp-int__t > p:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.ux .sp-int__t b { color: var(--ux-ink); font-size: 13.5px; }
.ux .sp-int__t > p + p { font-size: 12px; color: var(--ux-muted); line-height: 1.45; }

@container ux (max-width: 1100px) { .ux .sp-c-who { display: none; } }
@container ux (max-width: 760px) {
  .ux .sp-c-when, .ux .sp-c-then { display: none; }
  .ux .sp-pol__s { display: block; white-space: normal; }
  .ux .ux-table.sp-pol td.sp-pol__n { white-space: normal; }
}
@container ux (max-width: 540px) {
  .ux .sp-int { flex-wrap: wrap; }
  .ux .sp-int__t { flex: 1 1 200px; }
  .ux .sp-int__more { margin-left: 50px; }
  .ux .sp-pend > li, .ux .sp-alerts > li { flex-wrap: wrap; }
  .ux .sp-pend > li > .ux-btn { margin-left: 34px; }
  .ux .sp-alerts > li > .ux-btn { margin-left: 18px; }
}
.ux .sp-pol .sp-pol__s { font-weight: 400; }
@container ux (max-width: 540px) { .ux .mg-content .ux-card__h { flex-wrap: wrap; } .ux .mg-content .ux-card__h > .ux-card__t { white-space: normal; } }

/* ============================================================ updates · up- == */

.ux .up-cap { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: -6px; font-size: 12.5px; color: var(--ux-muted); }
.ux .up-cap b { color: var(--ux-ink); font-size: 13px; }
.ux .up-rings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ux .up-ring { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px; border: 1px solid var(--ux-line); border-radius: 7px; background: var(--ux-surface); min-width: 0; }
.ux .up-ring.is-next { border-color: var(--ux-navy); box-shadow: inset 0 3px 0 var(--ux-navy); }
.ux .up-ring__h { display: flex; align-items: center; gap: 8px; }
.ux .up-ring__h b { flex: 1; color: var(--ux-ink); font-size: 13.5px; }
.ux .up-ring:not(.is-next) .ma-wn { background: var(--ux-sunken); color: var(--ux-muted); }
.ux .up-ring__who { font-size: 12px; color: var(--ux-muted); }
.ux .up-ring__d { display: flex; flex-direction: column; gap: 1px; padding-top: 6px; border-top: 1px solid var(--ux-line); font-size: 12px; color: var(--ux-muted); }
.ux .up-ring__d > span:first-child { color: var(--ux-ink); font-weight: 500; }
.ux .up-m { display: none; }
.ux .up-appr { display: inline-flex; align-items: center; gap: 8px; }
.ux .up-adv { display: flex; flex-direction: column; gap: 10px; }
.ux .up-adv__t { font-weight: 600; color: var(--ux-ink); line-height: 1.35; }
.ux .up-adv__n { font-size: 11.5px; color: var(--ux-faint); }
.ux .up-link { color: var(--ux-teal); font-weight: 500; }
.ux .ux-card__t.ux-mono { font-size: 12.5px; font-weight: 600; }

@container ux (max-width: 1100px) { .ux .up-c-next { display: none; } }
@container ux (max-width: 760px) {
  .ux .up-c-adv, .ux .up-c-appr { display: none; }
  .ux .up-m { display: inline; }
  .ux .up-rings { grid-template-columns: minmax(0, 1fr); }
  .ux .up-ring__who { white-space: normal; }
}

/* ==================================================== engine settings · en- == */

.ux .en-engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ux .en-eng { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border: 1px solid var(--ux-line-2); border-radius: 8px; background: var(--ux-surface); min-width: 0; }
.ux .en-eng.is-on { border-color: var(--ux-navy); box-shadow: inset 0 0 0 1px var(--ux-navy); }
.ux .en-eng.is-future { border-style: dashed; background: transparent; }
.ux .en-eng.is-future b { color: var(--ux-muted); }
.ux .en-eng.is-future .oa-radio { opacity: 0.55; }
.ux .en-eng__h { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ux .en-eng__h b { font-size: 13.5px; color: var(--ux-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ux .en-eng__s { padding-left: 25px; }
.ux .en-eng__d { padding-left: 25px; font-size: 12px; color: var(--ux-muted); }
.ux .en-conn { display: flex; flex-direction: column; gap: 6px; }
.ux .en-lbl { font-size: 12px; font-weight: 500; color: var(--ux-ink); }
.ux .en-url { color: var(--ux-ink); }
.ux .en-url .ux-i { color: var(--ux-ok); }
.ux .en-checks { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; font-size: 12.5px; }
.ux .en-checks > li { display: flex; align-items: center; gap: 7px; }
.ux .en-last { font-size: 11.5px; color: var(--ux-faint); margin-top: 2px; }
.ux .en-lic .ux-rows__t > span + span { line-height: 1.45; }
.ux .en-note { display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-top: 1px solid var(--ux-line); font-size: 12px; color: var(--ux-muted); background: var(--ux-bg); }
.ux .en-feat .en-feat__f { font-weight: 500; color: var(--ux-ink); }
.ux .en-v { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.ux .en-v--ok { color: var(--ux-ok); font-weight: 500; }
.ux .en-v--warn { color: var(--ux-warn); }
.ux .en-v--info { color: var(--ux-ink); }
.ux .en-v--info .ux-i { display: none; }
.ux .en-v--n { color: var(--ux-muted); }
.ux .en-v--n .ux-i { display: none; }
.ux .en-switch__p { padding: 10px 14px 4px; font-size: 12.5px; color: var(--ux-muted); }
.ux .en-steps { display: flex; flex-direction: column; padding: 4px 14px 10px; }
.ux .en-steps > li { position: relative; display: flex; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.ux .en-steps > li::before { content: ""; position: absolute; left: 10px; top: 27px; bottom: -5px; width: 1px; background: var(--ux-line-2); }
.ux .en-steps > li:last-child::before { display: none; }
.ux .en-steps__n { display: grid; place-items: center; width: 21px; height: 21px; flex: none; border-radius: 50%; border: 1.5px solid var(--ux-line-2); background: var(--ux-surface); font-size: 11px; font-weight: 600; color: var(--ux-muted); }
.ux .en-steps > li:last-child .en-steps__n { border-style: dashed; }

@container ux (max-width: 900px) { .ux .en-engines { grid-template-columns: minmax(0, 1fr); } .ux .en-eng { flex-direction: row; flex-wrap: wrap; align-items: center; } .ux .en-eng__h { flex: 1 1 auto; } .ux .en-eng__s { padding: 0; } .ux .en-eng__d { flex: 1 1 100%; } }
@container ux (max-width: 540px) {
  .ux .ux-table.en-feat td, .ux .ux-table.en-feat th { white-space: normal; padding-left: 10px; padding-right: 8px; vertical-align: top; }
  .ux .ux-table.en-feat td:first-child, .ux .ux-table.en-feat th:first-child { padding-left: 12px; }
  .ux .en-v { align-items: flex-start; }
  .ux .en-v .ux-i { margin-top: 1px; }
}
.ux .ux-table.en-feat td { white-space: normal; vertical-align: top; line-height: 1.35; }
.ux .ux-table.en-feat td.en-feat__f { white-space: nowrap; }
.ux .en-v { align-items: flex-start; }
.ux .en-v .ux-i { margin-top: 1px; }
@container ux (max-width: 540px) { .ux .ux-table.en-feat td.en-feat__f { white-space: normal; } }

/* =================================================== delegated access · da- == */

.ux .da-warn { display: flex; gap: 8px; padding: 9px 12px; border-radius: 6px; border: 1px dashed var(--ux-warn); background: var(--ux-warn-bg); color: var(--ux-warn); font-size: 12.5px; line-height: 1.45; }
.ux .da-warn .ux-i { margin-top: 2px; flex: none; }
.ux .da-warn > span { color: var(--ux-text); }
.ux .da-warn b { color: var(--ux-ink); }
.ux .da-legend { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 11.5px; }
.ux .da-legend .da-m { font-weight: 400; color: var(--ux-muted); }
.ux .da-m { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ux .da-m .ux-i { flex: none; }
.ux .da-m--y .ux-i { color: var(--ux-ok); }
.ux .da-m--a { color: var(--ux-warn); }
.ux .da-m--n .ux-i { color: var(--ux-faint); }
.ux .da-m__t { display: none; }
.ux .da-m--a .da-m__t { display: inline; }
.ux .da-legend .da-m--a { color: var(--ux-muted); }
.ux .da-legend .da-m--a .ux-i { color: var(--ux-warn); }
.ux .ux-table.da-mx th.da-c-p { white-space: normal; line-height: 1.25; text-align: center; vertical-align: bottom; width: 9.5%; }
.ux .ux-table.da-mx td.da-c-p { text-align: center; }
.ux .ux-table.da-mx th.da-c-scope { vertical-align: bottom; }
.ux .ux-table.da-mx thead th:first-child { vertical-align: bottom; }
.ux .da-mx .da-c-p .da-m { justify-content: center; }
.ux .da-mx .da-c-p .da-m--n .ux-i { opacity: 0.8; }
.ux .da-mx td.da-c-p:nth-child(3), .ux .da-mx th.da-c-p:nth-child(3) { border-left: 1px solid var(--ux-line); }
.ux .da-p .ux-cell__t > span:first-child { font-weight: 600; }
.ux .da-sc2, .ux .da-lbl { display: none; }
.ux .da-mx tr.da-cust td { background: var(--ux-bg); border-top: 1px solid var(--ux-line-2); }
.ux .da-rules > li { align-items: flex-start; }
.ux .da-rule__k { flex: none; width: 58px; margin-top: 1px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ux-faint); }
.ux .da-req > li { align-items: flex-start; font-size: 12.5px; flex-wrap: wrap; }
.ux .da-req > li > .ux-av { margin-top: 1px; }
.ux .da-req .ux-rows__t { flex: 1 1 220px; }
.ux .da-req__a { display: flex; gap: 6px; margin-left: auto; }

@container ux (max-width: 1100px) { .ux .da-c-scope { display: none; } .ux .da-sc2 { display: inline; } .ux .da-mx td.da-c-p:nth-child(3), .ux .da-mx th.da-c-p:nth-child(3) { border-left: 0; } }
@container ux (max-width: 820px) {
  .ux .da-mx thead { display: none; }
  .ux .da-mx, .ux .da-mx tbody { display: block; }
  .ux .da-mx tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 14px; padding: 10px 14px; border-top: 1px solid var(--ux-line); }
  .ux .da-mx tr:first-child { border-top: 0; }
  .ux .ux-table.da-mx td { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0; border: 0; white-space: normal; text-align: left; }
  .ux .ux-table.da-mx td.da-p { grid-column: 1 / -1; padding-bottom: 4px; }
  .ux .da-lbl { display: block; font-size: 12px; color: var(--ux-muted); min-width: 0; }
  .ux .da-m__t { display: inline; }
  .ux .da-m--n { color: var(--ux-faint); font-weight: 400; }
  .ux .da-m--y { color: var(--ux-ok); }
  .ux .da-legend { display: none; }
  .ux .da-mx tr.da-cust { background: var(--ux-bg); border-top: 1px solid var(--ux-line-2); }
  .ux .da-mx tr.da-cust td { background: transparent; border-top: 0; }
}
@container ux (max-width: 540px) { .ux .da-mx tr { grid-template-columns: minmax(0, 1fr); } .ux .da-req__a { margin-left: 34px; } }
.ux .da-m__pre { display: none; }
@container ux (max-width: 820px) { .ux .ux-table.da-mx td.da-c-scope { display: none; } .ux .da-m__pre { display: inline; } }

/* ======================================= migration center additions · ma- mp- == */

.ux .ux-table.ma-ready td.ma-w { white-space: normal; min-width: 200px; }
.ux .ma-ready .ma-w .ux-cell__t > span + span { font-weight: 400; line-height: 1.35; margin-top: 1px; }
.ux .ma-cx { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; }
.ux .ma-cx > i { display: block; width: 4px; height: 12px; border-radius: 1px; background: var(--ux-line-2); }
.ux .ma-cx > span { margin-left: 5px; }
.ux .ma-cx--ok > i:nth-child(1) { background: var(--ux-ok); }
.ux .ma-cx--warn > i:nth-child(-n+2) { background: #C8902A; }
.ux .ma-cx--bad > i { background: #B8443A; }
.ux .ma-cx--ok { color: var(--ux-ok); } .ux .ma-cx--warn { color: var(--ux-warn); } .ux .ma-cx--bad { color: var(--ux-bad); }
@container ux (max-width: 540px) { .ux .ux-table.ma-ready td.ma-w { min-width: 0; } .ux .ux-table.ma-ready td, .ux .ux-table.ma-ready th { padding-left: 8px; padding-right: 8px; } .ux .ux-table.ma-ready td:first-child, .ux .ux-table.ma-ready th:first-child { padding-left: 12px; } }
/* The admin navigation takes width from the Migration Center: four stats per row. */
@container ux (min-width: 641px) {
  .ux.oa .ma-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ux.oa .ma-stat:nth-child(5) { border-left: 0; }
  .ux.oa .ma-stat:nth-child(n+5) { border-top: 1px solid var(--ux-line); }
}
@container ux (max-width: 1250px) { .ux.oa .ma-c-vol { display: none; } }

.ux .mp-ready__b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.ux .mp-crit { display: flex; flex-direction: column; border-right: 1px solid var(--ux-line); }
.ux .mp-crit > li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--ux-line); font-size: 12.5px; }
.ux .mp-crit > li:first-child { border-top: 0; }
.ux .mp-crit > li.is-ok > .ux-i { color: var(--ux-ok); }
.ux .mp-crit > li.is-wait > .ux-i { color: var(--ux-warn); }
.ux .mp-appr { display: flex; flex-direction: column; min-width: 0; }
.ux .mp-appr__h { padding: 10px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ux-faint); }
.ux .mp-appr__l > li { align-items: center; font-size: 12.5px; padding: 8px 14px; }
.ux .mp-appr__l > li:first-child { border-top: 0; }
.ux .mp-appr__l > li.is-wait { background: var(--ux-warn-bg); }
.ux .mp-appr__a { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 10px 14px; border-top: 1px solid var(--ux-line); background: var(--ux-bg); }
.ux .mp-appr__n { font-size: 12px; color: var(--ux-muted); }
@container ux (max-width: 900px) {
  .ux .mp-ready__b { grid-template-columns: minmax(0, 1fr); }
  .ux .mp-crit { border-right: 0; border-bottom: 1px solid var(--ux-line); }
}
@container ux (max-width: 540px) {
  .ux .mp-crit > li, .ux .mp-appr__l > li { flex-wrap: wrap; }
  .ux .mp-crit > li > .ux-chip, .ux .mp-appr__l > li > .ux-chip { margin-left: 24px; }
  .ux .mp-appr__l > li > .ux-chip { margin-left: 34px; }
}
@container ux (max-width: 1250px) { .ux.oa .mp-waves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===================================================== MSP console additions == */

.ux .msp-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ux .msp-cap > li { flex-direction: column; align-items: stretch; gap: 6px; padding: 9px 14px; font-size: 12.5px; }
.ux .msp-cap__n { padding: 8px 14px 10px; border-top: 1px solid var(--ux-line); font-size: 11.5px; color: var(--ux-muted); line-height: 1.4; }
@container ux (max-width: 1250px) { .ux .msp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container ux (max-width: 640px) { .ux .msp-cards { grid-template-columns: minmax(0, 1fr); } }
