/* Maquetas de las tarjetas de Teams: solo de muestra, sin interacción. */
.mock {
  --m-bg: #f3f2f1;
  --m-surface: #ffffff;
  --m-ink: #242424;
  --m-muted: #616161;
  --m-line: #d1cfcd;
  --m-emph: #f0efee;
  --m-accent: #5b5fc7;
  --m-accent-ink: #ffffff;
  --m-accent-row: #e8ebfa;
  --m-user: #e8ebfa;
  --m-ok-bg: #e6f4ea;
  --m-ok-ink: #0f6b3a;
  --m-danger: #c4314b;
  --m-danger-ink: #ffffff;
  position: relative;
  margin-top: 20px;
  padding: 8px;
  background: var(--m-bg);
  color: var(--m-ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.45;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
:root[data-theme="dark"] .mock {
  --m-bg: #1b1b1f;
  --m-surface: #292930;
  --m-ink: #f1f1f4;
  --m-muted: #a8a8b3;
  --m-line: #45454f;
  --m-emph: #34343c;
  --m-accent: #8b8fe8;
  --m-accent-ink: #14142b;
  --m-accent-row: #34385f;
  --m-user: #34385f;
  --m-ok-bg: #1f3a2b;
  --m-ok-ink: #7ddba0;
  --m-danger: #f2948d;
  --m-danger-ink: #14142b;
}
.mock-tag {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 0 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mock-body {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-meta {
  color: var(--m-muted);
  font-size: 11px;
}
.m-user {
  align-self: flex-end;
  max-width: 80%;
  padding: 6px 12px;
  background: var(--m-user);
  border-radius: 8px;
}
.m-bubble {
  padding: 6px 12px;
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: 8px;
}
.m-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: 6px;
}
.m-title {
  font-weight: 700;
}
.m-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.m-table th,
.m-table td {
  padding: 4px 6px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
  border-bottom: 1px solid var(--m-line);
}
.m-table tr:last-child > * {
  border-bottom: 0;
}
.m-table th {
  background: var(--m-emph);
  font-weight: 700;
  text-align: center;
}
.m-table th + th,
.m-table td + td,
.m-table th + td {
  border-left: 1px solid var(--m-line);
}
.m-table tr.m-accent > * {
  background: var(--m-accent-row);
}
.m-table tr.m-accent > :first-child,
.m-table.m-kv td:first-child {
  font-weight: 600;
}
.m-table.m-kv td:first-child {
  width: 34%;
  background: var(--m-emph);
  vertical-align: middle;
}
.m-table.m-kv tr.m-accent > :first-child {
  background: var(--m-accent-row);
}
.m-table.m-nested {
  border: 0;
  border-radius: 0;
}
.m-table.m-nested th {
  background: none;
}
.m-table.m-nested td:first-child {
  width: auto;
  background: none;
  font-weight: 400;
  white-space: normal;
}
.m-table.m-kv td > .m-nested {
  margin: -4px -6px;
  width: calc(100% + 12px);
}
.m-table .m-wrap {
  white-space: normal;
}
.m-table .m-center {
  text-align: center;
}
.m-check {
  display: inline-block;
  position: relative;
  width: 14px;
  height: 14px;
  vertical-align: middle;
  border: 1px solid var(--m-muted);
  border-radius: 3px;
}
.m-check.on {
  background: var(--m-accent);
  border-color: var(--m-accent);
}
.m-check.on::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: 50%;
  top: 46%;
  width: 5px;
  height: 9px;
  border: solid var(--m-accent-ink);
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -55%) rotate(45deg);
}
.m-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.m-btn {
  padding: 4px 12px;
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: 6px;
  color: var(--m-ink);
  font-weight: 600;
}
.m-btn.primary {
  background: var(--m-accent);
  border-color: var(--m-accent);
  color: var(--m-accent-ink);
}
.m-btn.danger {
  background: var(--m-danger);
  border-color: var(--m-danger);
  color: var(--m-danger-ink);
}
.m-ack {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 10px;
  background: var(--m-ok-bg);
  border-radius: 8px;
  color: var(--m-ok-ink);
  font-weight: 600;
}
.m-ack small {
  margin-left: auto;
  color: var(--m-muted);
  font-weight: 400;
  white-space: nowrap;
}
.m-band {
  padding: 6px 10px;
  background: var(--m-emph);
  border-radius: 8px;
}

/* Componentes extra usados por el manual de uso. */
.m-btns.col {
  flex-direction: column;
  align-items: stretch;
}
.m-btns.col .m-btn,
.m-btn.block {
  text-align: center;
}
.m-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.m-grid2 .m-btn {
  text-align: center;
}
.m-hint {
  color: var(--m-muted);
}
.m-select,
.m-input {
  display: block;
  padding: 3px 8px;
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: 6px;
  min-width: 3.2em;
}
.m-select::after {
  content: "⌄";
  float: right;
  margin-left: 10px;
  color: var(--m-muted);
}
.m-radios {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.m-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.m-radio::before {
  content: "";
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 1px solid var(--m-muted);
  border-radius: 50%;
}
.m-radio.on::before {
  border-color: var(--m-accent);
  background: radial-gradient(circle, var(--m-accent) 0 3px, transparent 3.5px);
}
.m-radio.off {
  color: var(--m-muted);
}
.m-input {
  text-align: right;
  color: var(--m-muted);
}
.m-input.filled {
  color: var(--m-ink);
}
.m-input.m-spin {
  position: relative;
  padding-right: 22px;
  text-align: left;
}
.m-input.m-spin::before,
.m-input.m-spin::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 4px;
  height: 4px;
  border: solid var(--m-muted);
  border-width: 1.5px 0 0 1.5px;
  transform: rotate(45deg);
}
.m-input.m-spin::before {
  top: calc(50% - 5px);
}
.m-input.m-spin::after {
  top: calc(50% + 1px);
  border-width: 0 1.5px 1.5px 0;
}
.m-link {
  color: var(--m-accent);
}
.m-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-field span {
  font-weight: 600;
}
.m-field .m-input {
  text-align: left;
}
.m-note {
  padding: 6px 10px;
  background: var(--m-emph);
  border-radius: 8px;
  color: var(--m-ink);
}
/* Tablas anchas: letra menor para que no partan el texto ni se recorten. */
.mock.wide {
  font-size: 10px;
}
@media (max-width: 520px) {
  .mock.wide {
    font-size: 8.5px;
  }
}

/* Controles interactivos del simulador */
button.m-radio {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
input.m-input[type="number"] {
  width: 100%;
  min-width: 64px;
  box-sizing: border-box;
  text-align: left;
}
