.reader__article.mgd{position:relative}.mgd :is(.mgd-bar,.mgd-rail,.mgd-thread) :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mgd-n{font-variant-numeric:tabular-nums;color:var(--meta);margin-left:2px}.mgd-modes{display:inline-flex;padding:2px;border:1px solid var(--line);border-radius:999px}.v2 .mgd-modes button{padding:3px 12px;border-radius:999px;font-size:13px;color:var(--meta);cursor:pointer}.v2 .mgd-modes button:hover{color:var(--ink)}.v2 .mgd-modes button[aria-pressed=true]{background:var(--ink);color:var(--surface)}.mgd-modes button[aria-pressed=true] .mgd-n{color:inherit;opacity:.7}.mgd-note{flex:1 1 0;min-width:0;font-size:12px;color:var(--meta);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v2 .mgd-yours{padding:3px 2px;font-size:13px;color:var(--body);text-decoration:underline dotted color-mix(in srgb,var(--accent) 45%,transparent);text-decoration-thickness:1.5px;text-underline-offset:4px;cursor:pointer}.mgd-yours:hover{color:var(--ink);text-decoration-color:var(--accent)}.mgd-hint{flex-basis:100%;display:flex;align-items:center;gap:12px;margin:4px 0 0;padding:4px 4px 4px 14px;border-radius:10px;background:color-mix(in srgb,var(--accent-soft) 60%,transparent);font-size:13px;line-height:1.4;color:var(--ink)}.mgd-hint__mark{flex:0 0 16px;height:0;border-bottom:2px dotted var(--accent)}.v2 .mgd-hint button{flex:none;margin-left:auto;padding:6px 12px;white-space:nowrap;border-radius:999px;font-size:12px;color:var(--body);cursor:pointer}.mgd-hint button:hover{color:var(--ink);background:var(--bg)}::highlight(mgd-tap){background-color:var(--accent-soft)}.mgd-pop--above{transform:translateY(-100%)}.mgd--review .mg-mark{text-decoration:underline dotted color-mix(in srgb,var(--accent) 45%,transparent);text-decoration-thickness:1.5px;text-underline-offset:5px;transition:text-decoration-color .15s ease,background-color .15s ease}.mgd--review .mg-mark--vote{text-decoration-color:color-mix(in srgb,var(--accent) 28%,transparent)}.mgd--review .mg-mark:hover{background:none;text-decoration-color:var(--accent)}.mgd--review .mg-mark[data-mgd-current]{background:var(--accent-soft);text-decoration-color:var(--accent)}.mgd:not(.mgd--review) .mg-mark{text-decoration:underline dotted color-mix(in srgb,var(--accent) 45%,transparent);text-decoration-thickness:1.5px;text-underline-offset:5px}.mgd:not(.mgd--review) .mg-mark:hover{background:none;text-decoration-color:var(--accent)}@keyframes mgd-pulse{0%{background-color:var(--accent-soft)}to{background-color:transparent}}.mgd .mg-mark[data-mgd-pulse]{animation:mgd-pulse 1s ease-out}.mgd-fresh{margin:-4px -6px;padding:4px 6px;border-radius:6px;animation:mgd-pulse 1.2s ease-out}.mgd-pending{opacity:.6}.v2 .mg-actions3 button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);cursor:default}.v2 .mg-actions3 button[aria-pressed=true] span{color:var(--accent)}.v2 .mg-actions3 button:disabled:not([aria-pressed=true]){color:var(--meta);cursor:default}.mgd-pop__said{margin:0;padding:8px 14px;border-top:1px solid var(--line-soft);font-size:12px;color:var(--ink)}.mgd-voted{align-self:center;font-size:11px;color:var(--accent);white-space:nowrap}.mgd-voted:not(:empty){margin-left:4px}.mgd-entries .mgd-voted{order:-1}.mgd-entries .mgd-voted:not(:empty){margin:0 4px 0 0}.mgd-edited-host{display:none}.mgd--review .mgd-edited-host{display:inline}.mgd-edited{font-family:var(--font-sans);font-size:11px;letter-spacing:.02em;color:var(--green-ink);white-space:nowrap;vertical-align:2px}.v2 .mgd-edited button,.v2 .mgd-undo{padding:0;font:inherit;color:var(--accent);text-decoration:underline;text-underline-offset:2px;cursor:pointer}.mgd-edited :focus-visible{outline:2px solid var(--accent);outline-offset:2px}.mgd--review .mg-mark:focus-visible{outline:none;background:var(--accent-soft);text-decoration-style:solid;text-decoration-color:var(--accent);text-decoration-thickness:2px}.mgd-thread-host{margin-top:-6px}.mgd-thread{font-family:var(--font-sans);font-size:14px;line-height:1.5;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px}.mgd-thread__top{display:flex;align-items:center;gap:12px;padding:8px 8px 8px 14px;border-bottom:1px solid var(--line-soft)}.mgd-thread__pos{font-size:10px;letter-spacing:.12em;color:var(--meta)}.mgd-thread__nav{display:flex;margin-left:auto}.v2 .mgd-thread__nav button{width:30px;height:28px;border-radius:6px;font-size:17px;line-height:1;color:var(--meta);cursor:pointer}.mgd-thread__nav button:hover{color:var(--ink);background:var(--bg)}.mgd-entries{display:flex;flex-direction:column;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line-soft)}.mgd-entry__h{display:flex;align-items:center;gap:6px;margin-bottom:1px}.mgd-thread .mg-who{font-size:12px}.mgd-thread .mg-when{font-size:11px}.mgd-thread .mg-agent{padding-left:10px}.mgd-thread .mg-rewrite{margin-top:8px;gap:2px}.mgd-thread .mg-btn{padding:4px 12px;font-size:12px}.mgd-thread .mg-compose textarea{font-size:13px;padding:6px 8px}.mgd-thread .mg-compose:has(textarea:placeholder-shown:not(:focus)) .mg-row{display:none}.reader__md .mgd-thread p{font-size:13px;line-height:1.55;color:var(--body)}.reader__md .mgd-thread .mg-rewrite p{font-size:15px;line-height:1.5;margin-bottom:4px}.reader__md .mgd-thread .mg-before{color:var(--meta)}.reader__md .mgd-thread .mg-after{color:var(--ink)}.reader__md .mgd-thread .mg-rewrite .mg-decided{font-family:var(--font-sans);font-size:13px;color:var(--green-ink)}.reader__md .mgd-thread .mg-rewrite .mgd-history{font-family:var(--font-sans);font-size:11px;color:var(--meta)}.mgd-votes{display:inline-flex;gap:4px}.v2 .mgd-votes button{padding:2px 9px;border:1px solid var(--line);border-radius:999px;font-size:12px;color:var(--body);cursor:pointer;font-variant-numeric:tabular-nums}.mgd-votes button:hover{border-color:var(--ink);color:var(--ink)}.mgd-votes button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.mgd-entries .mgd-votes{gap:2px;margin-left:auto}.v2 .mgd-entries .mgd-votes button{min-width:26px;padding:1px 6px;border-color:transparent;font-size:11px;line-height:1.6;color:var(--meta)}.v2 .mgd-entries .mgd-votes button:hover{color:var(--ink);border-color:var(--line)}.v2 .mgd-entries .mgd-votes button[aria-pressed=true]{color:var(--accent);border-color:transparent;background:var(--accent-soft)}.mgd-list{display:flex;flex-direction:column;gap:10px;min-height:0;font-size:13px}.mgd-list__head{display:flex;align-items:center;justify-content:space-between}.mgd-filter{display:flex;gap:2px}.v2 .mgd-filter button{padding:1px 8px;border-radius:999px;font-size:12px;color:var(--meta);cursor:pointer}.v2 .mgd-filter button[aria-pressed=true]{color:var(--ink);background:var(--bg);box-shadow:inset 0 0 0 1px var(--line)}.mgd-items{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin:0 -4px;padding:0 4px}.mgd-item{display:flex;gap:10px;width:100%;text-align:left;padding:7px 0 7px 8px;border-left:2px solid transparent;cursor:pointer}.mgd-item:hover .mgd-item__q{color:var(--ink)}.mgd-item[aria-current=true]{border-left-color:var(--accent)}.mgd-item[aria-current=true] .mgd-item__q{color:var(--ink)}.mgd-item__n{flex:0 0 18px;font-size:10px;line-height:20px;color:var(--meta);font-variant-numeric:tabular-nums}.mgd-item__t{display:flex;flex-direction:column;min-width:0}.mgd-item__q{font-size:14px;line-height:1.4;color:var(--body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.mgd-item__m{font-size:11px;color:var(--meta)}.mgd-orphans{display:flex;flex-direction:column;gap:4px;padding-top:8px;border-top:1px solid var(--line-soft)}.mgd-orphan{color:var(--meta);font-style:italic}.mgd-list__foot{display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid var(--line-soft)}.mgd-keys{font-size:11px;color:var(--meta)}@media (hover:none){.mgd-keys{display:none}}.mgd-keys kbd{font-family:var(--font-sans);font-size:10px;padding:0 4px;border:1px solid var(--line);border-radius:4px}.mgd-rail-host{position:absolute;top:0;bottom:0;left:calc(100% + 48px);width:250px}.mgd-rail{height:100%}.mgd-margin{position:sticky;top:88px;display:flex;flex-direction:column;max-height:calc(100vh - 120px)}.mgd-margin .mgd-list{flex:1 1 auto}.mgd-sheet,.mgd-strip{display:none}.mgd-strip{position:fixed;z-index:60;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);align-items:center;gap:2px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:999px;box-shadow:0 12px 32px -20px rgba(20,24,31,.3);font-size:13px}.v2 .mgd-strip__b{width:40px;height:36px;border-radius:999px;font-size:20px;line-height:1;color:var(--ink);cursor:pointer}.mgd-strip__pos{min-width:64px;text-align:center;font-size:11px;letter-spacing:.06em;color:var(--meta);font-variant-numeric:tabular-nums}.v2 .mgd-strip__list{padding:8px 14px;border-left:1px solid var(--line-soft);color:var(--ink);cursor:pointer}.mgd-strip__list[aria-expanded=true]{color:var(--accent)}.mgd-sheet{position:fixed;z-index:60;left:12px;right:12px;bottom:76px;max-width:420px;margin:0 auto;max-height:60svh;padding:14px;background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 48px -32px rgba(20,24,31,.3)}.mgd-sheet .mgd-list{flex:1}.mgd-sheet .mgd-items{flex:1 1 auto}@media (width < 1240px){.mgd-rail,.mgd-rail-host{position:static;width:auto;height:auto}.mgd-margin{display:none}.mgd-sheet,.mgd-strip{display:flex}.mgd--review{padding-bottom:160px}}.reader:has(>.reader__notes){.mgd-rail,.mgd-rail-host{position:static;width:auto;height:auto}.mgd-margin{display:none}.mgd-sheet,.mgd-strip{display:flex}.mgd--review{padding-bottom:160px}}@media (width < 640px){.mgd-pop--above{transform:none}.mgd-bar .mg-switch{margin-left:auto}.mgd-note{order:3;flex-basis:100%}.mgd-hint{order:4}.mgd-yours{order:2}}@media (pointer:coarse){.v2 .mgd-hint button,.v2 .mgd-yours{min-height:44px}}@media (prefers-reduced-motion:reduce){.mgd--review .mg-mark{transition:none}.mgd .mg-mark[data-mgd-pulse],.mgd-fresh{animation:none}}