*{box-sizing:border-box}body{margin:0;color:#142645;background:#f3f7fd;font:16px system-ui,sans-serif}button,input,textarea{font:inherit;color:inherit}button{cursor:pointer;border:1px solid transparent;background:white;border-radius:9px;padding:8px 12px}button:hover{background:#e8f0ff}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #245abb;outline-offset:2px}header{height:66px;position:fixed;inset:0 0 auto;z-index:2;background:white;display:flex;align-items:center;gap:12px;padding:0 22px;border-bottom:1px solid #dce5f3}.brand{display:flex;align-items:center;gap:9px;font-size:20px;font-weight:750;border-right:1px solid #dce5f3;padding-right:18px}.brand b{display:grid;place-items:center;background:#1c4194;color:#c9e0ff;width:32px;height:32px;border-radius:9px}#title{width:min(28vw,350px);min-width:65px;border:0;border-radius:5px;padding:6px;font-weight:600}#status{margin-left:auto;color:#4e6283;font-size:13px}.primary{background:#1d4ca6;color:white}.primary:hover{background:#2455ad}#export,#import{border-color:#d9e5f8}#board{position:fixed;inset:66px 0 0;overflow:hidden;touch-action:none;background-image:radial-gradient(#a9bcda 1px,transparent 1px);background-size:22px 22px}#world{position:absolute;transform-origin:0 0}#ink{position:absolute;width:1px;height:1px;overflow:visible;pointer-events:none}#cards{position:absolute}.item{position:absolute;width:220px;border-radius:10px;box-shadow:0 5px 14px #24417c22;overflow:hidden;background:white;border:1px solid #2439601c;color:#172d55}.item.selected{outline:2px solid #275cba}.handle{height:28px;padding:2px 12px;cursor:grab;font-size:14px;color:#3d557c;background:#ffffff48;user-select:none}.item textarea{resize:none;background:transparent;border:0;width:100%;height:142px;padding:10px 13px;display:block;line-height:1.45}.item img{display:block;width:100%;max-height:250px;object-fit:contain;pointer-events:none}.item a{display:block;padding:14px;overflow-wrap:anywhere;color:#174998}nav,aside,.bottom{position:fixed;z-index:1;padding:6px;background:white;border:1px solid #dbe5f4;border-radius:13px;box-shadow:0 5px 20px #1a3d7b14;display:flex;gap:4px}nav{top:86px;left:16px;flex-direction:column}nav button{width:42px;height:40px;padding:0;font-size:23px}nav button[aria-pressed=true]{background:#dceaff;color:#18429b}aside{top:86px;left:80px}aside button{width:27px;height:27px;padding:0;border-radius:50%;background:var(--color)}aside button[aria-pressed=true]{outline:2px solid #284b88;outline-offset:2px}aside[hidden]{display:none}.bottom{bottom:18px;right:18px}.bottom button{padding:6px 9px}footer{position:fixed;bottom:24px;left:20px;color:#4e6283;font-size:13px;pointer-events:none}dialog{width:min(510px,92vw);border:0;border-radius:18px;padding:26px;color:inherit;box-shadow:0 20px 70px #132a5844}dialog::backdrop{background:#152d5855}.close{float:right}h2{margin:0 0 20px}@media(max-width:760px){footer,#status{display:none}header{padding:0 9px;gap:5px}.brand{font-size:0;padding-right:5px}#title{margin-right:auto}header button{font-size:13px;padding:8px}nav{left:8px}aside{left:66px}}
#minimap{position:fixed;right:18px;bottom:72px;width:190px;height:122px;background:#f7faff;border:1px solid #dbe5f4;border-radius:12px;box-shadow:0 5px 20px #1a3d7b14;cursor:crosshair}#mapToggle[aria-pressed=true]{background:#dceaff}@media(max-width:420px){.bottom{right:8px;bottom:10px;gap:2px}.bottom button{padding:6px}}
#boardList{display:grid;gap:8px;margin-top:16px}#boardList button{background:#eff5ff;text-align:left;overflow-wrap:anywhere}#boardList [aria-current=true]{border-color:#245abb}#share p{line-height:1.5}#shareError:empty{display:none}@media(max-width:420px){#title{flex:1;width:0}header button{padding:6px}}
#library{position:fixed;inset:0;margin:0;width:100%;height:100%;max-width:none;max-height:none;border-radius:0;padding:0;background:#f3f7fd}.libraryHeader{display:flex;align-items:center;justify-content:space-between;padding:14px clamp(16px,5vw,72px);background:white;border-bottom:1px solid #dce5f3}.libraryHeader .brand{border:0;font-size:20px}.libraryContent{margin:auto;max-width:1200px;padding:clamp(22px,6vw,72px)}.libraryContent h1{font-size:clamp(32px,6vw,54px);letter-spacing:-.05em;margin:0 0 24px}.libraryActions{display:flex;flex-wrap:wrap;gap:10px}.libraryActions input{flex:1;min-width:150px;border:1px solid #c8d6ee;border-radius:9px;padding:9px 12px;background:#fff}#boardList{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:16px;margin-top:26px}#boardList button{background:white;border-color:#dbe5f4;padding:10px 10px 14px;font-weight:650}#boardList button:hover{background:#e8f0ff}.boardPreview{display:grid;grid-template-columns:repeat(3,22px);grid-template-rows:repeat(3,17px);gap:4px;place-content:center;height:100px;background:#ecf3ff;background-image:radial-gradient(#a9bcda 1px,transparent 1px);background-size:12px 12px;border-radius:7px;margin-bottom:12px}.boardPreview i{display:block;border:1px solid #34538833;border-radius:3px}#ink g.selected{filter:drop-shadow(0 0 2px #255dc6) drop-shadow(0 0 2px #255dc6)}
.item:not(.frame){z-index:1}.item.frame{background:transparent!important;border:2px solid #8ba9db;box-shadow:none;pointer-events:none;overflow:visible}.frame .handle,.frame textarea{pointer-events:auto}.frame textarea{width:min(100%,220px);height:34px;padding:4px 10px;background:#fff;font-weight:650}.frame .handle{width:max-content;background:#e3edff}.rubberBand{position:absolute;z-index:3;pointer-events:none;border:1px solid #2a65ca;background:#5186dc2c}#frameEntries{display:grid;gap:8px}#frameEntries button{text-align:left;background:#eff5ff}
#startShow{margin-top:16px}#presentation{position:fixed;z-index:3;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:8px;background:white;border:1px solid #dbe5f4;border-radius:14px;max-width:96vw;width:max-content;box-shadow:0 5px 20px #1a3d7b14}#presentation[hidden]{display:none}#slideLabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#exitShow{background:#e8f0ff}.presenting :is(header,nav,aside,.bottom,footer,#minimap){display:none}.presenting #board{inset:0;background-color:#f7faff;background-image:none;pointer-events:none}.presenting .frame .handle{visibility:hidden}@media(max-width:500px){.bottom{max-width:calc(100vw - 16px);flex-wrap:wrap;justify-content:flex-end}#status{display:none}header #title{min-width:45px}}
#arrangeEntries{display:grid;gap:8px}#arrangeEntries button{text-align:left;background:#eff5ff}button:disabled{cursor:default}
#quickQuery{width:100%;padding:10px 12px;border:1px solid #c8d6ee;border-radius:9px}#quickResults{display:grid;gap:5px;margin-top:12px;max-height:48vh;overflow:auto}#quickResults button{text-align:left;background:#eff5ff;overflow-wrap:anywhere}.item.locked .handle{cursor:default}.item.locked .handle::after{content:' · 🔒'}
#links{position:absolute;width:1px;height:1px;overflow:visible;pointer-events:none}#links path{fill:none;stroke:#486ba5;stroke-width:3;pointer-events:stroke;cursor:pointer}#links path.selected{stroke:#3975df;stroke-width:5}.item.linkStart{outline:3px dashed #285bbb}.resizeGrip{display:none;position:absolute;z-index:2;right:0;bottom:0;width:20px;height:20px;background:#245bcc;clip-path:polygon(100% 0,100% 100%,0 100%);cursor:nwse-resize}.item.selected .resizeGrip{display:block}.item:not(.frame) textarea{height:calc(100% - 28px);min-height:0}.item:not(.frame){min-height:66px}.item:not(.frame):not([style*="height"]) textarea{height:142px}.item img{max-height:calc(100% - 56px)}.item[data-shape=ellipse],.item[data-shape=diamond]{background:none!important;isolation:isolate;border:0;box-shadow:none}.item[data-shape=ellipse]::before,.item[data-shape=diamond]::before{content:'';position:absolute;inset:0;z-index:-1;background:var(--shape-fill,#a7c6ff)}.item[data-shape=ellipse]::before{border-radius:50%}.item[data-shape=diamond]::before{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.item[data-shape=ellipse] .handle,.item[data-shape=diamond] .handle{background:none}.item[data-shape=ellipse] textarea,.item[data-shape=diamond] textarea{text-align:center;padding:20px 27% 0}#toolOptions{position:fixed;left:80px;top:134px;z-index:1;background:white;border:1px solid #dbe5f4;border-radius:10px;padding:7px 10px;font-size:14px}#toolOptions select{font:inherit}.objectColors{display:flex;gap:8px;align-items:center;padding:5px}.objectColors button{width:28px;height:28px;border-radius:50%;padding:0}
.frameRow{display:flex;gap:5px;align-items:center}.frameRow input{min-width:0;flex:1;padding:8px;border:1px solid #c8d6ee;border-radius:8px}.frameRow button{padding:8px}.openTile{display:block;width:100%}.tileControls{display:flex;gap:6px;justify-content:space-between;margin-top:5px}#boardList .tileControls button{padding:5px 9px}#favoritesOnly[aria-pressed=true],#boardList .tileControls [aria-pressed=true]{background:#f9edb9}#commentPins{position:absolute;z-index:4}.commentPin{position:absolute;transform:translate(-50%,-50%);width:31px;height:31px;padding:0;border-radius:50%;background:#254680;color:white}.commentPin:hover{background:#3d64aa}.commentPin.resolved{background:#657ca6}#commentMessages{padding-left:25px;max-height:35vh;overflow:auto}#commentMessages li{padding:7px;white-space:pre-wrap;overflow-wrap:anywhere}#commentForm textarea{width:100%;min-height:85px;display:block;margin:7px 0;padding:8px}#resolveComment{margin-top:10px}.presenting :is(#commentPins,#toolOptions){display:none}
#tools{max-height:calc(100dvh - 160px);overflow-y:auto}#tools button{flex:none}
#palette,.objectColors{flex-wrap:wrap}#palette{max-width:calc(100vw - 86px);z-index:2}#palette button,.objectColors button{border-color:#c8d6ee}.customColor{position:relative}.customColor summary{cursor:pointer;padding:4px 6px;font-size:13px;white-space:nowrap}.customColor>div{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:8px;border:1px solid #dbe5f4;border-radius:9px;background:#fff}.customColor input[type=text]{width:86px;padding:4px;border:1px solid #c8d6ee;border-radius:6px}.customColor input[type=color]{width:34px;height:32px;padding:2px}.customColor div button{width:auto;height:auto;border-radius:7px;background:#eff5ff;padding:5px}.objectColors .customColor{flex-basis:100%}#palette .customColor>div{position:absolute;right:0;top:100%;width:220px;max-width:calc(100vw - 86px);box-shadow:0 5px 20px #1a3d7b14}#palette .customColor{position:static}
.uiIcon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex:none}.brand .uiIcon{width:24px;height:24px}#tools button{display:grid;place-items:center}#tools .uiIcon{width:22px;height:22px}.bottom .uiIcon,#presentation .uiIcon,.frameRow .uiIcon,.tileControls .uiIcon{width:17px;height:17px}.tileControls [aria-pressed=true] .uiIcon{fill:#e8b342}.close:has(.uiIcon){padding:6px}.bottom button:disabled .uiIcon{opacity:.35}
.sgoIcon{width:34px;height:34px;object-fit:cover;border-radius:9px}.accountActions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.accountActions form{margin:0}.stackForm{display:grid;gap:12px}.stackForm label{display:grid;gap:5px}.stackForm input,.accessLink input{width:100%;min-width:0;padding:9px;border:1px solid #c8d6ee;border-radius:8px}.stackForm p:empty,#libraryError:empty,#accessError:empty{display:none}#loginDialog .brand{margin-bottom:22px;border:0}#accessList{display:grid;gap:9px;max-height:35vh;overflow:auto}.accessLink{margin-top:16px;display:flex;gap:5px}#cloudWarning{position:fixed;z-index:4;top:68px;right:14px;max-width:calc(100% - 100px);padding:10px;background:#fff3cf;border:1px solid #e1ae51;border-radius:9px}.presenting #cloudWarning{display:none}#boardList .boardPreview .uiIcon{grid-area:2 / 2;width:24px;height:24px;color:#3567be}#status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:940px){header .brand{font-size:0;gap:0}}@media(max-width:590px){.accountActions span{display:none}header button{padding:6px;font-size:12px}header{gap:3px;padding:0 5px}header .brand{padding-right:3px}header .sgoIcon{width:24px;height:24px}}
#remoteCursors{position:absolute;z-index:5;pointer-events:none}.remoteCursor{position:absolute;display:flex;align-items:flex-start;width:max-content;color:var(--cursor-color)}.remoteCursor .uiIcon{fill:currentColor;stroke:#fff;filter:drop-shadow(0 1px 2px #18364c55)}.remoteCursor span{margin-top:14px;margin-left:-5px;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--cursor-color);color:white;border-radius:5px;padding:3px 6px;font-size:12px}#presenceStatus{font-size:13px;color:#4e6283;white-space:nowrap}.presenting #remoteCursors{display:none}@media(max-width:680px){#presenceStatus{position:fixed;top:70px;right:8px;background:white;padding:4px;border-radius:6px}}
.actionLink{display:inline-block;padding:9px 12px;border-radius:9px;text-decoration:none}#loginError:empty{display:none}
