.hcl .mn { --row: 62px; position: relative; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface, var(--bg)); overflow: hidden; box-shadow: 0 40px 90px -55px rgb(0 0 0 / .45); }
.hcl .mn-k { display: block; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

.hcl .mn-head { display: flex; align-items: center; gap: 16px; height: 48px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line-2); font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.hcl .mn-live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.hcl .mn-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hcl .mn.is-running .mn-live i { animation: mn-pulse 1.4s ease-in-out infinite; }
.hcl .mn.done .mn-live i { background: var(--ink-3); }
.hcl .mn-title { display: inline-flex; gap: 10px; margin-right: auto; min-width: 0; white-space: nowrap; overflow: hidden; }
.hcl .mn-title b { font-weight: 500; color: var(--ink-2); }
.hcl .mn-title span::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.hcl .mn-clock { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hcl .mn-replay { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--ink-2); transition: color .15s, border-color .15s; }
.hcl .mn-replay:hover { color: var(--ink); border-color: var(--ink-3); }
.hcl .mn-replay svg { width: 14px; height: 14px; }

.hcl .mn-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); }
.hcl .mn-rail { display: flex; flex-direction: column; padding: 10px 0; border-right: 1px solid var(--line-2); background: var(--bg-2); }
.hcl .mn-stage { position: relative; display: grid; grid-template-columns: 26px 1fr; align-items: center; height: 44px; padding: 0 14px 0 18px; border: 0; background: none; text-align: left; color: var(--ink-3); transition: color .2s; }
.hcl .mn-stage:hover { color: var(--ink); }
.hcl .mn-n { font: 500 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.hcl .mn-l { font: 500 13.5px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcl .mn-stage i { position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); transform: scaleY(0); transform-origin: top; }
.hcl .mn-stage.past { color: var(--ink-2); }
.hcl .mn-stage[aria-selected="true"] { color: var(--ink); }
.hcl .mn-stage[aria-selected="true"] .mn-n { color: var(--accent); }
.hcl .mn-stage[aria-selected="true"] i { transform: scaleY(1); background: var(--accent); }
.hcl .mn-stage.run i { animation: mn-fill var(--dur, 8s) linear both; }

.hcl .mn-sheet { display: flex; flex-direction: column; min-width: 0; }
.hcl .mn-ask { padding: 22px 24px 20px; border-bottom: 1px solid var(--line-2); }
.hcl .mn-ask p { margin: 10px 0 0; min-height: 2.36em; font: 600 21px/1.18 var(--f-display); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.hcl .mn-ask p::before { content: "“"; margin-left: -.42em; color: var(--accent); }
.hcl .mn-ask p::after { content: "”"; color: var(--ink-3); }
.hcl .mn-ask .w { display: inline-block; opacity: 0; transform: translateY(.3em); animation: mn-word .42s cubic-bezier(.2, .7, .2, 1) forwards; }

.hcl .mn-ledger { list-style: none; margin: 0; padding: 0; }
.hcl .mn-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 48px; align-items: center; gap: 0; min-height: var(--row); padding-block: 10px; padding: 0 18px 0 24px; border-bottom: 1px solid var(--line); position: relative; }
.hcl .mn-row:last-child { border-bottom: 0; }
.hcl .mn-row.is-blank { min-height: 22px; padding: 0; border-bottom-style: dashed; }
.hcl .mn-role { justify-self: start; padding: 4px 7px; border: 1px solid var(--line-2); border-radius: 5px; font: 600 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: color .2s, border-color .2s, background .2s; }
.hcl .mn-say { display: grid; gap: 4px; min-width: 0; }
.hcl .mn-say small { font: 500 11.5px/1 var(--f-body); color: var(--ink-3); }
.hcl .mn-say span { font: 450 14.5px/1.35 var(--f-body); color: var(--ink); text-wrap: pretty; }
.hcl .mn-row time { justify-self: end; font: 500 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }

.hcl .mn-row.is-wait .mn-role { color: var(--ink-3); border-style: dashed; }
.hcl .mn-row.is-wait .mn-say span { color: transparent; }
.hcl .mn-row.is-wait .mn-say span::before { content: ""; display: block; width: 46%; height: 8px; margin-top: 3px; border-radius: 4px; background: var(--fill, var(--line)); }
.hcl .mn-row.is-on .mn-role { color: #fff; background: var(--accent); border-color: var(--accent); }
.hcl .mn-row.is-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: -1px; width: 2px; background: var(--accent); }
.hcl .mn-row.is-on .mn-say span::after { content: ""; display: inline-block; width: 7px; height: 1.05em; margin-left: 2px; vertical-align: -.16em; background: var(--accent); animation: mn-caret .9s steps(1) infinite; }
.hcl .mn-row.is-done time { animation: mn-in .3s ease-out both; }

.hcl .mn-decided { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 10px 18px 10px 24px; margin-top: auto; border-top: 1px solid var(--line-2); background: var(--bg-2); }
.hcl .mn-decided .mn-k { flex: none; width: 52px; }
.hcl .mn-stamps { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hcl .mn-stamp { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border: 1px solid var(--ink-2); border-radius: 6px; font: 500 11.5px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.hcl .mn-stamp b { font-weight: 600; color: var(--ink); }
.hcl .mn-stamp.is-ok { border-color: var(--accent); color: var(--accent); }
.hcl .mn-stamp.is-ok b { color: var(--accent); }
.hcl .mn-stamp.is-ok::before { content: "✓"; }
.hcl .mn-stamp.is-new { animation: mn-stamp .38s cubic-bezier(.3, 1.5, .5, 1) both; }
.hcl .mn-stamp.is-new:nth-child(2) { animation-delay: .12s; }
.hcl .mn-stamp.is-new:nth-child(3) { animation-delay: .24s; }
.hcl .mn-decided:not(:has(.mn-stamp))::after { content: "Waiting on the council"; font: 500 12px/1 var(--f-mono); color: var(--ink-3); }

.hcl .mn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes mn-pulse { 50% { opacity: .25; } }
@keyframes mn-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mn-word { to { opacity: 1; transform: none; } }
@keyframes mn-caret { 50% { opacity: 0; } }
@keyframes mn-in { from { opacity: 0; } }
@keyframes mn-stamp { from { opacity: 0; transform: scale(1.35) rotate(-4deg); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .hcl .mn { --row: 68px; }
  .hcl .mn-title span { display: none; }
  .hcl .mn-body { grid-template-columns: minmax(0, 1fr); }
  .hcl .mn-rail { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding: 0 6px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .hcl .mn-rail::-webkit-scrollbar { display: none; }
  .hcl .mn-stage { flex: none; grid-template-columns: auto auto; gap: 6px; height: 42px; padding: 0 10px; }
  .hcl .mn-stage i { top: auto; bottom: 0; left: 8px; right: 8px; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
  .hcl .mn-stage[aria-selected="true"] i { transform: scaleX(1); }
  .hcl .mn-stage.run i { animation-name: mn-fill-x; }
  .hcl .mn-ask { padding: 18px 16px 16px; }
  .hcl .mn-ask p { font-size: 18px; }
  .hcl .mn-row { grid-template-columns: 62px minmax(0, 1fr); padding: 0 14px 0 16px; }
  .hcl .mn-row time { display: none; }
  .hcl .mn-say span { font-size: 14px; }
  .hcl .mn-decided { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; min-height: 96px; padding: 14px 16px; }
}
@keyframes mn-fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .hcl .mn *, .hcl .mn *::before, .hcl .mn *::after { animation: none !important; }
  .hcl .mn-ask .w { opacity: 1; transform: none; }
}
