.mg-layer{position:absolute;top:0;left:0;width:100%;height:0}.reader__article:has(>.mg-layer){position:relative}.mg-k{font-size:10px;letter-spacing:.14em;color:var(--meta)}.mg-bar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:-8px;color:var(--meta)}.mg-bar,.v2 .mg-switch{align-items:center;font-size:13px}.v2 .mg-switch{display:inline-flex;gap:8px;color:var(--body);cursor:pointer}.mg-switch__track{position:relative;width:28px;height:16px;border-radius:999px;background:var(--line);transition:background .15s ease}.mg-switch__track:after{content:"";position:absolute;top:2px;left:2px;width:12px;height:12px;border-radius:50%;background:var(--surface);transition:transform .15s ease}.mg-switch[aria-checked=true]{color:var(--ink)}.mg-switch[aria-checked=true] .mg-switch__track{background:var(--accent)}.mg-switch[aria-checked=true] .mg-switch__track:after{transform:translateX(12px)}.mg-mark{text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--accent) 50%,transparent);text-decoration-thickness:1.5px;text-underline-offset:5px;cursor:pointer;border-radius:2px;transition:background-color .15s ease}.mg-mark--vote{text-decoration-style:dotted}.mg-mark:hover{background:var(--accent-soft)}.mg-mark:focus-visible,:is(.mg-bar,.mg-pop,.mg-yours,.mg-prov-slot) :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mg-pop{position:absolute;z-index:40;width:min(380px,100%);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 24px 48px -32px rgba(20,24,31,.2);font-size:14px;line-height:1.5;color:var(--ink)}.mg-actions3{display:flex}.v2 .mg-actions3 button{flex:1 1 auto;padding:9px 14px;font-size:13px;color:var(--ink);white-space:nowrap;cursor:pointer}.mg-actions3 button+button{border-left:1px solid var(--line)}.mg-actions3 button:hover{background:var(--bg);color:var(--accent)}.mg-actions3 button span{color:var(--meta);font-size:10px;margin-right:2px}.mg-pop:has(.mg-actions3){width:auto;overflow:hidden}.mg-card{display:flex;flex-direction:column}.mg-card__top{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 8px 14px;border-bottom:1px solid var(--line-soft)}.mg-votes{display:flex;gap:4px}.v2 .mg-votes button{padding:3px 9px;border:1px solid var(--line);border-radius:999px;font-size:12px;color:var(--body);cursor:pointer;font-variant-numeric:tabular-nums}.mg-votes button:hover{border-color:var(--ink);color:var(--ink)}.mg-votes button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.v2 .mg-x{width:28px;height:28px;border-radius:6px;font-size:18px;line-height:1;color:var(--meta);cursor:pointer}.mg-x:hover{color:var(--ink);background:var(--bg)}.mg-thread{display:flex;flex-direction:column;gap:12px;padding:14px;border-bottom:1px solid var(--line-soft)}.mg-agent__h,.mg-entry__h{display:flex;align-items:center;gap:8px;margin-bottom:2px}.mg-who{font-size:13px;font-weight:600}.mg-when{font-size:12px;color:var(--meta)}.mg-body{color:var(--body);text-wrap:pretty}.mg-agent{padding-left:12px;border-left:2px solid var(--accent-soft)}.mg-tag{font-size:9px;letter-spacing:.12em;color:var(--meta);border:1px solid var(--line);border-radius:4px;padding:1px 5px}.mg-rewrite{display:flex;flex-direction:column;gap:4px;margin-top:10px}.mg-rewrite p{font-size:15px;line-height:1.55;margin-bottom:6px;text-wrap:pretty}.mg-before{color:var(--meta);text-decoration:line-through;text-decoration-color:color-mix(in srgb,var(--meta) 60%,transparent)}.mg-after{color:var(--ink)}.mg-decided{font-size:13px;color:var(--green-ink)}.mg-compose{display:flex;flex-direction:column;gap:8px;padding:12px 14px}.mg-compose textarea{width:100%;resize:vertical;min-height:36px;padding:8px 10px;font:inherit;font-size:14px;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:8px}.mg-compose textarea:focus{outline:none;border-color:var(--accent)}.mg-row{display:flex;gap:8px}.v2 .mg-btn{padding:6px 14px;border:1px solid var(--line);border-radius:999px;font-size:13px;color:var(--ink);cursor:pointer}.v2 .mg-btn--ink,.v2 .mg-btn:hover{border-color:var(--ink)}.v2 .mg-btn--ink{background:var(--ink);color:var(--surface)}.v2 .mg-btn--ink:hover{background:var(--accent);border-color:var(--accent)}.v2 .mg-btn:disabled{cursor:default;opacity:.6}.v2 .mg-btn--ink:disabled:hover{background:var(--ink);border-color:var(--ink)}.mg-compose textarea[readonly]{color:var(--body)}.mg-compose__why{margin:0;font-size:13px;line-height:1.45;color:var(--ink)}.mg-compose__why:empty{margin-top:-8px}.mg-compose__why:not(:empty):before{content:"";display:inline-block;width:6px;height:6px;margin:0 8px 1px 0;border-radius:50%;background:var(--accent)}.mg-check{flex:none;color:var(--green-ink)}.mg-posted{display:flex;flex-direction:column;gap:10px;padding:14px}.mg-posted__h{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;font-weight:600;color:var(--ink)}:is(.mg-pop,.lib__marks) .mg-posted__h:focus-visible{outline:none}.mg-posted__entry{padding:8px 0 8px 12px;border-left:2px solid var(--accent-soft)}.mg-posted__entry .mg-body{margin:0;white-space:pre-wrap}.mg-posted__next{margin:0;font-size:13px;line-height:1.45;color:var(--meta);text-wrap:pretty}.mg-prov-slot{margin-bottom:-18px}.mg-prov{position:relative;display:inline-block;outline-offset:2px}.mg-prov__by{font-size:10px;letter-spacing:.08em;color:var(--accent)}.mg-prov[tabindex] .mg-prov__by{cursor:help;border-bottom:1px dotted color-mix(in srgb,var(--accent) 50%,transparent)}.mg-prov__hist{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:max-content;max-width:min(340px,80vw);display:flex;flex-direction:column;gap:6px;padding:10px 12px;font-family:var(--font-inter),Inter,system-ui,sans-serif;font-size:13px;line-height:1.45;color:var(--body);background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 24px 48px -32px rgba(20,24,31,.2);visibility:hidden;opacity:0;transition:opacity .15s ease}.mg-prov:focus .mg-prov__hist,.mg-prov:hover .mg-prov__hist{visibility:visible;opacity:1}.mg-prov__row{display:flex;flex-direction:column}.mg-prov__v{font-size:10px;letter-spacing:.06em;color:var(--meta)}.mg-yours{display:flex;flex-direction:column;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.mg-group__h{font-size:13px;font-weight:600;color:var(--ink)}.mg-group__n{font-weight:400;color:var(--meta);margin-left:4px}.mg-list{margin-top:4px}.mg-item,.mg-list{display:flex;flex-direction:column}.mg-item{gap:2px;width:100%;text-align:left;padding:10px 0;border-bottom:1px solid var(--line-soft);color:var(--ink)}button.mg-item{cursor:pointer}button.mg-item:hover .mg-item__q{color:var(--accent)}.mg-item__q{font-size:16px;line-height:1.45;font-style:italic;text-wrap:pretty}.mg-item__b{font-size:13px;line-height:1.45;color:var(--body)}.mg-empty,.mg-item--orphan .mg-item__q{color:var(--meta)}.mg-empty{font-size:14px}.v2 .mg-reset{align-self:flex-start;font-size:10px;letter-spacing:.12em;color:var(--meta);cursor:pointer}.mg-reset:hover{color:var(--ink)}@media (width < 640px){.mg-pop,.mg-pop:has(.mg-actions3){position:fixed;z-index:70;top:auto!important;left:0!important;right:0;bottom:0;width:auto;max-height:72svh;overflow-y:auto;border-radius:16px 16px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.v2 .mg-actions3 button{padding:14px 8px;font-size:14px}.mg-bar__hint{flex-basis:100%}}@media (prefers-reduced-motion:reduce){.mg-mark,.mg-prov__hist,.mg-switch__track,.mg-switch__track:after{transition:none}}