/* Canvas navigation lives in screen coordinates; only the artwork layer zooms. */
.gn-rail,.gn-drawer,.gn-menu,.gn-map{
  --gn-ink:#273c30;--gn-soft:#edf3ed;--gn-line:#d6dfd6;--gn-muted:#5e7063;
  color:var(--gn-ink);background:#fff;border:1px solid var(--gn-line);
  box-shadow:0 7px 24px #263d3110,0 2px 5px #263d3109
}
.gn-rail{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);z-index:3;
  display:flex;flex-direction:column;align-items:stretch;gap:3px;padding:5px;
  border-radius:17px;max-height:calc(100% - 85px);overflow:auto;scrollbar-width:thin
}
.gn-rail-btn{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  gap:5px;border-radius:11px;min-width:48px;min-height:48px;padding:6px 3px;
  color:var(--gn-muted);font-size:12px;line-height:1.16;letter-spacing:.01em
}
.gn-rail-btn:hover,.gn-rail-btn[aria-expanded=true]{background:var(--gn-soft);color:#205538}
.gn-rail-btn:first-child{background:#355b45;color:#fff;margin-bottom:3px}
.gn-rail-btn:first-child:hover,.gn-rail-btn:first-child[aria-expanded=true]{background:#254b35}
.gn-rail-btn:last-child{border-top:1px solid #e8eee8;margin-top:1px;border-top-left-radius:3px;border-top-right-radius:3px}
.gn-rail-btn .gn-icon{display:block}
.gn-icon{position:relative;display:inline-block;box-sizing:border-box;flex:none;width:18px;height:18px;color:inherit}
.gn-icon::before,.gn-icon::after{content:"";position:absolute;box-sizing:border-box}
.gn-i-plus::before,.gn-i-close::before{width:14px;height:2px;top:8px;left:2px;background:currentColor;border-radius:3px}
.gn-i-plus::after,.gn-i-close::after{height:14px;width:2px;left:8px;top:2px;background:currentColor;border-radius:3px}
.gn-i-close{transform:rotate(45deg) scale(.85)}
.gn-i-workflows{background:linear-gradient(currentColor,currentColor) 4px 4px/1.5px 10px no-repeat,linear-gradient(currentColor,currentColor) 4px 12px/9px 1.5px no-repeat}
.gn-i-workflows::before,.gn-i-workflows::after{width:8px;height:7px;border:1.7px solid currentColor;border-radius:2px;background:#fff}
.gn-i-workflows::before{top:0;left:1px}.gn-i-workflows::after{bottom:1px;right:0}
.gn-i-assets::before{left:1px;top:5px;width:16px;height:12px;border:1.6px solid currentColor;border-radius:2px}
.gn-i-assets::after{left:2px;top:2px;width:8px;height:5px;border:1.6px solid currentColor;border-bottom:0;border-top-left-radius:2px;transform:skewX(16deg)}
.gn-i-clock{border:1.6px solid currentColor;border-radius:50%}
.gn-i-clock::before{height:6px;width:1.6px;background:currentColor;top:2px;left:6.5px}
.gn-i-clock::after{height:1.6px;width:5px;background:currentColor;top:7px;left:7px;transform:rotate(32deg);transform-origin:left}
.gn-i-keyboard{height:13px;border:1.6px solid currentColor;border-radius:3px;margin:2px 0 3px}
.gn-i-keyboard::before{top:2px;left:2px;right:2px;height:5px;background:repeating-linear-gradient(90deg,currentColor 0 1.5px,transparent 1.5px 3px) 0 0/100% 1.5px no-repeat,repeating-linear-gradient(90deg,currentColor 0 1.5px,transparent 1.5px 3px) 0 3px/100% 1.5px no-repeat}
.gn-i-keyboard::after{top:8px;left:5px;width:5px;height:1.5px;background:currentColor}
.gn-i-map{height:15px;width:18px;border:1.6px solid currentColor;transform:skewY(-8deg);border-radius:3px}
.gn-i-map::before,.gn-i-map::after{left:4px;top:0;bottom:0;width:1px;background:currentColor;opacity:.8}
.gn-i-map::after{left:10px}
.gn-i-search::before{left:1px;top:1px;width:11px;height:11px;border:1.6px solid currentColor;border-radius:50%}
.gn-i-search::after{left:11px;top:11px;background:currentColor;height:1.6px;width:6px;transform-origin:left;transform:rotate(45deg)}
.gn-i-image{border:1.6px solid currentColor;border-radius:3px;overflow:hidden}
.gn-i-image::before{width:12px;height:12px;left:2px;top:9px;border:1.6px solid currentColor;transform:rotate(45deg)}
.gn-i-image::after{height:3px;width:3px;top:3px;right:2px;border-radius:50%;background:currentColor}
.gn-i-play::before{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:11px solid currentColor;top:2px;left:4px}
.gn-i-audio{background:linear-gradient(currentColor,currentColor) left center/2px 6px no-repeat,linear-gradient(currentColor,currentColor) 4px center/2px 12px no-repeat,linear-gradient(currentColor,currentColor) 8px center/2px 18px no-repeat,linear-gradient(currentColor,currentColor) 12px center/2px 10px no-repeat,linear-gradient(currentColor,currentColor) right center/2px 5px no-repeat}
.gn-i-text{border:1.6px solid currentColor;border-radius:2px;width:13px;height:16px;background:repeating-linear-gradient(0deg,transparent 0 3px,currentColor 3px 4px) center/7px 9px no-repeat}
.gn-overlays{position:absolute;inset:0;z-index:8;pointer-events:none}
.gn-overlays>*{pointer-events:auto}
.gn-menu{position:absolute;display:flex;flex-direction:column;min-width:164px;max-width:calc(100% - 12px);max-height:calc(100% - 12px);overflow:auto;border-radius:13px;padding:5px}
.gn-menu-item{display:block;border-radius:8px;padding:9px 13px;text-align:left;font-size:14px;line-height:1.35}
.gn-menu-item:hover,.gn-menu-item:focus-visible{background:var(--gn-soft);outline-offset:-2px}
.gn-menu-item:disabled{opacity:.38;cursor:default}
.gn-drawer{position:absolute;left:84px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;width:min(340px,calc(100% - 100px));max-height:calc(100% - 94px);border-radius:18px;overflow:hidden}
.gn-heading,.gn-map>header{display:flex;align-items:center;justify-content:space-between}
.gn-heading{padding:15px 15px 8px 18px}
.gn-heading h2{margin:0;color:var(--gn-ink);font-size:18px;font-weight:650;line-height:1.3}
.gn-round{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:8px;padding:0;color:var(--gn-muted)}
.gn-round:hover,.gn-map-button[aria-expanded=true]{background:#edf3ed;color:#294f37}
.gn-search{display:flex;align-items:center;gap:8px;margin:0 14px 10px;padding:0 9px;background:#f7f9f6;border:1px solid #dfe6df;border-radius:9px;color:#6d7e71}
.gn-search:focus-within{border-color:#59866a;outline:1px solid #59866a}
.gn-search input{min-width:0;flex:1;width:0;height:36px;border:0;border-radius:0;outline:none;background:transparent;color:var(--gn-ink);padding:0;box-shadow:none;font-size:14px}
.gn-search input:focus{outline:0;border:0;box-shadow:none}
.gn-library-list{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 8px 7px;scrollbar-width:thin}
.gn-empty{margin:0;padding:30px 8px 36px;text-align:center;color:var(--gn-muted);font-size:14px}
.gn-library-row{display:flex;align-items:center;gap:6px;padding:4px 5px;border-radius:10px}
.gn-library-row:hover,.gn-library-row.gn-selected{background:#f1f6f1}
.gn-checkbox{width:16px;height:16px;flex:none;accent-color:#376348}
.gn-item{display:flex;align-items:center;gap:10px;min-width:0;flex:1;text-align:left;padding:2px 3px}
.gn-thumbnail{position:relative;display:grid;place-items:center;flex:none;width:46px;height:44px;border-radius:7px;overflow:hidden;background:#e6eee4;color:#5d7b64}
.gn-thumbnail img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gn-caption{display:grid;gap:3px;min-width:0}
.gn-caption strong,.gn-caption small{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
.gn-caption strong{font-size:14px;font-weight:600}.gn-caption small{font-size:12px;color:var(--gn-muted)}
.gn-remove{width:25px;height:25px;flex:none}
.gn-library-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #e1e8e2;padding:10px 13px}
.gn-selection,.gn-footer-actions{display:flex;align-items:center;gap:6px}
.gn-link{padding:4px 0;font-size:13px;color:#2c6843}
.gn-amount{font-size:12px;color:var(--gn-muted)}
.gn-primary,.gn-secondary{padding:6px 9px;border-radius:7px;font-size:13px}
.gn-primary{background:#345e43;color:#fff}.gn-secondary{border:1px solid #cbd8cb}
.gn-library-footer button:disabled{opacity:.45;cursor:default}
.gn-shortcuts{display:grid;gap:0;overflow:auto;padding:0 16px 10px;margin:0}
.gn-shortcut{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #edf0ec}
.gn-shortcut dt{font-size:14px}
.gn-shortcut dd{margin:0;display:flex;align-items:center;gap:3px}
.gn-shortcut kbd{display:block;padding:2px 5px;color:#4c6052;background:#f6f8f5;border:1px solid #d8e0d7;border-bottom-width:2px;border-radius:5px;font-family:inherit;font-size:12px;line-height:1.35}
.gn-map{position:absolute;z-index:3;bottom:67px;right:16px;width:188px;padding:5px;border-radius:12px}
.gn-map>header{padding:1px 3px 3px 6px}
.gn-map strong{font-size:13px;font-weight:600}
.gn-map .gn-round{width:23px;height:23px}
.gn-map canvas{display:block;width:100%;height:104px;border-radius:7px;background:#f3f6f1;touch-action:none;cursor:grab}
.gn-map canvas:active{cursor:grabbing}
#studio>.gn-map-button{position:absolute;bottom:16px;right:16px;display:grid;place-items:center;width:35px;height:35px;border:1px solid #d5ded6;border-radius:10px;background:#fff}
.gn-alert{position:absolute;z-index:11;top:14px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);border:1px solid #e2cdc3;border-radius:10px;background:#fff8f3;padding:8px 12px;color:#703f2e;font-size:14px}
.gn-map[hidden],.gn-alert[hidden],.gn-secondary[hidden]{display:none}
@media(max-width:700px){
  .gn-rail{left:7px;top:13px;transform:none;gap:1px;padding:3px;border-radius:13px}
  .gn-rail-btn{min-width:37px;min-height:38px;gap:2px;font-size:11px}
  .gn-rail-btn .gn-icon{transform:scale(.9)}
  .gn-drawer{left:56px;width:calc(100% - 64px);top:9px;transform:none;max-height:calc(100% - 66px);border-radius:14px}
  .gn-map{right:6px;bottom:50px;width:156px}.gn-map canvas{height:86px}
  .gn-library-footer{flex-wrap:wrap}
}
@media(max-height:450px){
  .gn-rail{top:6px;transform:none;max-height:calc(100% - 60px)}
  .gn-rail-btn{min-height:29px;min-width:31px;padding:3px}
  .gn-rail-btn>span:not(.gn-icon){display:none}
  .gn-drawer{top:6px;transform:none;max-height:calc(100% - 56px)}
}
.gn-preview-button{flex:none;width:28px;height:28px}
.gn-i-eye::before{inset:4px 1px;border:1.5px solid currentColor;border-radius:75% 18%;transform:rotate(45deg)}
.gn-i-eye::after{top:7px;left:7px;width:4px;height:4px;background:currentColor;border-radius:50%}
.gn-preview{border:1px solid #c6d4c8;border-radius:16px;background:#fcfefb;color:#293f31;width:max-content;max-width:min(860px,94vw);max-height:90dvh;padding:0 0 12px}
.gn-preview::backdrop{background:#18251ec2}
.gn-preview .gn-heading{padding:10px 12px;gap:16px}
.gn-preview h2{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gn-preview>img,.gn-preview>video{display:block;max-width:100%;max-height:calc(90dvh - 65px);object-fit:contain;margin:auto}
.gn-preview>audio{display:block;max-width:100%;margin:auto}
