/* Import once. Add .mg-app to the root of the surface being migrated. */
@font-face {
  font-family: "Managetic Manrope";
  src: url("./reference/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
.mg-app {
  --mg-canvas: #f6f7fc;
  --mg-surface: #ffffff;
  --mg-ink: #202126;
  --mg-muted: #74798b;
  --mg-line: #ececef;
  --mg-accent: #3478f6;
  --mg-action: #282a35;
  --mg-on-action: #ffffff;
  --mg-bubble: #4458bb;
  --mg-pause: #fff6e7;
  --mg-pause-ink: #493317;
  --mg-space: 8px;
  --mg-card-radius: 24px;
  --mg-button-radius: 14px;
  --mg-ease: cubic-bezier(.22,1,.36,1);
  font-family: "Managetic Manrope", system-ui, sans-serif;
  color: var(--mg-ink);
  background-color: var(--mg-canvas);
}
.mg-app[data-theme="dark"] {
  color-scheme: dark;
  --mg-canvas: #161719;
  --mg-surface: #242528;
  --mg-ink: #f4f4f6;
  --mg-muted: #97999f;
  --mg-line: #35363b;
  --mg-action: #eeedf6;
  --mg-on-action: #252430;
  --mg-pause: #30291f;
  --mg-pause-ink: #f3e3cb;
}
.mg-app[data-accent="petrol"] { --mg-accent: #238781; }
.mg-app .mg-brand {display:inline-flex;align-items:center;gap:7px;font-size:20px;font-weight:750;letter-spacing:-.7px}
.mg-app .mg-brand svg {width:25px;height:25px;fill:currentColor}
.mg-app .mg-card {padding:22px;border-radius:var(--mg-card-radius);border:1px solid var(--mg-line);background:var(--mg-surface)}
.mg-app .mg-label {display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}
.mg-app .mg-label::before {content:"";width:8px;height:8px;border-radius:50%;background:#7776b8}
.mg-app .mg-time {margin:18px 0 6px;font-weight:650;font-size:clamp(30px,6vw,43px);line-height:1.15;letter-spacing:-.055em;font-variant-numeric:tabular-nums}
.mg-app .mg-time span {color:var(--mg-muted);font-size:.57em;vertical-align:middle}
.mg-app .mg-meta {display:block;color:var(--mg-muted);font-size:13px}
.mg-app .mg-action {line-height:1.2;font-family:inherit;font-size:16px;font-weight:650;min-height:52px;border:0;border-radius:var(--mg-button-radius);background:var(--mg-action);color:var(--mg-on-action);padding:0 18px;cursor:pointer;transition:transform .2s var(--mg-ease)}
.mg-app .mg-card .mg-action {width:100%;margin-top:22px}
.mg-app .mg-action:active {transform:scale(.97)}
.mg-app :is(button,a,input):focus-visible {outline:3px solid var(--mg-accent);outline-offset:3px}
.mg-app .mg-pause {background:var(--mg-pause);color:var(--mg-pause-ink)}
.mg-app .mg-message {display:flex;align-items:flex-end;gap:7px;margin:12px 0}
.mg-app .mg-face {width:32px;height:32px;object-fit:cover;border-radius:50%}
.mg-app .mg-by {display:block;font-size:12px;font-weight:700;margin:0 5px 4px}
.mg-app .mg-bubble {border:1px solid var(--mg-line);background:var(--mg-surface);padding:10px 13px;border-radius:17px 17px 17px 5px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.mg-app .mg-message[data-own] {flex-direction:row-reverse}
.mg-app .mg-message[data-own] .mg-bubble {color:white;background:var(--mg-bubble);border-color:transparent;border-radius:17px 17px 5px 17px}
.mg-app .mg-story {position:relative;isolation:isolate;overflow:hidden;border-radius:22px;background:#255261;color:white}
.mg-app .mg-story img {display:block;width:100%;height:245px;object-fit:cover}
.mg-app .mg-story header {position:absolute;inset:auto 0 0;padding:48px 20px 20px;background:linear-gradient(transparent,#0c1b19ee)}
.mg-app .mg-story small {font-size:10px;letter-spacing:.09em;font-weight:750;color:#c7efce}
.mg-app .mg-story h3 {font-size:26px;letter-spacing:-1px;margin:5px 0}
@media(prefers-reduced-motion:reduce){.mg-app .mg-action{transition:none}.mg-app .mg-action:active{transform:none}}
