/* motion-kit 2.0.0 (theme: plain). Generated. */
/* Theme: plain. A neutral palette with one dark-blue accent; no logo, no cover photo. */
:root {
  --font: "Segoe UI", Calibri, Arial, sans-serif;
  --muted: #64748B;
  --blue: #1F3A68;
  --ink: #111827;
  --g1: #F3F4F6;
  --g2: #D1D5DB;
  --g3: #6B7280;
  --g4: #4B5563;
  --tint: #E8EDF5;
  --b2: #B8C4DA;
  --b3: #7B8FB5;
}

/* Default palette (the "plain" theme) with zero specificity, so any theme.css overrides it. */
:where(:root) {
  --font: "Segoe UI", Calibri, Arial, sans-serif;
  --muted: #64748B;
  --blue: #1F3A68;
  --ink: #111827;
  --g1: #F3F4F6;
  --g2: #D1D5DB;
  --g3: #6B7280;
  --g4: #4B5563;
  --tint: #E8EDF5;
  --b2: #B8C4DA;
  --b3: #7B8FB5;
}

/* Element styles for timelines (deck slides and app scenes). Colours come from the theme. */
.mk-scene { position: relative; overflow: hidden; }
.mk-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; font-family: var(--font);
            color: var(--ink); -webkit-font-smoothing: antialiased; }

:is(#stage, .mk-stage) .e { position: absolute; left: 0; top: 0; white-space: nowrap; }

/* chrome */
:is(#stage, .mk-stage) .title { font-size: 54px; font-weight: 700; color: var(--blue); }

/* text */
:is(#stage, .mk-stage) .sub { font-size: 30px; color: var(--g3); }
:is(#stage, .mk-stage) .txt { font-size: 34px; color: var(--ink); }
:is(#stage, .mk-stage) .txt b { color: var(--blue); }
:is(#stage, .mk-stage) .small { font-size: 26px; color: var(--g3); }
:is(#stage, .mk-stage) .tag { font-size: 24px; color: var(--g3); }
:is(#stage, .mk-stage) .note { font-size: 26px; color: var(--g3); }
:is(#stage, .mk-stage) .cap { font-size: 34px; color: var(--blue); font-weight: 700; }
:is(#stage, .mk-stage) .ask { font-size: 38px; font-weight: 700; color: var(--ink); border-left: 8px solid var(--blue); padding: 10px 0 10px 24px; }
:is(#stage, .mk-stage) .ans { font-size: 34px; color: var(--ink); }
:is(#stage, .mk-stage) .dim { color: var(--g3); }
:is(#stage, .mk-stage) .blue { color: var(--blue); }
:is(#stage, .mk-stage) .mono { font-family: Consolas, "Cascadia Mono", monospace; }

/* numbers and maths */
:is(#stage, .mk-stage) .num { font-size: 46px; font-variant-numeric: tabular-nums; }
:is(#stage, .mk-stage) .work { font-size: 42px; font-variant-numeric: tabular-nums; }
:is(#stage, .mk-stage) .op { font-size: 40px; color: var(--g3); }
:is(#stage, .mk-stage) .lab { font-size: 40px; font-style: italic; font-weight: 700; color: var(--blue); font-family: Cambria, Georgia, serif; }
:is(#stage, .mk-stage) .ph { color: var(--g2); }
:is(#stage, .mk-stage) .act { color: var(--blue); font-weight: 700; }
:is(#stage, .mk-stage) .res { color: var(--blue); font-weight: 700; }
:is(#stage, .mk-stage) .counter { font-size: 30px; color: var(--g3); text-align: center; line-height: 1.1; }
:is(#stage, .mk-stage) .counter b { display: block; font-size: 72px; color: var(--blue); font-variant-numeric: tabular-nums; }

/* shapes */
:is(#stage, .mk-stage) .hl { background: var(--tint); border-radius: 10px; }
:is(#stage, .mk-stage) .br-l, :is(#stage, .mk-stage) .br-r { border: 3px solid var(--ink); width: 12px; }
:is(#stage, .mk-stage) .br-l { border-right: none; }
:is(#stage, .mk-stage) .br-r { border-left: none; }
:is(#stage, .mk-stage) .bar { height: 10px; background: var(--g2); border-radius: 5px; }
:is(#stage, .mk-stage) .cell { box-sizing: border-box; border: 1.5px solid var(--g2); background: #FFFFFF;
        display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
:is(#stage, .mk-stage) .cell.ink { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
:is(#stage, .mk-stage) .cell.g1 { background: var(--g2); }
:is(#stage, .mk-stage) .cell.g2 { background: var(--g3); border-color: var(--g3); color: #FFFFFF; }
:is(#stage, .mk-stage) .cell.zero { color: var(--g3); background: var(--g1); }
:is(#stage, .mk-stage) .cell.on { background: var(--tint); }
:is(#stage, .mk-stage) .cell.k1 { background: var(--tint); }
:is(#stage, .mk-stage) .cell.k2 { background: var(--b2); }
:is(#stage, .mk-stage) .cell.k3 { background: var(--b3); }
:is(#stage, .mk-stage) .cell.k4 { background: var(--blue); border-color: var(--blue); }
:is(#stage, .mk-stage) .win { box-sizing: border-box; border: 5px solid var(--blue); border-radius: 4px; }
:is(#stage, .mk-stage) .box { box-sizing: border-box; border: 3px solid var(--ink); border-radius: 10px; background: #FFFFFF;
       display: grid; place-content: center; font-size: 30px; text-align: center; white-space: normal; line-height: 1.15; }
:is(#stage, .mk-stage) .box > * { display: block; }
:is(#stage, .mk-stage) .box.blue { border-color: var(--blue); color: var(--blue); font-weight: 700; }
:is(#stage, .mk-stage) .neuron { box-sizing: border-box; border: 4px solid var(--blue); border-radius: 50%; background: #FFFFFF; }
:is(#stage, .mk-stage) .dot { box-sizing: border-box; border: 3px solid var(--ink); border-radius: 50%; background: #FFFFFF; }
:is(#stage, .mk-stage) .dot.blue { border-color: var(--blue); }
:is(#stage, .mk-stage) .arrow { font-size: 40px; color: var(--g3); }

/* hand-drawn parts (SVG text or lines, so the outline can be drawn) */
:is(#stage, .mk-stage) .sv { display: block; overflow: visible; }
:is(#stage, .mk-stage) .sv text { font-family: Cambria, Georgia, serif; fill: var(--ink); stroke: var(--ink); stroke-width: 0.9;
           stroke-opacity: 0; stroke-dasharray: 600; stroke-dashoffset: 0; }
:is(#stage, .mk-stage) .lines line, :is(#stage, .mk-stage) .lines path { stroke-dasharray: 1600; stroke-dashoffset: 0; }

/* ---------------------------------------------------------------- ui/ui.css
   Components and widgets. One accent (--blue), hairline borders, no gradients or pills.
   Use class "mk-app" on a container (or body) for the base typography. */
.mk-app { font-family: var(--font); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; }
.mk-app h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin: 0 0 8px; }
.mk-app h2 { font-size: 24px; margin: 0 0 6px; }
.mk-app .mk-muted { color: var(--muted); }
.mk-app a { color: var(--blue); }

/* buttons and inputs */
.mk-btn { font: inherit; font-size: 15px; font-weight: 500; padding: 8px 16px; border-radius: 6px; cursor: pointer;
          border: 1.5px solid var(--ink); background: #fff; color: var(--ink);
          transition: background-color .15s, color .15s, border-color .15s, transform .1s; }
.mk-btn:hover { border-color: var(--blue); }
.mk-btn:active { transform: translateY(1px); }
.mk-btn:focus-visible, .mk-input:focus-visible, .mk-tab:focus-visible, .mk-mcell:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.mk-btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.mk-btn-ghost { border-color: transparent; background: transparent; color: var(--blue); }
.mk-btn:disabled { opacity: .45; cursor: not-allowed; }
.mk-field { display: grid; gap: 4px; font-size: 15px; }
.mk-field label { font-weight: 600; }
.mk-input { font: inherit; padding: 7px 10px; border: 1.5px solid var(--g2); border-radius: 6px; background: #fff; color: var(--ink); }
.mk-slider { grid-template-columns: minmax(90px, auto) 1fr 64px; align-items: center; gap: 14px; }
.mk-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; background: var(--g2); cursor: pointer; }
.mk-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(17,24,39,.35); }
.mk-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); border: 3px solid #fff; }
.mk-slider output { font-family: Consolas, monospace; font-weight: 700; text-align: center; background: var(--tint); color: var(--blue); border-radius: 6px; padding: 3px 6px; }
.mk-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 15px; }
.mk-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mk-switch { width: 40px; height: 22px; border-radius: 999px; background: var(--g2); position: relative; transition: background .2s; }
.mk-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.mk-toggle input:checked + .mk-switch { background: var(--blue); }
.mk-toggle input:checked + .mk-switch::after { transform: translateX(18px); }
.mk-toggle input:focus-visible + .mk-switch { outline: 2px solid var(--blue); outline-offset: 2px; }

/* tabs, stepper */
.mk-tablist { display: flex; gap: 4px; border-bottom: 1.5px solid var(--g2); margin-bottom: 14px; }
.mk-tab { font: inherit; font-size: 15px; padding: 8px 14px; border: none; background: none; cursor: pointer; color: var(--muted);
          border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.mk-tab[aria-selected=true] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
.mk-stepper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mk-stepcount { margin-left: 6px; color: var(--muted); font-size: 14px; font-family: Consolas, monospace; }

/* layout */
.mk-stack { display: flex; flex-direction: column; }
.mk-stack > .mk-btn { align-self: flex-start; }
.mk-row { display: flex; }
.mk-grid, .mk-split { display: grid; }
.mk-panel { background: #F8FAFC; border: 1px solid var(--g1); border-radius: 6px; padding: 16px 18px; }
.mk-panel-accent { border-top: 3px solid var(--blue); }
.mk-panel-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--blue); margin: 0 0 12px; }
@media (max-width: 720px) { .mk-split { grid-template-columns: 1fr !important; } }

/* overlays */
.mk-modal { position: fixed; inset: 0; background: rgba(17,24,39,.35); display: grid; place-items: center; z-index: 100; }
.mk-modal[hidden] { display: none; }
.mk-dialog { background: #fff; border-radius: 10px; min-width: min(420px, 92vw); max-width: 92vw; box-shadow: 0 12px 40px rgba(17,24,39,.25); }
.mk-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--g1); }
.mk-dialog-head h3 { margin: 0; font-size: 18px; }
.mk-dialog-body { padding: 16px 18px; }
.mk-close { font-size: 24px; line-height: 1; border: none; background: none; cursor: pointer; color: var(--muted); }
.mk-toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 200; }
.mk-toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 6px 20px rgba(17,24,39,.25); }

/* data display */
.mk-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.mk-table th, .mk-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--g1); }
.mk-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.mk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--g1); border-radius: 6px; background: #fff; }
.mk-stat { padding: 12px 16px; border-right: 1px solid var(--g1); display: grid; }
.mk-stat:last-child { border-right: none; }
.mk-stat-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); }
.mk-stat-value { font-family: Consolas, monospace; font-size: 22px; font-weight: 700; display: inline-block; }
.mk-stat-sub { font-size: 13px; color: var(--muted); }
.mk-code { margin: 0; }
.mk-code figcaption { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.mk-code pre { margin: 0; padding: 12px 14px; background: var(--g1); border-radius: 6px; overflow-x: auto; font-size: 14px; }

/* widgets */
.mk-token { font-family: Consolas, monospace; font-weight: 700; display: inline-block; }
.mk-matrix-wrap { display: inline-grid; justify-items: center; gap: 4px; }
.mk-matrix-label { font-family: Cambria, Georgia, serif; font-style: italic; font-weight: 700; color: var(--blue); font-size: 22px; }
.mk-matrix { display: grid; gap: 4px; padding: 4px 10px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); border-radius: 4px; }
.mk-mcell { box-sizing: border-box; display: grid; place-items: center; text-align: center; font: 600 17px Consolas, monospace;
            border: 1.5px solid transparent; border-radius: 6px; background: #fff; color: var(--ink); width: 100%;
            transition: background-color .2s, border-color .2s, color .2s; }
input.mk-mcell { border-color: var(--g2); padding: 0 2px; -moz-appearance: textfield; appearance: textfield; }
input.mk-mcell::-webkit-inner-spin-button, input.mk-mcell::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mk-mcell.mk-hot { background: var(--tint); border-color: var(--blue); color: var(--blue); }
.mk-cellgrid { position: relative; display: inline-block; }
.mk-cells { display: grid; }
.mk-gcell { box-sizing: border-box; border: 1px solid var(--g1); display: grid; place-items: center; font-family: Consolas, monospace; cursor: default; }
.mk-window { position: absolute; box-sizing: border-box; border: 3px solid var(--blue); border-radius: 3px; pointer-events: none;
             transition: left .3s cubic-bezier(.4,0,.2,1), top .3s cubic-bezier(.4,0,.2,1), width .3s, height .3s, opacity .2s; }
.mk-eq { display: inline-block; vertical-align: middle; }
.mk-eq .sv text, .mk-eq .sv { font-family: Cambria, Georgia, serif; }
.mk-eq .sv text { fill: var(--ink); stroke: var(--ink); stroke-width: .9; stroke-opacity: 0; stroke-dasharray: 600; }
.mk-network .mk-wire { stroke: var(--g2); stroke-width: 1.5; stroke-dasharray: 1600; }
.mk-network .mk-node { fill: #fff; stroke: var(--ink); stroke-width: 2.5; transition: fill .2s, stroke .2s; }
.mk-network .mk-node-hot { fill: var(--tint); stroke: var(--blue); }
.mk-network .mk-netlabel { font: 12px var(--font); fill: var(--muted); }
.mk-chart .mk-axis { stroke: var(--g2); stroke-width: 1.5; }
.mk-chart .mk-line { fill: none; stroke: var(--blue); stroke-width: 2.5; }
.mk-chart .mk-pt { fill: var(--blue); }
.mk-chart .mk-bar { fill: var(--blue); }
.mk-pipeline { position: relative; display: flex; align-items: center; gap: 12px; padding-top: 44px; flex-wrap: wrap; }
.mk-stage-box { border: 2px solid var(--ink); border-radius: 8px; padding: 10px 14px; background: #fff; font-weight: 600; transition: border-color .2s, color .2s; }
.mk-stage-hot { border-color: var(--blue); color: var(--blue); }
.mk-arrow { color: var(--muted); font-size: 20px; }
.mk-pipe-token { position: absolute; top: 0; transform: translateX(-50%); font: 700 20px Consolas, monospace; color: var(--blue);
                 transition: left .5s cubic-bezier(.4,0,.2,1), opacity .2s; }
