/* Variant C motion explainers. Drawn on a fixed 1200×750 canvas, scaled to fit. */
.mg { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px; background: #efe8f6; isolation: isolate; }
.hero-demo .mg { border-radius: 22px; }
.mg-canvas { position: absolute; left: 0; top: 0; width: 1200px; height: 750px; transform: scale(var(--mg-s, 1)); transform-origin: 0 0; font: 17px/1.45 Figtree, system-ui, sans-serif; color: #2b2432; text-align: left; letter-spacing: 0; }
.mg-cam { position: absolute; left: 0; top: 0; width: 1200px; height: 750px; transform-origin: 0 0; transition: transform 1.2s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.mg-canvas * { box-sizing: border-box; }
.mg-canvas h4, .mg-canvas h5, .mg-canvas p, .mg-canvas blockquote { margin: 0; }
.mg-canvas img { display: block; }
.mg.is-instant *, .mg.is-instant *::before, .mg.is-instant *::after { transition: none !important; animation: none !important; }
.mg.is-paused *, .mg.is-paused *::before, .mg.is-paused *::after { animation-play-state: paused !important; }

/* Desktop */
.mg-desktop { position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 15% 10%, #d9c4f3 0%, transparent 60%),
  radial-gradient(50% 60% at 90% 20%, #f7cdd7 0%, transparent 60%),
  radial-gradient(60% 60% at 20% 100%, #c3ebe4 0%, transparent 60%),
  radial-gradient(50% 50% at 90% 95%, #f8e8cc 0%, transparent 60%), #eee6f5; }
.mg-menubar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 20px; padding: 0 28px 0 22px; background: rgb(255 255 255 / .45); backdrop-filter: blur(20px); font-size: 14px; color: #2b2432; }
.mg-menubar b { font-weight: 700; }
.mg-mb-logo { width: 14px; height: 14px; border-radius: 50%; background: #2b2432; }
.mg-mb-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.mg-mb-right img { width: 20px; height: 20px; }
.mg-clock { display: inline-block; min-width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.mg-clock.is-flip { animation: mg-flip .7s ease; }
@keyframes mg-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); color: #7c4db8; } 100% { transform: rotateX(0); color: #7c4db8; } }

/* Windows */
.mg-win { position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(40 30 60 / .12), 0 30px 60px -24px rgb(60 40 90 / .45), 0 8px 18px -10px rgb(60 40 90 / .25); transition: transform .8s cubic-bezier(.65, 0, .25, 1), opacity .6s ease, box-shadow .6s ease; }
.mg-tb { position: relative; display: flex; align-items: center; gap: 8px; height: 36px; flex: none; padding: 0 14px; background: #f6f3f8; border-bottom: 1px solid #e9e3ee; font-size: 13px; color: #6f6679; }
.mg-tb i { width: 12px; height: 12px; border-radius: 50%; background: #f16a5d; }
.mg-tb i:nth-child(2) { background: #f6bf4f; }
.mg-tb i:nth-child(3) { background: #5ec454; }
.mg-tb span { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none; }
.mg-win-body { position: relative; flex: 1; min-height: 0; }
.mg-scan { position: absolute; inset: 36px 0 0; pointer-events: none; opacity: 0; background: linear-gradient(180deg, transparent 0%, rgb(157 111 212 / .0) 40%, rgb(157 111 212 / .28) 50%, transparent 52%); background-size: 100% 220%; }
.mg-win.is-scanning { box-shadow: 0 0 0 3px rgb(157 111 212 / .55), 0 30px 70px -24px rgb(124 77 184 / .55); }
.mg-win.is-scanning .mg-scan { opacity: 1; animation: mg-scan 1.5s ease-in-out infinite; }
@keyframes mg-scan { from { background-position: 0 100%; } to { background-position: 0 -20%; } }

/* Highlights: an agent points at the part of the window it is talking about. */
.mg-t { position: relative; border-radius: 10px; outline: 3px solid transparent; outline-offset: 5px; transition: outline-color .35s ease, box-shadow .35s ease; }
.mg-t.is-hl { outline-color: var(--tone, #9d6fd4); box-shadow: 0 0 0 12px color-mix(in srgb, var(--tone, #9d6fd4) 14%, transparent); }
.mg-t::after { content: attr(data-by); position: absolute; left: -4px; top: -36px; z-index: 3; padding: 3px 10px; border-radius: 999px; background: var(--tone, #9d6fd4); color: #fff; font: 600 13px/1.4 Figtree, system-ui, sans-serif; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.mg-t.is-hl::after { opacity: 1; transform: none; }

/* Orb + cursor */
.mg-orb { position: absolute; left: 1040px; top: 652px; width: 64px; height: 64px; border-radius: 50%; animation: mg-bob 4s ease-in-out infinite; }
.mg-orb img { width: 64px; height: 64px; filter: drop-shadow(0 10px 14px rgb(88 68 120 / .35)); }
.mg-orb::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; box-shadow: 0 0 0 0 rgb(157 111 212 / .55); opacity: 0; }
.mg-orb { transition: opacity .4s, transform .5s; }
.mg-orb.is-tucked { opacity: 0; transform: scale(.5); }
.mg-orb.is-awake::before { opacity: 1; animation: mg-ping 1.6s ease-out infinite; }
.mg-orb.is-awake img { animation: mg-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mg-bob { 50% { transform: translateY(-6px); } }
@keyframes mg-ping { from { box-shadow: 0 0 0 0 rgb(157 111 212 / .55); } to { box-shadow: 0 0 0 22px rgb(157 111 212 / 0); } }
@keyframes mg-pop { 40% { transform: scale(1.18); } }
.mg-cursor { position: absolute; left: 0; top: 0; z-index: 20; width: 28px; height: 28px; transition: transform .9s cubic-bezier(.55, 0, .2, 1); filter: drop-shadow(0 3px 4px rgb(0 0 0 / .25)); pointer-events: none; }
.mg-cursor svg { width: 28px; height: 28px; }
.mg-click { position: absolute; left: -12px; top: -12px; width: 34px; height: 34px; border-radius: 50%; background: rgb(157 111 212 / .45); opacity: 0; transform: scale(.3); }
.mg-cursor.is-click .mg-click { animation: mg-click .45s ease-out; }
.mg-cursor.is-click svg { animation: mg-press .25s ease; }
@keyframes mg-click { 0% { opacity: 1; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
@keyframes mg-press { 50% { transform: scale(.86); } }

/* Moya panel */
.mg-panel { position: absolute; left: 812px; top: 64px; width: 348px; height: 640px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: rgb(255 255 255 / .82); backdrop-filter: blur(24px); box-shadow: 0 0 0 1px rgb(255 255 255 / .9) inset, 0 0 0 1px rgb(88 68 120 / .12), 0 40px 80px -30px rgb(88 68 120 / .55); opacity: 0; transform: translate(40px, 60px) scale(.9); transform-origin: 90% 100%; transition: opacity .45s ease, transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.mg-panel.is-on { opacity: 1; transform: none; }
.mg-p-head { display: flex; align-items: center; gap: 10px; }
.mg-p-head img { width: 36px; height: 36px; }
.mg-p-head b { display: block; font-size: 17px; }
.mg-p-head span { display: block; font-size: 13px; color: #8a7f99; }
.mg-p-ask { position: relative; display: block; min-height: 50px; padding: 12px 48px 12px 14px; border-radius: 14px; background: #f5f0fa; box-shadow: 0 0 0 1px rgb(124 77 184 / .18) inset; font-size: 16px; transition: background .3s; }
.mg-p-ask.is-sent { background: #efe5fb; }
.mg-p-ask.is-sent .mg-caret { display: none; }
.mg-p-send { position: absolute; right: 10px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: linear-gradient(135deg, #9d6fd4, #7c4db8); color: #fff; font-size: 16px; font-weight: 700; opacity: .35; transition: opacity .3s; }
.mg-p-ask.has-text .mg-p-send { opacity: 1; }
.mg-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -2px; background: #7c4db8; animation: mg-blink 1s steps(1) infinite; }
@keyframes mg-blink { 50% { opacity: 0; } }
.mg-p-using { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6f5d88; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
.mg-p-using span { width: 8px; height: 8px; border-radius: 50%; background: #9d6fd4; box-shadow: 0 0 0 4px rgb(157 111 212 / .2); animation: mg-blink 1.2s ease-in-out infinite; }
.mg-p-using.is-on { opacity: 1; transform: none; }
.mg-p-agents { display: grid; gap: 10px; }
.mg-agent { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgb(88 68 120 / .1), 0 8px 20px -14px rgb(88 68 120 / .5); opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.mg-agent.is-on { opacity: 1; transform: none; }
.mg-agent-badge { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 18%, #fff); color: var(--tone); font-weight: 700; font-size: 15px; }
.mg-agent-body { min-width: 0; flex: 1; }
.mg-agent-body b { display: block; font-size: 14px; color: var(--tone); }
.mg-agent-take { margin-top: 2px !important; font-size: 15px; line-height: 1.4; }
.mg-dots { display: inline-flex; gap: 4px; padding-top: 6px; }
.mg-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--tone); opacity: .35; animation: mg-dot 1s ease-in-out infinite; }
.mg-dots i:nth-child(2) { animation-delay: .15s; }
.mg-dots i:nth-child(3) { animation-delay: .3s; }
.mg-agent.is-ready .mg-dots { display: none; }
@keyframes mg-dot { 40% { opacity: 1; transform: translateY(-3px); } }
.mg-p-verdict { margin-top: auto; padding: 16px; border-radius: 18px; background: linear-gradient(150deg, #f6eefe, #fbeef3); box-shadow: 0 0 0 1px rgb(124 77 184 / .22) inset; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .5s cubic-bezier(.3, 1.3, .5, 1); }
.mg-p-verdict.is-on { opacity: 1; transform: none; }
.mg-panel-solo .mg-p-verdict { margin-top: 4px; }
.mg-p-label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7c4db8; }
.mg-p-verdict p { font-size: 17px; line-height: 1.45; font-weight: 500; }
.mg-p-source { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; background: #fff; font-size: 12px; color: #6f5d88; opacity: 0; transition: opacity .4s; }
.mg-p-source.is-on { opacity: 1; }
.mg-word { animation: mg-word .35s ease both; }
@keyframes mg-word { from { opacity: 0; filter: blur(3px); } }


.mg-doc, .mg-finder { opacity: 0; transform: translateY(30px) scale(.97); pointer-events: none; }
.mg-doc.is-on, .mg-finder.is-on { opacity: 1; transform: none; }
.mg-dm.is-away { opacity: 0; transform: translateX(-60px) scale(.96); }

/* Panel additions: selection, team, working, file references, save picker */
.mg-panel.has-agents { top: 48px; height: 672px; gap: 10px; }
.mg-p-sel { padding: 10px 12px; border-radius: 12px; background: #eef4ff; box-shadow: 0 0 0 1px #cfe0fb inset; }
.mg-p-sel q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; color: #34405a; quotes: none; }
.mg-p-sel .mg-p-label { color: #3b6fc4; margin-bottom: 2px; }
.mg-p-hint { font-size: 14px; color: #6f6679; }
.mg-p-quick { display: flex; gap: 6px; }
.mg-p-quick span { padding: 4px 10px; border-radius: 999px; background: #f3eefa; color: #5c5369; font-size: 13px; }
.mg-p-team { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mg-p-team .mg-p-label { width: 100%; margin: 0; }
.mg-p-team span:not(.mg-p-label) { padding: 3px 10px; border-radius: 999px; background: #f3eefa; font-size: 13px; color: #5c5369; }
.mg-p-working { display: none; font-size: 15px; color: #7c4db8; font-weight: 500; animation: mg-blink 1.2s ease-in-out infinite; }
.mg-p-working.is-on { display: block; }
.mg-panel:not(.has-agents) .mg-p-verdict { margin-top: 0; }
.mg-ref { color: #6a3fa8; font-weight: 600; text-decoration: underline dotted rgb(124 77 184 / .5); text-underline-offset: 3px; }
.mg-save { display: none; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgb(88 68 120 / .14), 0 12px 30px -16px rgb(88 68 120 / .5); }
.mg-save.is-on { display: block; animation: mg-word .4s ease both; }
.mg-save > b { display: block; font-size: 16px; }
.mg-save > p { margin: 2px 0 10px !important; font-size: 13px; color: #8a7f99; }
.mg-save-opt { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #f7f3fb; font-size: 15px; font-weight: 500; transition: background .25s, box-shadow .25s; }
.mg-save-opt em { margin-left: auto; font-style: normal; font-size: 12px; color: #8a7f99; }
.mg-save-opt.is-disabled { opacity: .45; }
.mg-save-opt.is-picked { background: #efe5fb; box-shadow: 0 0 0 2px #9d6fd4 inset; }
.mg-save-done { display: none; margin-top: 10px !important; font-size: 14px; color: #397451 !important; }
.mg-save.is-done .mg-save-done { display: block; }
.mg-folder { display: inline-block; flex: none; width: 20px; height: 15px; border-radius: 3px; background: linear-gradient(#8fc1f5, #5fa2ea); position: relative; }
.mg-folder::before { content: ''; position: absolute; left: 0; top: -3px; width: 9px; height: 5px; border-radius: 2px 2px 0 0; background: #8fc1f5; }

/* Selection sweep */
.mg-sel { background: linear-gradient(#b8d4fb, #b8d4fb) no-repeat 0 0 / 0% 100%; transition: background-size .8s linear; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mg-sel.is-selected { background-size: 100% 100%; }

/* Shared text field. "Moya …" lines are replaced in place. */
.mg-field { position: relative; display: flex; align-items: center; min-height: 58px; padding: 12px 70px 12px 16px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1.5px #d8d0de inset; font-size: 17px; line-height: 1.45; transition: box-shadow .3s, background .3s; }
.mg-field-ph { color: #a39bab; }
.has-text .mg-field-ph { display: none; }
.mg-send { position: absolute; right: 12px; bottom: 12px; padding: 6px 12px; border-radius: 8px; background: #ece6f1; color: #7a7086; font-size: 14px; font-weight: 600; }
.has-text .mg-send { background: #1d8a5b; color: #fff; }
.mg-status { position: absolute; right: 12px; top: -30px; padding: 3px 10px; border-radius: 999px; background: linear-gradient(135deg, #9d6fd4, #7c4db8); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.mg-status.is-on { opacity: 1; transform: none; }
.is-focused { box-shadow: 0 0 0 2px #7c4db8 inset !important; }
.is-drafting { background: linear-gradient(90deg, #f3eafd 0%, #fff 40%, #f3eafd 80%) 0 0 / 200% 100%; animation: mg-shimmer 1s linear infinite; box-shadow: 0 0 0 2px #b79ce1 inset !important; }
.is-drafting .mg-field-text { opacity: .35; transition: opacity .3s; }
.is-drafted { box-shadow: 0 0 0 2px #9d6fd4 inset, 0 10px 30px -12px rgb(124 77 184 / .5) !important; }
@keyframes mg-shimmer { to { background-position: -200% 0; } }
.mg-av { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--av); color: #fff; font-size: 13px; font-weight: 700; }

/* Google Docs-like doc */
.gd { display: flex; flex-direction: column; height: 100%; }
.gd-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #ece9f0; }
.gd-bar b { display: block; font-size: 16px; font-weight: 500; }
.gd-bar small { font-size: 12px; color: #7a7485; word-spacing: 6px; }
.gd-logo { width: 22px; height: 28px; border-radius: 3px; background: #3b82f6; box-shadow: inset 0 -8px 0 #fff3, inset 0 0 0 5px #3b82f6; }
.gd-share { margin-left: auto; padding: 6px 16px; border-radius: 999px; background: #c9ddff; color: #173b7a; font-size: 14px; font-weight: 600; }
.gd-canvas { flex: 1; min-height: 0; padding: 24px 0 0; background: #f1f3f6; }
.gd-page { width: 580px; height: 100%; margin: 0 auto; padding: 44px 56px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.gd-page h4 { font: 400 32px/1.2 ui-serif, Georgia, serif; }
.gd-page h5 { margin: 24px 0 8px; font-size: 18px; }
.gd-page p { margin-bottom: 14px !important; font-size: 17px; line-height: 1.6; color: #2f2a36; }
.gd-page .gd-muted { color: #8a8494; font-size: 14px; }
.gd-price, .gd-date { border-radius: 4px; }

/* Notion-like RFC */
.nt { display: flex; height: 100%; }
.nt-side { display: grid; align-content: start; gap: 4px; width: 180px; padding: 16px 10px; background: #f7f6f3; font-size: 14px; color: #5f5a52; }
.nt-side b { padding: 0 8px 8px; font-size: 12px; color: #9a948a; }
.nt-side span { padding: 5px 8px; border-radius: 6px; }
.nt-side .is-active { background: #ebe9e4; color: #2f2a26; font-weight: 600; }
.nt-page { flex: 1; padding: 34px 44px; }
.nt-emoji { font-size: 34px; }
.nt-page h4 { margin-top: 8px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.nt-meta { margin-top: 6px !important; font-size: 13px; color: #9a948a; }
.nt-page h5 { margin: 24px 0 8px; font-size: 18px; }
.nt-page p { font-size: 17px; line-height: 1.7; color: #37322d; }
.nt-scope, .nt-once, .nt-date { border-radius: 4px; }

/* Mail */
.mgm { display: flex; height: 100%; }
.mgm-side { display: grid; align-content: start; gap: 4px; width: 170px; padding: 16px 10px; background: #f3f0f6; font-size: 14px; color: #5c5369; }
.mgm-side b { padding: 0 8px 8px; font-size: 12px; color: #9a90a6; }
.mgm-side span { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 7px; }
.mgm-side em { font-style: normal; font-size: 12px; color: #9a90a6; }
.mgm-side .is-active { background: #e3d8f1; font-weight: 600; }
.mgm-list { width: 270px; border-right: 1px solid #eee8f2; }
.mgm-item { display: grid; gap: 2px; padding: 14px 16px; border-bottom: 1px solid #f1ecf4; font-size: 13px; color: #8a7f99; }
.mgm-item b { font-size: 15px; color: #2b2432; }
.mgm-item span { color: #3e3548; }
.mgm-item.is-active { background: #2f6fd8; }
.mgm-item.is-active, .mgm-item.is-active b, .mgm-item.is-active span { color: #fff; }
.mgm-thread { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 24px 0 20px; }
.mgm-thread h4 { padding: 0 24px 16px; font-size: 22px; }
.mgm-msg { margin: 0 24px 14px; padding: 14px 16px; border-radius: 14px; background: #faf8fb; box-shadow: 0 0 0 1px #eee8f2 inset; }
.mgm-from { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.mgm-from .mg-av { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; }
.mgm-from time { margin-left: auto; font-size: 12px; color: #9a90a6; }
.mgm-msg p { font-size: 17px; }
.mgm-compose { margin: auto 24px 0; }
.mg-field.is-tall { align-items: flex-start; min-height: 190px; padding-bottom: 54px; }

/* Slack-like DM */
.mgs { display: flex; height: 100%; }
.mgs-side { display: grid; align-content: start; gap: 4px; width: 200px; padding: 16px 12px; background: #3f1f45; color: #d9c8dd; font-size: 14px; }
.mgs-side b { padding: 0 8px 12px; color: #fff; font-size: 15px; }
.mgs-sec { padding: 10px 8px 4px; font-size: 12px; opacity: .7; }
.mgs-side span:not(.mgs-sec) { padding: 5px 10px; border-radius: 6px; }
.mgs-side .is-active { background: #1d64c9; color: #fff; }
.mgs-main { display: flex; flex-direction: column; flex: 1; min-width: 0; padding-bottom: 18px; }
.mgs-head { padding: 14px 20px; border-bottom: 1px solid #ece7ef; font-weight: 700; font-size: 17px; }
.mgs-list { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px 20px; overflow: visible; }
.mgs-msg { display: flex; gap: 12px; padding: 6px; }
.mgs-author b { font-size: 15px; }
.mgs-author time { margin-left: 8px; font-size: 12px; color: #8a8290; }
.mgs-msg p { font-size: 17px; line-height: 1.45; }
.dm-sent { opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.3, .5, 1), outline-color .35s, box-shadow .35s; }
.dm-sent.is-on { opacity: 1; transform: none; }
.mgs-compose { margin: 0 20px; }

/* Promise suggestion + notification */
.mg-suggest, .mg-notify { position: absolute; z-index: 10; display: flex; gap: 12px; padding: 16px; border-radius: 20px; background: rgb(255 255 255 / .94); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px rgb(88 68 120 / .14), 0 30px 60px -20px rgb(88 68 120 / .55); opacity: 0; transition: opacity .4s, transform .6s cubic-bezier(.3, 1.3, .5, 1); }
.mg-suggest img, .mg-notify img { width: 40px; height: 40px; flex: none; }
.mg-suggest { left: 780px; top: 330px; width: 390px; transform: translate(30px, 40px) scale(.92); transform-origin: 90% 100%; }
.mg-suggest.is-on { opacity: 1; transform: none; }
.mg-suggest-q { font-size: 16px; line-height: 1.4; }
.mg-suggest-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.mg-x { color: #8a7f99; font-size: 14px; }
.mg-menu { display: none; margin-top: 10px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgb(88 68 120 / .14), 0 12px 24px -12px rgb(88 68 120 / .5); }
.mg-menu span { display: block; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.mg-menu .mg-tm { background: #efe5fb; color: #6a3fa8; font-weight: 600; }
.mg-suggest.is-menu .mg-menu { display: block; }
.mg-suggest.is-menu .mg-suggest-actions { display: none; }
.mg-suggest-done { display: none; margin-top: 10px !important; font-size: 15px; font-weight: 600; color: #397451; }
.mg-suggest.is-done .mg-menu, .mg-suggest.is-done .mg-suggest-actions { display: none; }
.mg-suggest.is-done .mg-suggest-done { display: block; }
.mg-btn { display: inline-block; padding: 7px 16px; border-radius: 999px; background: linear-gradient(135deg, #9d6fd4, #7c4db8); color: #fff; font-size: 14px; font-weight: 600; }
.mg-btn-quiet { background: #efe9f5; color: #5c5369; }
.mg-notify { left: 740px; top: 44px; width: 430px; align-items: flex-start; transform: translateX(460px); }
.mg-notify.is-on { opacity: 1; transform: none; }
.mg-notify-app { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #8a7f99; }
.mg-notify b { display: block; font-size: 16px; }
.mg-notify p { font-size: 14px; color: #5c5369; }
.mg-notify-actions { display: flex; gap: 6px; margin-top: 10px; }
.mg-notify-actions .mg-btn { padding: 5px 12px; font-size: 13px; }

/* Pages-like doc */
.mgd { height: 100%; padding: 30px; background: #ebe8ee; }
.mgd-page { height: 100%; padding: 40px 56px; background: #fff; box-shadow: 0 6px 20px -10px rgb(0 0 0 / .25); }
.mgd-page h4 { font-size: 32px; letter-spacing: -.02em; }
.mgd-sub { margin-top: 4px !important; font-size: 13px; color: #9a90a6; }
.mgd-page h5 { margin: 26px 0 10px; font-size: 18px; }
.mgd-page p { margin-bottom: 8px !important; font-size: 17px; color: #4a4254; }
.mgd-typing { min-height: 26px; }

/* Notes */
.mgn { display: flex; height: 100%; }
.mgn-side { display: grid; align-content: start; gap: 6px; width: 170px; padding: 18px 12px; background: #f7f5ef; font-size: 14px; color: #5f5a52; }
.mgn-side b { padding: 0 8px 6px; font-size: 12px; color: #9a948a; }
.mgn-side span { padding: 6px 8px; border-radius: 7px; }
.mgn-side .is-active { background: #f5d773; color: #3a3320; font-weight: 600; }
.mgn-doc { flex: 1; padding: 30px 36px; }
.mgn-meta { font-size: 13px; color: #a09a8e; }
.mgn-doc h4 { margin: 6px 0 18px; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.mgn-call { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: #fbf9f3; }
.mgn-call b { font-size: 16px; }
.mgn-call p { margin-top: 4px !important; font-size: 16px; color: #4d473e; }

/* Finder */
.fd { display: flex; height: 100%; }
.fd-side { display: grid; align-content: start; gap: 4px; width: 190px; padding: 14px 10px; background: #f4f2f7; font-size: 14px; color: #4a4254; }
.fd-side b { padding: 8px 8px 2px; font-size: 11px; color: #9a90a6; }
.fd-side span { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; }
.fd-side .is-active { background: #e2dcea; font-weight: 600; }
.fd-list { width: 270px; padding: 10px; border-right: 1px solid #eee8f2; }
.fd-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.fd-row em { margin-left: auto; font-style: normal; font-size: 11px; color: #8a7f99; }
.fd-new { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s, background .3s; }
.fd-new.is-new { opacity: 1; transform: none; background: #2f6fd8; color: #fff; }
.fd-new.is-new em { color: #dbe7ff; }
.fd-file { flex: none; width: 16px; height: 20px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1px #c9c2d3 inset; }
.fd-preview { flex: 1; padding: 22px 24px; font-size: 15px; color: #3e3548; }
.fd-preview h5 { margin-bottom: 12px; font-size: 18px; }
.fd-preview p { margin-bottom: 8px !important; }

/* Browser form */
.bf { display: flex; flex-direction: column; height: 100%; }
.bf-url { display: flex; align-items: center; gap: 14px; padding: 8px 16px; border-bottom: 1px solid #ece9f0; font-size: 14px; color: #7a7485; }
.bf-url b { flex: 1; padding: 5px 12px; border-radius: 8px; background: #f1eff4; text-align: center; font-weight: 500; color: #4a4254; }
.bf-page { flex: 1; display: grid; place-items: start center; padding-top: 26px; background: #f4f6f8; }
.bf-card { width: 620px; padding: 26px 32px; border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.bf-brand { font-size: 13px; font-weight: 700; color: #1f7a6a; }
.bf-card h4 { margin-top: 4px; font-size: 26px; }
.bf-sub { margin: 2px 0 16px !important; font-size: 13px; color: #8a8494; }
.bf-card label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: #4a4254; }
.bf-input, .bf-area { display: block; margin-top: 6px; }
.bf-input { padding: 9px 12px; border-radius: 8px; box-shadow: 0 0 0 1px #d8d4de inset; font-size: 16px; font-weight: 400; color: #2b2432; }
.bf-area { align-items: flex-start; min-height: 110px; padding: 10px 12px; border-radius: 8px; font-weight: 400; }
.bf-area .mg-status { top: -26px; }
.bf-actions { display: flex; justify-content: flex-end; gap: 10px; }
.bf-back, .bf-submit { padding: 8px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.bf-back { color: #5c5369; }
.bf-submit { background: #1f7a6a; color: #fff; }

/* Overlay: caption, progress, pause. Not scaled, so it stays readable on phones. */
.mg-overlay { position: absolute; inset: 0; pointer-events: none; }
.mg-caption { position: absolute; left: 16px; text-align: left; bottom: 18px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 80px); margin: 0; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgb(29 24 35 / .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.3; opacity: 0; transform: translateY(8px); }
.mg-caption.is-in { animation: mg-caption .5s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes mg-caption { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mg.is-still .mg-caption { opacity: 1; transform: none; }
.mg-caption-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #9d6fd4, #7c4db8); font-size: 13px; font-weight: 700; }
.mg-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(29 24 35 / .08); }
.mg-progress i { display: block; height: 100%; background: linear-gradient(90deg, #9d6fd4, #e0708b); transform: scaleX(0); transform-origin: 0 0; }
.mg.is-still .mg-progress, .mg.is-still .mg-toggle { display: none; }
.mg-toggle { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(29 24 35 / .72); color: #fff; pointer-events: auto; opacity: .75; transition: opacity .2s; }
.mg-toggle:hover, .mg-toggle:focus-visible { opacity: 1; }
.mg-i-pause { width: 12px; height: 13px; border-inline: 4px solid currentColor; }
.mg-toggle.is-play .mg-i-pause { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-block: 7px solid transparent; margin-left: 3px; }

@media (max-width: 560px) {
  .mg { border-radius: 16px; }
  .mg-caption { left: 10px; bottom: 12px; gap: 8px; padding: 6px 12px 6px 6px; font-size: 12.5px; }
  .mg-caption-n { width: 22px; height: 22px; font-size: 11px; }
  .mg-toggle { right: 10px; bottom: 10px; width: 32px; height: 32px; }
}
@media (hover: hover) {
  .mg-toggle { opacity: 0; }
  .mg:hover .mg-toggle, .mg-toggle:focus-visible, .mg-toggle.is-play { opacity: .85; }
}
.mg-sl .mgs-msg p { font-size: 18px; }
.mg-sl .mgs-compose { font-size: 18px; }
.gd-date::after, .nt-date::after { top: auto; bottom: -36px; }
.gd-price, .gd-date { text-decoration: underline wavy transparent; text-underline-offset: 5px; transition: text-decoration-color .4s; }
.gd-price.is-flag, .gd-date.is-flag { text-decoration-color: #e0708b; }
.nt-scope, .nt-once, .nt-date { outline: 0 !important; box-shadow: none !important; text-decoration: underline wavy transparent; text-underline-offset: 5px; transition: text-decoration-color .4s; }
.nt-scope.is-flag, .nt-once.is-flag, .nt-date.is-flag { text-decoration-color: var(--tone); }
.mg-panel.has-agents { top: 64px; height: 640px; }
.mg-agent { padding: 10px 12px; }
.has-agents .mg-p-agents { gap: 0; }
.has-agents .mg-agent { padding: 12px 4px; border-radius: 0; background: none; box-shadow: none; border-bottom: 1px solid rgb(88 68 120 / .1); align-items: center; }
.has-agents .mg-agent-badge { width: 28px; height: 28px; font-size: 13px; }
.has-agents .mg-agent-take { font-size: 16px; }
