.mgb-root{position:relative;color:#131313;font-family:inherit;text-align:left}.guest-board .mgb-root{margin-top:auto;align-self:start;width:min(100%,480px)}
.mgb-open,.mgb-send,.mgb-load,.mgb-toolbar button{font:inherit;color:#111;background:#fff;border:1px solid #111;border-radius:0;padding:10px 16px;min-height:44px;cursor:pointer;box-shadow:3px 3px 0 #777}
.mgb-open:hover,.mgb-send:hover,.mgb-load:hover,.mgb-toolbar button:hover{background:#bf221e;color:#fff}.mgb-root a:hover{color:#bf221e}.mgb-open:focus-visible,.mgb-more:focus-visible,#mgb-dialog :focus-visible{outline:3px solid #135acc;outline-offset:3px}
.mgb-notes{display:grid;gap:20px;margin:26px 0}.mgb-root[data-view=stack] .mgb-notes{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:28px 16px 14px 0;min-height:120px;align-items:start}.mgb-note{background:#fff4b8;padding:18px;box-shadow:3px 4px 0 #0003;overflow-wrap:anywhere;white-space:normal;min-width:0}.mgb-note:nth-child(3n+2){background:#d8e8f7}.mgb-note:nth-child(3n){background:#f7d7d7}.mgb-root[data-view=stack] .mgb-note{width:125%;transform:rotate(-7deg);font-size:13px;max-height:230px;overflow:hidden}.mgb-root[data-view=stack] .mgb-note:nth-child(2){transform:rotate(5deg) translateY(12px)}.mgb-root[data-view=stack] .mgb-note:nth-child(3){transform:rotate(-3deg) translateY(-5px)}.mgb-note p{white-space:pre-wrap;margin:10px 0}.mgb-note strong.mgb-author{display:block}.mgb-note time{font-size:.75em;display:block}.mgb-note img{display:block;max-width:100%;height:auto;max-height:300px;object-fit:contain;margin-top:12px}.mgb-root[data-view=stack] .mgb-note img{max-height:65px}.mgb-more{display:inline-block;min-height:44px;padding:10px 0;font-size:14px;letter-spacing:.08em}.mgb-all{max-width:1100px;margin:100px auto 48px;padding:24px}.mgb-all h1{font-size:32px}.mgb-all h1 span{font-size:16px}.mgb-root[data-view=all] .mgb-notes{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
#mgb-dialog{width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);box-sizing:border-box;margin:auto;padding:28px;background:#f8f8f3;border:2px solid #111;border-radius:0;box-shadow:7px 7px 0 #777;color:#111;font:inherit;text-align:left}#mgb-dialog::backdrop{background:#0008}#mgb-dialog h2{font-size:25px;margin:0 35px 16px 0}#mgb-dialog p{font-size:14px;line-height:1.6}#mgb-dialog label{display:block;margin:14px 0;font-size:15px}#mgb-dialog input:not([type=checkbox]),#mgb-dialog textarea{display:block;width:100%;box-sizing:border-box;font:inherit;color:#111;background:#fff;border:1px solid #777;padding:10px;margin-top:6px;border-radius:0}#mgb-dialog textarea{resize:vertical;min-height:100px}#mgb-dialog .mgb-close{position:absolute;right:12px;top:8px;font:inherit;font-size:28px;background:transparent;color:#111;border:0;min-width:44px;min-height:44px;cursor:pointer}#mgb-dialog .mgb-checkbox{display:flex;gap:10px;align-items:start}#mgb-dialog .mgb-checkbox input{margin-top:4px}#mgb-dialog .mgb-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}#mgb-dialog .mgb-toolbar{display:flex;gap:8px}#mgb-dialog .mgb-toolbar button{padding:5px 10px;font-size:13px;box-shadow:none}#mgb-dialog #mgb-count{margin:4px 0;text-align:right}#mgb-dialog .mgb-feedback{font-weight:600}#mgb-dialog button:disabled{opacity:.5;cursor:not-allowed}#mgb-dialog .mgb-privacy{font-size:12px;color:#444}.mgb-list-status:empty{display:none}
html:not([lang^=zh]) .mgb-root .maerd-copy-zh,html:not([lang^=zh]) #mgb-dialog .maerd-copy-zh{display:none}html[lang^=zh] .mgb-root .maerd-copy-en,html[lang^=zh] #mgb-dialog .maerd-copy-en{display:none}
@media(max-width:700px){.mgb-root[data-view=all] .mgb-notes{grid-template-columns:1fr}.mgb-all{padding:16px}.mgb-root[data-view=stack] .mgb-note{padding:12px;font-size:12px}#mgb-dialog{padding:22px 18px}}

/* The invitation is a single square note, anchored inside the board. */
.maerd-home .guest-board{display:flex;flex-direction:column;align-items:stretch}
.guest-board .mgb-root[data-view=stack]{margin-top:auto!important;padding-top:24px;align-self:flex-start;width:100%;display:flex;align-items:flex-end;gap:24px;flex-wrap:wrap}
.mgb-invitation{box-sizing:border-box;flex:0 0 180px;width:180px;height:180px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;background:#eddf82;padding:18px 8px 12px;gap:10px}
.mgb-invitation .mgb-open{font-family:'Averia Serif Libre','GenWanMin',serif;font-size:17px;font-weight:400;line-height:1.35;background:transparent;color:#111;border:0;box-shadow:none;padding:8px 0;min-height:60px;width:100%}
.mgb-invitation .mgb-open:hover{color:#bf221e;background:transparent}
.mgb-invitation .mgb-more{color:#bf221e;font-size:12px;line-height:1.5;min-height:44px;box-sizing:border-box;padding:13px 8px;text-decoration:underline;letter-spacing:0}
.mgb-root[data-view=stack] .mgb-notes{flex:1 1 240px;max-width:360px;min-height:0;margin:0 20px 0 0}
.mgb-root[data-view=stack] .mgb-notes:empty{display:none}
.mgb-root[data-view=stack] .mgb-list-status{flex-basis:100%;margin:0;font-size:13px}
@media(max-width:600px){.mgb-invitation{flex-basis:150px;width:150px;height:150px;padding:10px 6px 4px;gap:0}.mgb-invitation .mgb-open{font-size:15px}.guest-board .mgb-root[data-view=stack]{gap:16px}.mgb-root[data-view=stack] .mgb-notes{flex-basis:180px}}

.maerd-home .board-subtitle{font-size:24px!important;line-height:1.4;letter-spacing:.04em;text-align:center}
.mgb-invitation{transition:background-color .18s,color .18s}
.mgb-invitation:hover,.mgb-invitation:focus-within{background:#ed352f;color:#fff}
.mgb-invitation:hover .mgb-open,.mgb-invitation:hover .mgb-more,.mgb-invitation:focus-within .mgb-open,.mgb-invitation:focus-within .mgb-more{color:#fff;background:transparent}
.maerd-home #news{box-sizing:border-box;min-height:calc(100svh - var(--maerd-header-height) - var(--maerd-admin-height));padding:24px 4vw!important;display:flex;align-items:center;scroll-margin-top:calc(var(--maerd-header-height) + var(--maerd-admin-height))}
@media(max-width:650px){.maerd-home .board-subtitle{font-size:18px!important}.maerd-home #news{padding:16px!important}}
@media(prefers-reduced-motion:reduce){.mgb-invitation{transition:none}}
