.t101mz-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: var(--t101-soft); }
.t101mz-tabs .t101k-btn { width: 100%; }
.t101mz-pane[hidden] { display: none; }
.t101mz-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.t101mz-pagelabel { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 9em; text-align: center; }
.t101mz-page { position: relative; width: 100%; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--t101-border); border-radius: 6px; box-shadow: 0 6px 24px rgba(15, 23, 42, .08); overflow: hidden; }
.t101mz-page svg { display: block; width: 100%; height: 100%; }
.t101mz-pagenote { text-align: center; margin-top: 10px; }
.t101mz-stage { background: var(--t101-surface); }
.t101mz-stage:fullscreen { padding: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; }
.t101mz-playbar { display: flex; align-items: center; gap: 14px; margin: 2px 0 10px; font-variant-numeric: tabular-nums; width: 100%; }
.t101mz-time, .t101mz-steps { font-weight: 700; }
.t101mz-time::before { content: "⏱ "; font-weight: 400; }
.t101mz-tip { flex: 1; min-width: 0; color: var(--t101-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t101mz-board { display: block; margin: 0 auto; max-width: 100%; border: 1px solid var(--t101-border); border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.t101mz-board:focus-visible { outline: 3px solid var(--t101-accent); outline-offset: 2px; }
.t101mz-progress { margin: 10px 0; color: var(--t101-muted); min-height: 1.4em; }
.t101mz-playbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.t101mz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.t101mz-stat { border: 1px solid var(--t101-border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t101mz-stat strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.t101mz-stat span { font-size: .8rem; color: var(--t101-muted); line-height: 1.3; }
.t101mz-sec { border-bottom: 1px solid var(--t101-border); padding: 4px 0 12px; margin-bottom: 8px; }
.t101mz-sec[hidden] { display: none; }
.t101mz-sec > summary { display: flex; align-items: baseline; gap: 8px; cursor: pointer; padding: 8px 0; list-style: none; }
.t101mz-sec > summary::-webkit-details-marker { display: none; }
.t101mz-sec > summary::after { content: "▾"; margin-left: auto; color: var(--t101-muted); transition: transform .15s; }
.t101mz-sec:not([open]) > summary::after { transform: rotate(-90deg); }
.t101mz-sec-title { font-weight: 700; white-space: nowrap; }
.t101mz-sum { color: var(--t101-muted); font-size: .82rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t101mz-sub { margin: 10px 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t101-muted); }
.t101mz-choices { display: grid; gap: 6px; }
.t101mz-choices.is-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t101mz-choices.is-grids { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t101mz-choices.is-shapes { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.t101mz-choices.is-off { opacity: .45; }
.t101mz-choice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 8px 4px; border: 1px solid var(--t101-border); border-radius: 10px; background: var(--t101-surface); color: var(--t101-text); font: inherit; font-size: .78rem; line-height: 1.2; text-align: center; cursor: pointer; }
.t101mz-choices.is-levels .t101mz-choice { align-items: flex-start; text-align: left; padding: 8px 10px; }
.t101mz-choice small { color: var(--t101-muted); font-size: .72rem; }
.t101mz-choice:hover:not(:disabled) { border-color: var(--t101-accent); }
.t101mz-choice.is-active { border-color: var(--t101-accent); box-shadow: 0 0 0 1px var(--t101-accent) inset; color: var(--t101-accent); }
.t101mz-choice:disabled { cursor: not-allowed; }
.t101mz-choice:focus-visible { outline: 3px solid var(--t101-accent); outline-offset: 1px; }
.t101mz-choice-label { overflow-wrap: anywhere; }
.t101mz-icon { width: 24px; height: 24px; display: block; flex: none; }
.t101mz-icon.is-text { font: 900 20px/24px Arial, sans-serif; text-align: center; }
.t101mz-new { margin-top: 10px; }
.t101mz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t101mz-two .t101k-select, .t101mz-two .t101k-input { width: 100%; }
.t101mz-checks { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 8px; }
.t101mz-color { width: 64px; height: 36px; padding: 2px; border: 1px solid var(--t101-border); border-radius: 8px; background: var(--t101-surface); cursor: pointer; }
.t101mz-pic { margin: 8px 0; }
.t101mz-pic[hidden] { display: none; }
.t101mz-printframe { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }
.t101mz .t101k-field[hidden] { display: none; }
@media (max-width: 600px) {
  .t101mz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t101mz-choices.is-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t101mz-tip { display: none; }
}
/* Phones: the maze first, then the actions, then the (long) settings. */
@media (max-width: 900px) {
  .t101mz .t101k-side > .t101k-panel:first-child { order: 2; }
  .t101mz .t101k-actions-panel { order: 1; }
}
.t101mz-choices.is-grids .t101mz-choice { font-size: .72rem; }
.t101mz-choice-label { overflow-wrap: normal; word-break: normal; hyphens: auto; }
