:root{color:#111;background:#f4f4f5;font-family:system-ui,sans-serif}*{box-sizing:border-box}body{margin:0}.app{grid-template-rows:auto auto 1fr auto;height:100vh;display:grid}.app>header{grid-row:1}.app>.announcement{grid-row:2}.app>.canvas-wrap{grid-row:3}.app>footer{grid-row:4}.announcement{color:#78350f;background:#fef3c7;border-bottom:1px solid #fcd34d;align-items:center;gap:.75rem;padding:.6rem 1rem;display:flex}.announcement-message{white-space:pre-wrap;overflow-wrap:anywhere;flex:1;margin:0}.announcement-time{opacity:.8;font-size:.75rem}.announcement-close{font:inherit;color:inherit;cursor:pointer;background:0 0;border:none;padding:0 .25rem;font-size:1.25rem;line-height:1}header,footer{background:#fff;border-bottom:1px solid #e4e4e7;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex}footer{border-top:1px solid #e4e4e7;border-bottom:none}.app>footer{grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.app>footer>.palette{justify-self:start}.app>footer>.cooldown{grid-column:2}.app>footer>.footer-legal{grid-column:3;justify-self:end}@media (width<=1279px){.app>footer{row-gap:.6rem}.app>footer>.palette{grid-column:1/-1;justify-content:center;justify-self:center}}h1{margin:0;font-size:1.25rem}.canvas-wrap{touch-action:none;-webkit-user-select:none;user-select:none;place-items:center;display:grid;overflow:hidden}.canvas-wrap.dragging,.canvas-wrap.dragging .board{cursor:grabbing}.board-transform{transform-origin:0 0;will-change:transform}.board{aspect-ratio:1;width:min(80vh,90vw);image-rendering:pixelated;cursor:crosshair;background:#fff;display:block;box-shadow:0 0 0 1px #d4d4d8}.palette{flex-wrap:wrap;gap:4px;display:flex}.swatch{cursor:pointer;border:1px solid #d4d4d8;border-radius:4px;width:28px;height:28px}.swatch.selected{outline-offset:1px;outline:3px solid #111}.login{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.login-message{margin:0;font-size:.875rem}.login-message--success{color:#15803d}.login-message--error{color:#b91c1c;flex-basis:100%}.login input,.login button{font:inherit;padding:.35rem .6rem}.login-links{gap:.75rem;font-size:.875rem;display:flex}.link-button{font:inherit;color:#2563eb;cursor:pointer;background:0 0;border:none;padding:0;text-decoration:underline}.account{align-items:center;gap:.75rem;font-size:.875rem;display:flex}.display-name{font:inherit;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;padding:.15rem .4rem}.display-name span{color:#a1a1aa}.display-name:hover{background:#f4f4f5;border-color:#e4e4e7}.display-name-form{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;max-width:22rem;display:flex}.display-name-form input,.display-name-form button[type=submit]{font:inherit;padding:.3rem .5rem}.display-name-form input{width:11rem}.display-name-hint{color:#71717a;text-align:right;flex-basis:100%;margin:0;font-size:.75rem}.display-name-form .login-message--error{text-align:right}.role-badge{color:#92400e;background:#fef3c7;border-radius:999px;padding:.1rem .4rem;font-size:.75rem}.admin{position:relative}.admin-console button[type=submit]:not(.admin-confirm-danger){font:inherit;padding:.35rem .6rem}.admin-backdrop{z-index:100;background:#0000008c;place-items:center;padding:1.5rem;display:grid;position:fixed;inset:0}.admin-console{background:#f4f4f5;border-radius:12px;flex-direction:column;width:min(1400px,100%);height:min(92vh,1000px);display:flex;overflow:hidden;box-shadow:0 20px 60px #00000040}.admin-console-header{background:#fff;border-bottom:1px solid #e4e4e7;justify-content:space-between;align-items:center;padding:.75rem 1.25rem;display:flex}.admin-console-header h2{margin:0;font-size:1.125rem}.admin-close{cursor:pointer;background:0 0;border:0;font-size:1.6rem;line-height:1}.admin-grid{grid-template-columns:repeat(auto-fill,minmax(min(20rem,100%),1fr));grid-auto-flow:dense;flex:1;align-content:start;gap:1rem;min-height:0;padding:1rem;display:grid;overflow:auto}.admin-tile{background:#fff;border:1px solid #e4e4e7;border-radius:8px;min-width:0;padding:1rem}@media (width>=46rem){.admin-tile--wide{grid-column:span 2}}.admin-section{flex-direction:column;align-items:flex-start;gap:.75rem;display:flex}.admin-danger{background:#fff;border-color:#fca5a5;flex-direction:column;gap:.75rem;display:flex;box-shadow:inset 4px 0 #dc2626}.admin-danger h2{color:#b91c1c}.admin-danger-note{color:#7f1d1d;margin:0;font-size:.875rem}.admin-danger-tools{grid-template-columns:repeat(auto-fit,minmax(min(18rem,100%),1fr));gap:1rem;display:grid}.admin-danger-tool{background:#fef2f2;border:1px solid #fecaca;border-radius:6px;min-width:0;padding:.85rem}.admin-danger-tool h3{margin:0;font-size:.95rem}button.admin-confirm-danger{font:inherit;color:#fff;cursor:pointer;background:#dc2626;border:1px solid #b91c1c;border-radius:5px;padding:.35rem .7rem}button.admin-confirm-danger:disabled{opacity:.5;cursor:not-allowed}.admin-confirm-backdrop{z-index:110;background:#00000073;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.admin-confirm{background:#fff;border-top:4px solid #dc2626;border-radius:10px;flex-direction:column;gap:.75rem;width:min(30rem,100%);padding:1.25rem;display:flex;box-shadow:0 20px 60px #0000004d}.admin-confirm h2{color:#b91c1c;margin:0;font-size:1.1rem}.admin-confirm-body p{margin:0 0 .6rem;font-size:.9rem;line-height:1.45}.admin-confirm-body p:last-child{margin-bottom:0}.admin-confirm-swatch{vertical-align:-.1em;border:1px solid #a1a1aa;border-radius:2px;width:.9em;height:.9em;display:inline-block}.admin-confirm-type{color:#52525b;flex-direction:column;gap:.3rem;font-size:.875rem;display:flex}.admin-confirm-type input{font:inherit;padding:.4rem .5rem}.admin-confirm-actions{justify-content:flex-end;gap:.5rem;display:flex}.admin-confirm-actions button[type=button]{font:inherit;cursor:pointer;background:#fff;border:1px solid #d4d4d8;border-radius:5px;padding:.35rem .7rem}.admin-tile .online-list{max-height:18rem}@media (width<=600px){.admin-backdrop{padding:0}.admin-console{border-radius:0;height:100vh}.admin-grid{gap:.75rem;padding:.75rem}}.admin-message{font:inherit;resize:vertical;width:100%;padding:.4rem .5rem}.admin-tile h2{margin:0;font-size:1rem}.admin-corners{grid-template-columns:repeat(4,1fr);gap:.5rem;width:100%;display:grid}.admin-corners label{color:#52525b;flex-direction:column;gap:.2rem;font-size:.75rem;display:flex}.admin-corners input{font:inherit;width:100%;padding:.3rem .4rem}.admin-actions{justify-content:space-between;align-items:center;width:100%;display:flex}.admin-size{color:#52525b;font-size:.875rem}.brand{align-items:center;gap:.75rem;display:flex}.header-button{font:inherit;color:#52525b;white-space:nowrap;cursor:pointer;background:#fff;border:1px solid #e4e4e7;border-radius:999px;align-items:center;gap:.4rem;padding:.25rem .75rem;font-size:.875rem;line-height:1.25;transition:background-color .12s,border-color .12s,color .12s;display:inline-flex}.header-button:hover{color:#18181b;background:#f4f4f5;border-color:#d4d4d8}.header-button[aria-pressed=true],.header-button[aria-expanded=true]{color:#18181b;background:#f4f4f5;border-color:#a1a1aa}.header-button:focus-visible{outline-offset:2px;outline:2px solid #2563eb}.header-button:disabled{opacity:.5;cursor:default}.header-button--dot:before{content:"";background:#16a34a;border-radius:50%;width:.45rem;height:.45rem}.online{position:relative}.online-popover{z-index:10;background:#fff;border:1px solid #e4e4e7;border-radius:6px;flex-direction:column;gap:.5rem;width:16rem;padding:.75rem 1rem;display:flex;position:absolute;top:calc(100% + .5rem);left:0;box-shadow:0 8px 24px #0000001f}.online-popover h2{margin:0;font-size:1rem}.online-note{color:#71717a;margin:0;font-size:.875rem}.online-list{width:100%;max-height:12rem;margin:0;padding:0;font-size:.875rem;list-style:none;overflow-y:auto}.online-list li{flex-wrap:wrap;align-items:baseline;gap:0 .5rem;padding:.25rem 0;display:flex}.online-list li+li{border-top:1px solid #f4f4f5}.online-email,.online-tabs{color:#71717a;font-size:.75rem}.online-tabs{margin-left:auto}.suspect-columns{grid-template-columns:repeat(auto-fit,minmax(min(18rem,100%),1fr));gap:1rem;width:100%;display:grid}.suspect-column{flex-direction:column;align-items:flex-start;gap:.5rem;min-width:0;display:flex}.suspect-heading{margin:.25rem 0 0;font-size:.875rem}.suspect-days{width:3.5rem}.suspect-tag{color:#991b1b;background:#fee2e2;border-radius:.25rem;padding:0 .35rem;font-size:.7rem}.suspect-accounts{width:100%;margin:0;padding:0 0 0 1rem;list-style:none}.suspect-accounts li{padding:.1rem 0}.online-list .suspect-accounts li+li{border-top:none}.pixel-tooltip{z-index:20;pointer-events:none;color:#18181b;background:#fff;border:1px solid #e4e4e7;border-radius:6px;max-width:20rem;padding:.35rem .55rem;font-size:.75rem;line-height:1.4;position:fixed;box-shadow:0 4px 12px #0000001f}.pixel-tooltip-coords{font-variant-numeric:tabular-nums;font-weight:600}.pixel-tooltip-latest,.pixel-tooltip-history li{overflow-wrap:anywhere;align-items:baseline;gap:.35rem;display:flex}.pixel-tooltip-latest{margin-top:.25rem}.pixel-tooltip-history{color:#52525b;border-top:1px solid #e4e4e7;margin:.3rem 0 0;padding:.3rem 0 0;list-style:none}.pixel-tooltip-swatch{border-radius:2px;flex:none;width:.6rem;height:.6rem;box-shadow:0 0 0 1px #0003}.pixel-tooltip-muted{color:#71717a}.pixel-tooltip-error{color:#b91c1c}.chat{z-index:20;background:#fff;border:1px solid #e4e4e7;border-radius:6px;flex-direction:column;width:min(36rem,100vw - 2rem);height:min(24rem,100vh - 10rem);display:flex;position:fixed;bottom:5rem;right:1rem;box-shadow:0 8px 24px #0000001f}.chat-header{border-bottom:1px solid #e4e4e7;justify-content:space-between;align-items:center;padding:.5rem .75rem;display:flex}.chat-header h2{margin:0;font-size:.95rem}.chat-body{flex:1;min-height:0;display:flex}.chat-log{flex:1;min-width:0;margin:0;padding:.5rem .75rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem;line-height:1.45;list-style:none;overflow-y:auto}.chat-line{overflow-wrap:anywhere}.chat-line--notice{color:#71717a}.chat-time{color:#a1a1aa}.chat-name{color:#0369a1;font-weight:600}.chat-badge{vertical-align:.1em;text-transform:uppercase;letter-spacing:.03em;border-radius:.25rem;padding:0 .35rem;font-size:.65rem;font-weight:700;line-height:1.4;display:inline-block}.chat-badge--mod{color:#166534;background:#dcfce7}.chat-badge--admin{color:#991b1b;background:#fee2e2}.chat-badge--owner{color:#9a3412;background:#ffedd5}.chat-mod{gap:.25rem;margin-left:.5rem;display:none}.chat-line:hover .chat-mod,.chat-line:focus-within .chat-mod{display:inline-flex}.chat-mod button{font:inherit;color:#b91c1c;cursor:pointer;background:#fef2f2;border:1px solid #fecaca;border-radius:3px;padding:0 .3rem;font-size:.7rem}.chat-members{border-left:1px solid #e4e4e7;width:9rem;padding:.5rem .75rem;font-size:.8rem;overflow-y:auto}.chat-members h3{color:#71717a;text-transform:uppercase;margin:0 0 .25rem;font-size:.75rem;font-weight:600}.chat-members ul{margin:0;padding:0;list-style:none}.chat-members li{text-overflow:ellipsis;white-space:nowrap;padding:.1rem 0;overflow:hidden}.chat-lurkers{color:#71717a;margin:.25rem 0 0}.chat-error{color:#b91c1c;background:#fef2f2;border-top:1px solid #fecaca;margin:0;padding:.35rem .75rem;font-size:.8rem}.chat-input{border-top:1px solid #e4e4e7;gap:.5rem;padding:.5rem .75rem;display:flex}.chat-input input{min-width:0;font:inherit;border:1px solid #d4d4d8;border-radius:4px;flex:1;padding:.3rem .5rem;font-size:.875rem}@media (width<=480px){.chat-members{display:none}}.history-backdrop{z-index:100;background:#0000008c;place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.history-panel{background:#fff;border-radius:12px;flex-direction:column;width:min(900px,100%);max-height:min(92vh,900px);display:flex;overflow:hidden;box-shadow:0 20px 60px #00000040}.history-header{border-bottom:1px solid #e4e4e7;justify-content:space-between;align-items:flex-start;padding:1rem 1.25rem;display:flex}.history-header h2,.history-header p{margin:0}.history-header p{color:#71717a;margin-top:.25rem;font-size:.875rem}.history-close{cursor:pointer;background:0 0;border:0;font-size:1.6rem}.history-content{padding:1rem 1.25rem;overflow:auto}.history-fields,.history-controls{flex-wrap:wrap;align-items:end;gap:.75rem;display:flex}.history-fields label,.history-crop-fields label{color:#52525b;gap:.25rem;font-size:.8rem;display:grid}.history-fields input,.history-crop-fields input,.history-fields button,.history-controls button,.history-download{font:inherit;background:#fff;border:1px solid #d4d4d8;border-radius:5px;padding:.45rem .6rem}.history-fields button,.history-controls button,.history-download{cursor:pointer}.history-fields button:disabled,.history-download:disabled{opacity:.55;cursor:wait}.history-note{color:#71717a;margin:.75rem 0;font-size:.8rem}.history-presets{flex-wrap:wrap;gap:.4rem;margin-top:.5rem;display:flex}.history-presets button{color:#52525b;cursor:pointer;font:inherit;background:#fff;border:1px solid #e4e4e7;border-radius:999px;padding:.3rem .55rem;font-size:.75rem}.history-error{color:#b91c1c}.history-preview{background:#f4f4f5;border:1px solid #e4e4e7;place-items:center;height:min(42vh,380px);display:grid;overflow:hidden}.history-preview .canvas-wrap{width:100%;height:100%}.history-preview .board{aspect-ratio:auto;width:auto;max-width:min(100%,70vh);height:auto;max-height:100%}.history-preview .board--preview{cursor:default}.history-controls{align-items:center;margin:.7rem 0 1rem}.history-controls input[type=range]{flex:1;min-width:100px}.history-controls span{color:#52525b;font-size:.8rem}.history-export{border-top:1px solid #e4e4e7;flex-wrap:wrap;align-items:center;gap:.75rem;padding-top:.75rem;display:flex}.history-check{align-items:center;gap:.4rem;font-size:.875rem;display:flex}.history-crop-fields{flex-wrap:wrap;gap:.5rem;display:flex}.history-crop-fields input{width:5.5rem}.history-download{color:#fff;background:#18181b;border-color:#18181b;margin-left:auto}.history-export small{color:#71717a;flex-basis:100%}.history-snapshot{border-bottom:1px solid #e4e4e7;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:.9rem;padding-bottom:.9rem;display:flex}.history-snapshot>div{flex-direction:column;font-size:.875rem;display:flex}.history-snapshot>div span{color:#71717a;font-size:.8rem}.history-snapshot label{color:#52525b;align-items:center;gap:.4rem;font-size:.875rem;display:flex}.history-snapshot select{font:inherit;border:1px solid #d4d4d8;border-radius:6px;padding:.3rem .4rem}@media (width<=600px){.history-backdrop{padding:0}.history-panel{border-radius:0;height:100vh;max-height:100vh}.history-content,.history-header{padding:.75rem}.history-fields label{flex:40%}.history-fields input{width:100%;min-width:0}.history-download{margin-left:0}}.legal{background:#fff;min-height:100vh}.legal .legal-home{color:inherit;text-decoration:none}.legal-body{max-width:42rem;margin:0 auto;padding:1.5rem 1rem 3rem;line-height:1.6}.legal-body h2{margin-bottom:.25rem}.legal-body h3{margin:1.75rem 0 .5rem;font-size:1.125rem}.legal-body ul{padding-left:1.25rem}.legal-body li+li{margin-top:.5rem}.legal-updated{color:#71717a;margin-top:0;font-size:.875rem}.legal-links{border-top:1px solid #e4e4e7;gap:1rem;margin-top:2rem;padding-top:1rem;font-size:.875rem;display:flex}.legal-links a,.legal a{color:#2563eb}.footer-legal{gap:.75rem;font-size:.75rem;display:flex}.footer-legal a{color:#71717a}.login-legal{color:#71717a;flex-basis:100%;margin:0;font-size:.75rem}.login-legal a{color:inherit}
