.mk-plu-card {
  overflow: hidden;
  isolation: isolate;
  pointer-events: auto;
  position: relative;
  z-index: 20;
  border: 1px solid #d9e0f2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(22 35 86 / 7%);
}

.mk-plu-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid #eef1f8;
  background: linear-gradient(135deg, #f7f7ff 0%, #f2fbfc 100%);
}

.mk-plu-header__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #4f46e5, #1597a8);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  box-shadow: 0 8px 16px rgb(79 70 229 / 20%);
}

.mk-plu-header__copy {
  min-width: 0;
  flex: 1;
}

.mk-plu-eyebrow {
  margin-bottom: 3px;
  color: #4f46e5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.mk-plu-header h3 {
  margin: 0;
  color: #1e2342;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.mk-plu-header p {
  margin: 4px 0 0;
  color: #69708b;
  font-size: 12px;
  line-height: 1.45;
}

.mk-plu-zone {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.mk-plu-zone span {
  border-radius: 999px;
  background: #292f63;
  padding: 5px 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.mk-plu-zone strong {
  color: #69708b;
  font-size: 10px;
}

.mk-plu-origin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 18px 0;
  border: 1px solid #cbe7dc;
  border-radius: 12px;
  background: #f1fbf7;
  padding: 10px 12px;
}

.mk-plu-origin--missing-backend {
  border-color: #f2d79b;
  background: #fff9ea;
}

.mk-plu-origin__dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #1aa678;
  box-shadow: 0 0 0 4px rgb(26 166 120 / 12%);
}

.mk-plu-origin--missing-backend .mk-plu-origin__dot {
  background: #d29314;
  box-shadow: 0 0 0 4px rgb(210 147 20 / 12%);
}

.mk-plu-origin div {
  min-width: 0;
  flex: 1;
}

.mk-plu-origin strong,
.mk-plu-origin small {
  display: block;
}

.mk-plu-origin strong {
  color: #244e43;
  font-size: 11px;
}

.mk-plu-origin small {
  margin-top: 2px;
  color: #64776f;
  font-size: 9px;
}

.mk-plu-origin a {
  color: #3f3ca6;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk-plu-location {
  margin: 14px 18px 0;
  border: 1px solid #dde4f2;
  border-radius: 14px;
  background: #f8faff;
  overflow: hidden;
}

.mk-plu-location > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5eaf4;
  background: #eef3ff;
}

.mk-plu-location > header strong {
  color: #28345f;
  font-size: 11px;
}

.mk-plu-location > header span {
  color: #65708e;
  font-size: 9px;
}

.mk-plu-location > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mk-plu-location article {
  min-width: 0;
  padding: 10px 12px;
  border-right: 1px solid #e5eaf4;
  border-bottom: 1px solid #e5eaf4;
}

.mk-plu-location article:nth-child(4n) { border-right: 0; }
.mk-plu-location article:nth-last-child(-n + 4) { border-bottom: 0; }

.mk-plu-location small,
.mk-plu-location b {
  display: block;
}

.mk-plu-location small {
  margin-bottom: 4px;
  color: #727c97;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mk-plu-location b {
  overflow-wrap: anywhere;
  color: #252d4c;
  font-size: 10px;
  line-height: 1.35;
}

.mk-plu-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
  padding: 14px 18px;
  position: relative;
  z-index: 2;
}

.mk-plu-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid #e4e8f2;
  border-radius: 11px;
  background: #fff;
  padding: 9px 10px;
  text-align: left;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
  pointer-events: auto;
}

.mk-plu-stat:hover,
.mk-plu-stat.is-active {
  transform: translateY(-1px);
  border-color: currentColor;
  box-shadow: 0 5px 12px rgb(37 44 92 / 9%);
}

.mk-plu-stat strong {
  font-size: 18px;
  line-height: 1;
}

.mk-plu-stat span {
  overflow: hidden;
  color: #667089;
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mk-plu-stat--valid { color: #12805c; }
.mk-plu-stat--error { color: #d44343; }
.mk-plu-stat--allowed { color: #12805c; }
.mk-plu-stat--required { color: #315dcc; }
.mk-plu-stat--prohibited { color: #d44343; }
.mk-plu-stat--conditional { color: #c07b0a; }
.mk-plu-stat--unknown { color: #6f6b86; }

.mk-plu-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 14px;
  position: relative;
  z-index: 2;
}

.mk-plu-all {
  border: 1px solid #dce1ed;
  border-radius: 999px;
  background: #fff;
  padding: 7px 11px;
  color: #4f5871;
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  pointer-events: auto;
}

.mk-plu-origin a,
.mk-plu-evidence summary,
.mk-plu-evidence a {
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}

.mk-plu-all.is-active {
  border-color: #38347d;
  background: #38347d;
  color: #fff;
}

.mk-plu-all strong {
  margin-left: 5px;
}

.mk-plu-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
  border: 1px solid #dce1ed;
  border-radius: 10px;
  background: #fafbfe;
  padding: 0 10px;
}

.mk-plu-toolbar label span {
  color: #69708b;
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.mk-plu-toolbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0;
  color: #252b4b;
  font-size: 11px;
}

.mk-plu-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: none;
  overflow: visible;
  overscroll-behavior: auto;
  padding: 0 18px 18px;
  scrollbar-color: #c7cce0 transparent;
  scrollbar-width: thin;
}

.mk-plu-rule {
  align-self: start;
  overflow: hidden;
  border: 1px solid #e2e6ef;
  border-left-width: 3px;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.mk-plu-rule--allowed { border-left-color: #1a9b70; }
.mk-plu-rule--valid { border-left-color: #1a9b70; background: #fbfffd; }
.mk-plu-rule--error { border-left-color: #e05555; background: #fffafa; }
.mk-plu-rule--required { border-left-color: #416bd6; }
.mk-plu-rule--prohibited { border-left-color: #e05555; }
.mk-plu-rule--conditional { border-left-color: #d99a28; }
.mk-plu-rule--unknown { border-left-color: #858198; }

.mk-plu-rule__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mk-plu-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.mk-plu-status--valid { background: #e9f8f2; color: #147553; }
.mk-plu-status--error { background: #fff0f0; color: #c53c3c; }
.mk-plu-status--allowed { background: #e9f8f2; color: #147553; }
.mk-plu-status--required { background: #edf2ff; color: #3159be; }
.mk-plu-status--prohibited { background: #fff0f0; color: #c53c3c; }
.mk-plu-status--conditional { background: #fff7e5; color: #a86808; }
.mk-plu-status--unknown { background: #f0eff4; color: #666177; }

.mk-plu-category {
  overflow: hidden;
  color: #858ba0;
  font-size: 8px;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.mk-plu-rule__title {
  margin: 9px 0 5px;
  color: #202643;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.mk-plu-rule__value {
  margin: 0;
  color: #4e5670;
  font-size: 10px;
  line-height: 1.45;
}

.mk-plu-impact {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  border-radius: 8px;
  background: #f7f8fb;
  padding: 8px 9px;
}

.mk-plu-impact strong {
  color: #414a67;
  font-size: 8px;
  text-transform: uppercase;
}

.mk-plu-impact span {
  color: #626a80;
  font-size: 9px;
  line-height: 1.4;
}

.mk-plu-evidence {
  margin-top: 8px;
  color: #5b6280;
  font-size: 9px;
}

.mk-plu-evidence summary {
  cursor: pointer;
  color: #4c49a8;
  font-weight: 750;
}

.mk-plu-evidence > div {
  margin-top: 8px;
  border-top: 1px dashed #d9deea;
  padding-top: 8px;
}

.mk-plu-evidence strong,
.mk-plu-evidence p,
.mk-plu-evidence a,
.mk-plu-source-missing {
  display: block;
}

.mk-plu-evidence p {
  margin: 4px 0 6px;
  line-height: 1.4;
}

.mk-plu-evidence a {
  color: #4643a0;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk-plu-source-missing {
  color: #9a6b24;
}

.mk-plu-empty {
  grid-column: 1 / -1;
  border: 1px dashed #ced4e2;
  border-radius: 12px;
  padding: 28px;
  color: #777e94;
  font-size: 11px;
  text-align: center;
}

.mk-plu-guardrail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid #f0e2b8;
  background: #fffaf0;
  padding: 12px 18px;
}

.mk-plu-guardrail strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #b57916;
  padding: 3px 7px;
  color: #fff;
  font-size: 8px;
  text-transform: uppercase;
}

.mk-plu-guardrail span {
  color: #796840;
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .mk-plu-header { flex-wrap: wrap; }
  .mk-plu-zone { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .mk-plu-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-plu-stat:last-child { grid-column: 1 / -1; }
  .mk-plu-toolbar { align-items: stretch; flex-direction: column; }
  .mk-plu-toolbar label { min-width: 0; }
  .mk-plu-rule-grid { grid-template-columns: 1fr; max-height: none; }
  .mk-plu-origin { align-items: flex-start; flex-wrap: wrap; }
  .mk-plu-origin a { margin-left: 19px; }
  .mk-plu-guardrail { flex-direction: column; }
  .mk-plu-location > header { align-items: flex-start; flex-direction: column; }
  .mk-plu-location > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-plu-location article:nth-child(4n) { border-right: 1px solid #e5eaf4; }
  .mk-plu-location article:nth-child(2n) { border-right: 0; }
  .mk-plu-location article:nth-last-child(-n + 4) { border-bottom: 1px solid #e5eaf4; }
  .mk-plu-location article:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media print {
  .mk-plu-rule-grid { max-height: none; overflow: visible; }
  .mk-plu-toolbar { display: none; }
  .mk-plu-rule { break-inside: avoid; }
}
