/* Native Lumior Mac proportions: 40px tabs, 52px rail, 280px board list.
   1600 × 1000 reference artboard. The containing frame scales only the complete
   illustration; HTML typography and SVG graphics stay resolution independent. */
@font-face{font-family:SceneInter;src:url('./assets/InterVariable.woff2') format('woff2');font-weight:100 900;font-display:swap}
*{box-sizing:border-box}
html,body{margin:0;width:100%;min-height:100%;background:#191a1b;color:#ffffffd9;font-family:-apple-system,BlinkMacSystemFont,SceneInter,sans-serif;-webkit-font-smoothing:antialiased}
html{overflow:hidden}
body{display:grid;place-items:center;overflow:hidden}
.scene-frame{position:relative;width:100%;aspect-ratio:8/5;overflow:hidden;background:#191a1b}
.mac-window{position:absolute;left:0;top:0;width:1600px;height:1000px;overflow:hidden;background:#191a1b;transform:scale(var(--scene-scale,1));transform-origin:0 0;user-select:none}
.glyph{display:block;width:20px;height:20px;flex:none;object-fit:contain;pointer-events:none}
.window-tabs{display:flex;align-items:center;width:100%;height:40px;color:#ffffff99;font-size:12px;line-height:20px}
.tabs-navigation{position:relative;display:flex;align-items:center;gap:12px;width:332px;flex:0 0 332px;height:40px;padding-left:92px}
.tabs-navigation:after{position:absolute;right:0;top:12px;content:'';width:1px;height:16px;background:#ffffff1a}
.tabs-navigation>span{display:grid;place-items:center;width:24px;height:24px}
.tabs-navigation .glyph{width:16px;height:16px}
.traffic-lights{position:absolute;left:20px;top:14px;display:flex;gap:8px}
.traffic-lights i{width:12px;height:12px;border-radius:50%;box-shadow:inset 0 0 0 1px #0002;background:#ff5f57}
.traffic-lights i:nth-child(2){background:#febc2e}.traffic-lights i:nth-child(3){background:#28c840}
.history-icon{opacity:.35}.forward{transform:scaleX(-1)}
.board-tab{display:flex;align-items:center;gap:8px;width:228px;height:32px;padding:0 12px;margin:4px 8px;background:#ffffff16;border-radius:8px;color:#ffffffcc}
.board-tab>.glyph{width:16px;height:16px}.board-tab>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-tab{display:grid;place-items:center;width:24px;height:24px}.new-tab svg{width:16px;height:16px}
.workspace-body{display:flex;height:960px;padding-right:8px;padding-bottom:8px}
.workspace-sidebar{display:flex;width:332px;flex:none;height:100%;color:#ffffff99}
.workspace-rail{display:flex;align-items:center;flex-direction:column;gap:12px;position:relative;width:52px;flex:none;height:100%;padding-top:14px}
.rail-item{display:grid;place-items:center;width:32px;height:32px;border-radius:12px}.rail-item.selected{background:#ffffff1a}
.rail-menu{display:grid;place-items:center;width:32px;height:32px;border-radius:12px;margin-top:auto;background:#0d0d0d}
.rail-menu img{display:block;width:24px;height:24px;object-fit:contain;border-radius:6px}
.board-panel{width:280px;height:100%;background:#0d0d0dcc;border-right:1px solid #ffffff0a;border-radius:16px 0 0 16px}
.board-actions{display:grid;grid-template-columns:minmax(0,1fr) 32px;align-items:center;gap:8px;height:32px;margin:12px 8px 0}
.search-field,.new-board{height:32px;display:flex;align-items:center;border:1px solid #ffffff1a;border-radius:12px;background:#191919e6;color:#ffffff99}
.search-field{justify-content:space-between;gap:8px;padding:0 5px 0 11px;font-size:12px;line-height:18px}
.shortcut{display:flex;align-items:center;justify-content:center;gap:2px;min-width:32px;height:20px;border-radius:6px;background:#ffffff1a}
.shortcut .glyph{width:14px;height:14px}.new-board{justify-content:center}.new-board .glyph{width:16px;height:16px}
.board-list{margin-top:24px;padding:0 8px}.list-label{margin:0 8px 4px;font-size:12px;line-height:20px;color:#ffffff66;font-weight:400}
.recent-board{display:flex;align-items:center;min-width:0;height:32px;padding:0 8px;border-radius:12px;font-size:14px;line-height:20px}
.recent-board.active{background:#ffffff1a;color:#ffffffcc}.recent-board>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.workspace{position:relative;flex:1;min-width:0;height:100%;overflow:hidden;background:#0d0d0d;border-radius:0 16px 16px 0}
.workspace-heading{position:absolute;inset:0 0 auto;z-index:10;display:flex;align-items:flex-start;gap:8px;height:64px;padding:0 8px;font-size:14px;line-height:20px;color:#fff;background:linear-gradient(180deg,#0e0e0ed1,transparent)}
.workspace-heading>span{display:block;margin-top:12px;padding:6px 4px;font-weight:600;max-width:calc(100% - 140px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-actions{display:flex;align-items:center;gap:8px;height:40px;margin-top:8px;margin-left:auto;padding:4px;border-radius:16px;background:#191919e6}
.header-actions>span{display:grid;place-items:center;width:32px;height:32px;padding:6px}.header-actions .glyph{filter:brightness(0) invert(1);opacity:.6}
.canvas{position:absolute;inset:0;background-image:radial-gradient(circle,#ffffff1b .55px,transparent .9px);background-size:20.16px 20.16px;background-position:0 0}
.world{position:absolute;left:40.8px;top:102px;width:3800px;height:2600px;transform:scale(.32);transform-origin:0 0}
.canvas-section{position:absolute;z-index:0;border:1px solid color-mix(in srgb,var(--section-color) 24%,transparent);border-radius:8px;background:color-mix(in srgb,var(--section-color) 9%,transparent)}
.section-label{position:absolute;left:-1px;bottom:calc(100% + 25px);display:flex;align-items:center;white-space:nowrap;height:24px;padding:2px 8px;margin:0;border-radius:8px;background:color-mix(in srgb,var(--section-color) 24%,#151515);color:color-mix(in srgb,var(--section-color) 40%,white);font-size:14px;line-height:20px;font-weight:600;transform:scale(3.125);transform-origin:bottom left}
.connections{position:absolute;left:0;top:0;width:1px;height:1px;overflow:visible;z-index:1}
.connections path{fill:none;stroke:#8a929d;stroke-width:3;vector-effect:non-scaling-stroke}
.card{position:absolute;z-index:2;border:1px solid #ffffff14;border-radius:16px;background:#191919;color:#ffffffd9}
.type-label{position:absolute;left:0;top:-24px;max-width:100%;display:flex;align-items:center;gap:5px;height:18px;color:#ffffff99;font-size:12px;line-height:18px;white-space:nowrap}
.type-label .glyph{width:12px;height:12px;opacity:.75;filter:brightness(0) invert(1)}
.type-label>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-note{padding:16px 24px}.card-inner{height:100%;overflow:hidden;overflow-wrap:anywhere}.card-note h2{margin:0 0 12px;font-size:24px;font-weight:600;line-height:31px;letter-spacing:-.7px;color:#fafafa}
.note-body{font-size:14px;line-height:21px}.note-body p{margin:0;padding:2px 0;white-space:normal}.note-body p+p{margin-top:12px}.note-body h3{margin:8px 0;font-size:18px;line-height:25.2px;letter-spacing:0}.note-body strong{font-weight:600}.content-link{color:#b8d6f0;text-decoration:underline;text-underline-offset:2px}
.card-text{padding:0;background:transparent;border-color:transparent}.canvas-title{height:100%;overflow:hidden;padding:8px;font-size:64px;line-height:1.2;letter-spacing:1px;font-weight:600;white-space:pre-wrap;color:#fafafa}
.card-pdf{height:auto!important}.paper-preview{border-radius:15px;overflow:hidden;background:white}.paper-preview>img{display:block;width:100%;height:auto}
.card-image{height:auto!important;padding:0}.image-content{overflow:hidden;border-radius:15px}.image-content>img{display:block;width:100%;height:auto}.image-content>p{margin:0;padding:10px 12px 12px;color:#fff;font-size:14px;line-height:20px;white-space:pre-wrap;overflow-wrap:anywhere}
.card-video{padding:0}.video-picture{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:15px}.video-picture>img{display:block;width:100%;height:100%;object-fit:cover}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#1119;color:white}.video-play>svg{width:20px;height:20px}
.video-duration{position:absolute;right:10px;bottom:10px;padding:3px 5px;font-size:11px;line-height:14px;background:#000b;border-radius:4px;color:white;font-variant-numeric:tabular-nums}
.video-caption{padding:10px 12px}.video-caption h2{font-size:14px;line-height:20px;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600;color:#fafafa}.video-caption p{font-size:12px;line-height:16px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffffff99}
.edge-label{position:absolute;z-index:5;max-width:264px;min-height:28px;padding:4px 10px;border:1px solid #ffffff20;border-radius:7px;background:#202020;color:#c7c7c7;font-size:12px;font-weight:500;line-height:18px;box-shadow:0 2px 8px #0003;white-space:nowrap;transform:translate(-50%,-50%) scale(3.125);transform-origin:center}
.canvas-tools{position:absolute;z-index:11;left:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;flex-direction:column;gap:8px;width:48px;height:208px;padding:7px 0;border:1px solid #ffffff14;border-radius:24px;background:#191919}
.canvas-tools>span{display:grid;place-items:center;width:32px;height:32px;flex:none}.canvas-tools .glyph{opacity:.6;filter:brightness(0) invert(1)}.canvas-tools .add-tool{border-radius:50%;background:#fff}.canvas-tools .add-tool .glyph{filter:none;opacity:1}
.bottom-controls{position:absolute;z-index:11;left:8px;bottom:8px;display:flex;align-items:center;gap:8px}.zoom{display:flex;align-items:center;gap:4px;width:121px;height:40px;padding:4px;border-radius:16px;background:#191919e6;color:#ffffff99;font-size:14px;line-height:20px}.zoom>span{display:grid;place-items:center;width:32px;height:32px;flex:none}.zoom>.zoom-number{width:41px}.zoom .glyph{width:16px;height:16px;filter:brightness(0) invert(1);opacity:.6}
.flashlight{display:grid;place-items:center;width:40px;height:40px;padding:10px;border-radius:16px;background:#191919e6}.flashlight .glyph{opacity:.6;filter:brightness(0) invert(1)}
.canvas-hint{position:absolute;z-index:10;left:50%;bottom:18px;transform:translateX(-50%);display:flex;align-items:center;gap:10px;font-size:12px;line-height:24px;color:#666;white-space:nowrap}.canvas-hint>span{display:grid;place-items:center;width:20px;height:20px;border:1px solid #ffffff14;border-radius:50%;font-size:11px;line-height:18px}
