/* Additive source guidance, using the same tokens as the MotionGit main site. */
.mg-workspace { margin-block: 18px 22px !important; border: 1px solid var(--mg-border,#30363d); border-radius: 14px; padding: 20px 24px !important; background: var(--mg-panel,#0d1117); color: var(--mg-fg,#f0f6fc); }
.mg-workspace [hidden] { display: none !important; }
.mgw-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; }
.mg-workspace .mgw-eyebrow { margin: 0 0 7px; color: var(--mg-muted,#8b949e); font: 11px/1.5 var(--fonts-monospace,monospace); letter-spacing: .06em; }
.mg-workspace h2 { margin: 0; font: 600 20px/1.4 var(--fonts-regular,system-ui); letter-spacing: -.02em; overflow-wrap: anywhere; }
.mgw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mgw-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 15px; border: 1px solid var(--mg-border,#30363d); border-radius: 999px; font-size: 13px; line-height: 1.5; color: var(--mg-fg,#f0f6fc); background: transparent; text-decoration: none; transition: background .2s,border-color .2s; }
.mgw-actions [data-mgw-preview] { background: var(--mg-fg,#f0f6fc); color: var(--mg-panel,#0d1117); border-color: transparent; font-weight: 600; }
.mgw-actions a:hover { border-color: #8b949e; background: #161b22; color: #f0f6fc; }
.mgw-actions [data-mgw-preview]:hover { background: #fff; color: #0d1117; }
.mg-workspace .mgw-meta { font-size: 12px; color: #8b949e; margin: 13px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.mg-workspace .mgw-hint { font-size: 14px; color: #c9d1d9; line-height: 1.8; margin: 12px 0 0; }
.mg-workspace details { margin-top: 10px; font-size: 13px; color: #8b949e; line-height: 1.8; }
.mg-workspace summary { cursor: pointer; color: #58a6ff; width: fit-content; }
.mg-workspace details p { margin: 10px 0 0; max-width: 80em; }
.mg-workspace a:focus-visible,.mg-workspace summary:focus-visible { outline: 2px solid #58a6ff; outline-offset: 3px; border-radius: 6px; }
.mg-workspace[data-view="review"],.mg-workspace[data-view="diff"],.mg-workspace[data-view="release"] { padding-block: 16px !important; }
.mg-workspace:not([data-view="source"]) .mgw-hint { margin-top: 8px; }
.mg-guide { margin: 0; font: 16px/1.7 var(--fonts-regular,system-ui); background: #010409; color: #f0f6fc; }
.mg-guide * { box-sizing: border-box; }
.mg-guide .mg-guide-content,.mg-guide footer { max-width: 1080px; margin: auto; padding: 24px; }
.mg-guide header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid #21262d; }
.mg-guide nav { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.mg-guide a { color: #58a6ff; text-decoration: none; }
.mg-guide a:hover { color: #79c0ff; }
.mg-guide .mg-guide-logo { display: inline-flex; align-items: center; gap: 10px; color: #f0f6fc; font-weight: 700; }
.mg-guide-logo img { width: 30px; height: 30px; }
.mg-guide h1 { font-size: clamp(30px,4vw,44px); line-height: 1.25; margin: 36px 0 18px; letter-spacing: -.03em; }
.mg-guide h2 { font-size: 22px; margin: 0 0 14px; }
.mg-guide p { color: #c9d1d9; }
.mg-guide .mg-guide-lede { color: #8b949e; max-width: 46em; margin-bottom: 28px; }
.mg-guide section { padding: 26px; border: 1px solid #30363d; border-radius: 16px; background: #0d1117; margin-block: 20px; scroll-margin-top: 96px; }
.mg-guide ol,.mg-guide ul { padding-left: 22px; color: #c9d1d9; }
.mg-guide li+li { margin-top: 10px; }
.mg-guide .mg-guide-note { padding: 16px 20px; border-left: 3px solid #a371f7; background: #a371f70d; color: #c9d1d9; }
.mg-guide footer { border-top: 1px solid #21262d; color: #8b949e; font-size: 13px; }
.mg-guide code { font: .9em var(--fonts-monospace,monospace); overflow-wrap: anywhere; }
.mg-guide a:focus-visible { outline: 2px solid #58a6ff; outline-offset: 3px; border-radius: 5px; }
@media(max-width:767px) { .mg-workspace { padding: 18px !important; } .mgw-heading { align-items: flex-start; flex-direction: column; gap: 14px; } .mg-workspace h2 { font-size: 18px; } .mgw-actions a { min-height: 40px; } .mg-guide .mg-guide-content,.mg-guide footer { padding: 20px; } .mg-guide section { padding: 20px; } }
@media(prefers-reduced-motion:reduce) { .mgw-actions a { transition: none; } }
