/* Excalidraw-based Forge Spatial Foundation */ .whiteboard-layout { position: relative; min-width: 0; height: 100dvh; display: block; overflow: hidden; background: #f7f6f1; } .whiteboard-layout .board-main { width: 100%; height: 100%; min-width: 0; display: grid; grid-template-rows: 58px minmax(0, 1fr); } .whiteboard-layout .board-commandbar { position: relative; z-index: 30; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; background: rgba(253, 252, 249, .94); border-bottom: 1px solid #dedfd9; backdrop-filter: blur(18px); } .whiteboard-layout .board-breadcrumb { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 9px; } .whiteboard-layout .board-breadcrumb > button { height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 9px; color: #41564b; background: #f0f4f0; border: 1px solid #d9e1da; border-radius: 7px; font-size: 12px; font-weight: 700; } .whiteboard-layout .board-breadcrumb > button svg { width: 14px; height: 14px; } .whiteboard-layout .board-breadcrumb > button svg:last-child { width: 11px; } .whiteboard-layout .board-breadcrumb i { color: #a1aaa5; font-style: normal; } .whiteboard-layout .board-breadcrumb input { min-width: 96px; width: 100%; max-width: 640px; padding: 4px 2px; color: #25322c; background: transparent; border: 0; outline: 0; font-size: 15px; font-weight: 650; } .whiteboard-layout .board-actions { display: flex; align-items: center; gap: 8px; } .whiteboard-layout .board-actions .primary-button, .whiteboard-layout .board-actions .secondary-button { min-height: 36px; } .board-insert-menu { position: relative; } .board-insert-menu > summary { list-style: none; cursor: pointer; } .board-insert-menu > summary::-webkit-details-marker { display: none; } .board-insert-menu > summary svg:last-child { width: 12px; } .board-insert-menu[open] > summary { color: #315f49; background: #edf3ee; border-color: #c9d8cd; } .board-insert-menu[open] > div { position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; width: 258px; padding: 6px; background: rgba(253, 252, 249, .98); border: 1px solid #d9dcd6; border-radius: 9px; box-shadow: 0 18px 38px rgba(29, 42, 34, .16); backdrop-filter: blur(16px); } .board-insert-menu[open] > div > button { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 9px; padding: 9px 8px; color: #34493c; text-align: left; background: transparent; border-radius: 6px; } .board-insert-menu[open] > div > button:hover, .board-insert-menu[open] > div > button:focus-visible { background: #eef3ef; } .board-insert-menu[open] > div > button > svg { width: 16px; margin-top: 2px; color: #527965; } .board-insert-menu[open] strong, .board-insert-menu[open] small { display: block; } .board-insert-menu[open] strong { font-size: 12px; } .board-insert-menu[open] small { margin-top: 3px; color: #7b8780; font-size: 11px; line-height: 1.35; } .whiteboard-layout .board-canvas { min-width: 0; min-height: 0; overflow: hidden; } .forge-excalidraw-canvas { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; background: #fbfaf7; } .forge-excalidraw-canvas > .spatial-drawing-surface { position: absolute; inset: 0; } .forge-excalidraw-canvas .excalidraw { --color-primary: #3f765e; --color-primary-darker: #315f49; --color-primary-darkest: #294f3d; --color-surface-low: #f7f6f1; --color-surface-mid: #efeee8; font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif; } .forge-excalidraw-canvas .excalidraw .App-toolbar { border: 1px solid rgba(57, 73, 64, .14); box-shadow: 0 10px 30px rgba(31, 42, 36, .11); } /* Forge posters own their drag gesture; Excalidraw's inactive embeddable wrapper otherwise disables pointer events for the custom renderer. */ .forge-excalidraw-canvas .excalidraw__embeddable-container__inner { pointer-events: auto !important; } .excalidraw-forge-poster { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 20px; color: #28342e; background: rgba(255, 254, 249, .98); border: 1px solid #b9c5bd; border-radius: 20px; box-shadow: 0 14px 34px rgba(36, 48, 41, .13), 0 2px 5px rgba(36, 48, 41, .06); cursor: grab; touch-action: none; user-select: none; pointer-events: auto; } .excalidraw-forge-poster:active { cursor: grabbing; } .spatial-poster-remove { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: grid; place-items: center; color: #6a756f; background: rgba(255, 255, 255, .58); border: 1px solid rgba(68, 88, 77, .18); border-radius: 7px; cursor: pointer; opacity: .78; transition: color .16s ease, background .16s ease, opacity .16s ease; } .spatial-poster-remove:hover, .spatial-poster-remove:focus-visible { color: #8b3f35; background: rgba(255, 247, 243, .94); border-color: rgba(139, 63, 53, .28); opacity: 1; } .spatial-poster-remove:focus-visible { outline: 2px solid rgba(63, 118, 94, .7); outline-offset: 2px; } .spatial-poster-remove svg { width: 14px; height: 14px; } .excalidraw-forge-poster.sage { background: #edf3eb; border-color: #a8bca8; } .excalidraw-forge-poster.sand, .excalidraw-forge-poster.post { background: #f7efdf; border-color: #cbb792; } .excalidraw-forge-poster.lavender { background: #efecf7; border-color: #b9afcc; } .excalidraw-forge-poster.blue { background: #eaf1f3; border-color: #a7bdc5; } .excalidraw-forge-poster h3 { margin: 0 0 9px; font: 650 23px/1.08 "DM Sans", ui-sans-serif, system-ui, sans-serif; } .excalidraw-forge-poster p { display: -webkit-box; overflow: hidden; color: #59665f; font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 4; } .excalidraw-forge-poster footer { min-height: 19px; display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; } .excalidraw-forge-poster footer i { color: #557162; font-size: 10px; font-style: normal; } .excalidraw-forge-poster > button { align-self: flex-start; margin-top: 10px; padding: 5px 8px; color: #315f49; background: rgba(255,255,255,.55); border: 1px solid rgba(49,95,73,.2); border-radius: 6px; font-size: 11px; font-weight: 700; } .canvas-library-backdrop, .canvas-rich-card-backdrop, .board-library-backdrop { position: absolute; z-index: 300; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(31, 38, 34, .24); backdrop-filter: blur(4px); } .canvas-note-library, .board-library-dialog { width: min(760px, 100%); max-height: min(720px, 88vh); overflow: hidden; color: #28342e; background: #fbfaf7; border: 1px solid #d9dcd6; border-radius: 12px; box-shadow: 0 30px 80px rgba(25, 34, 29, .23); } .canvas-note-library > header, .board-library-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px; border-bottom: 1px solid #e1e2dd; } .canvas-note-library header h2, .board-library-dialog header h2 { margin-top: 0; font-size: 21px; } .canvas-note-library header button, .board-library-dialog header button { min-height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; color: #526159; background: transparent; border-radius: 7px; font-size: 12px; font-weight: 700; } .canvas-note-library header button:hover, .board-library-dialog header button:hover { background: #eef2ee; } .canvas-note-library header svg, .board-library-dialog header svg { width: 15px; } .canvas-note-library > input { width: calc(100% - 40px); height: 42px; margin: 16px 20px 8px; padding: 0 12px; background: #fff; border: 1px solid #d9dcd6; border-radius: 8px; outline: none; } .canvas-note-library > div:last-child { max-height: 520px; overflow-y: auto; padding: 8px 12px 16px; } .canvas-note-library > div:last-child > button { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 11px 9px; color: #2e3b34; text-align: left; background: transparent; border-bottom: 1px solid #e7e8e3; } .canvas-note-library > div:last-child > button:hover { background: #eff3ef; } .canvas-note-library > div:last-child svg { width: 17px; color: #64806f; } .canvas-note-library strong, .canvas-note-library small { display: block; } .canvas-note-library small { margin-top: 4px; color: #7a857f; font-size: 11px; } .canvas-note-library-empty { margin: 8px 9px 0; padding: 24px 14px 28px; color: #748078; text-align: center; font-size: 13px; line-height: 1.5; } .canvas-rich-card-backdrop { z-index: 350; padding: 18px; } .canvas-rich-card-editor { width: min(1040px, calc(100% - 36px)); height: min(860px, calc(100% - 36px)); max-height: calc(100% - 36px); min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; overflow: hidden; color: #28342e; background: #fbfaf7; border: 1px solid #d8dad5; border-radius: 12px; box-shadow: 0 34px 90px rgba(25, 34, 29, .28); } .canvas-rich-card-editor > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 24px 14px; } .canvas-rich-card-editor > header > div { min-width: 0; flex: 1; } .canvas-rich-card-editor > header input { width: 100%; padding: 2px 0; color: #24322b; background: transparent; border: 0; outline: 0; font: 650 clamp(25px, 3vw, 36px)/1.1 "DM Sans", ui-sans-serif, system-ui, sans-serif; } .canvas-rich-card-editor > header > button { width: 34px; height: 34px; display: grid; place-items: center; color: #647068; background: transparent; border-radius: 7px; } .canvas-card-tags { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; padding: 0 24px 12px; color: #758078; font-size: 11px; font-weight: 700; } .canvas-card-tags input { height: 34px; padding: 0 10px; background: #fff; border: 1px solid #dedfd9; border-radius: 7px; outline: 0; font-size: 12px; } .canvas-rich-editor-surface { min-height: 0; overflow: auto; margin: 0 20px; background: #fffefa; border: 1px solid #dedfd9; border-radius: 9px; } .canvas-rich-editor-surface .rich-editor { min-height: 100%; } .canvas-rich-editor-surface .editor-toolbar { position: sticky; z-index: 4; top: 0; } .canvas-rich-editor-surface .editor-surface { min-height: 420px; } .canvas-rich-card-editor > p[role="alert"] { padding: 9px 24px 0; color: #9a3e34; font-size: 12px; } .canvas-rich-card-editor > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 18px; } .canvas-rich-card-editor > footer > div { display: flex; align-items: center; gap: 8px; } .canvas-card-colors button { width: 22px; height: 22px; border: 2px solid transparent; border-radius: 50%; box-shadow: 0 0 0 1px rgba(45, 58, 51, .16); } .canvas-card-colors button.sage { background: #c7d9c4; } .canvas-card-colors button.sand { background: #e7d3ae; } .canvas-card-colors button.lavender { background: #d4cbe5; } .canvas-card-colors button.blue { background: #c6d9df; } .canvas-card-colors button.active { border-color: #fff; box-shadow: 0 0 0 2px #3f765e; } .board-library-dialog { width: min(920px, 100%); } .board-library-dialog > header > div:last-child { display: flex; align-items: center; gap: 6px; } .board-library-grid { max-height: min(620px, 72vh); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; overflow-y: auto; padding: 18px; } .board-library-grid > button { min-width: 0; padding: 10px; color: #2d3b34; text-align: left; background: #fffefa; border: 1px solid #dedfd9; border-radius: 9px; } .board-library-grid > button:hover, .board-library-grid > button.active { border-color: #83a28f; box-shadow: 0 8px 24px rgba(42, 58, 49, .09); } .board-library-preview { position: relative; display: block; overflow: hidden; height: 116px; margin-bottom: 10px; color: #72917f; background: linear-gradient(rgba(53,77,64,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(53,77,64,.035) 1px, transparent 1px), #f5f6f1; background-size: 18px 18px; border-radius: 6px; } .board-library-preview-stage { position: absolute; inset: 0; } .board-library-preview-empty { display: grid; place-items: center; } .board-library-preview-empty svg { width: 28px; } .board-library-preview-poster, .board-library-preview-shape, .board-library-preview-text, .board-library-preview-image, .board-library-preview-frame, .board-library-preview-stroke { position: absolute; box-sizing: border-box; pointer-events: none; } .board-library-preview-poster { min-width: 18px; min-height: 12px; overflow: hidden; padding: 3px 4px; color: #304137; background: #fffefa; border: 1px solid rgba(67, 93, 77, .34); border-radius: 3px; box-shadow: 0 2px 5px rgba(33, 48, 40, .12); font-size: 7px; font-weight: 750; line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; } .board-library-preview-poster.card { background: #e5efe2; } .board-library-preview-poster.note { background: #fffefa; } .board-library-preview-shape { min-width: 3px; min-height: 3px; border: 1px solid rgba(51, 68, 59, .42); } .board-library-preview-shape.ellipse { border-radius: 999px; } .board-library-preview-shape.diamond { transform: rotate(45deg) scale(.72); } .board-library-preview-text { overflow: hidden; color: #3c5145; font-size: 7px; font-weight: 650; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; } .board-library-preview-image { min-width: 8px; min-height: 8px; background: linear-gradient(135deg, rgba(76, 126, 151, .52), transparent 52%), linear-gradient(35deg, rgba(221, 173, 93, .6), rgba(238, 242, 237, .8)); border: 1px solid rgba(54, 76, 64, .24); border-radius: 2px; } .board-library-preview-frame { min-width: 12px; min-height: 12px; padding: 2px; overflow: hidden; color: #6f8376; border: 1px dashed rgba(75, 103, 87, .5); border-radius: 3px; font-size: 6px; font-weight: 700; line-height: 1; text-overflow: ellipsis; white-space: nowrap; } .board-library-preview-stroke { height: 1px; min-width: 5px; background: rgba(51, 68, 59, .55); transform-origin: left center; } .board-library-grid strong, .board-library-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .board-library-grid strong { font-size: 13px; } .board-library-grid small { margin-top: 4px; color: #7d8781; font-size: 11px; } @media (max-width: 720px) { .whiteboard-layout .board-commandbar { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding-right: 8px; padding-left: 56px; } .whiteboard-layout .board-breadcrumb { min-width: 0; gap: 5px; overflow: hidden; } .whiteboard-layout .board-breadcrumb i { display: none; } .whiteboard-layout .board-breadcrumb > button { width: 34px; min-width: 34px; height: 34px; padding: 0; justify-content: center; font-size: 0; } .whiteboard-layout .board-breadcrumb > button svg:last-child, .board-save-state, .whiteboard-layout .board-actions > .secondary-button { display: none; } .whiteboard-layout .board-insert-menu > summary { width: 36px; padding: 0; justify-content: center; font-size: 0; } .whiteboard-layout .board-insert-menu > summary svg:last-child { display: none; } .whiteboard-layout .board-breadcrumb input { min-width: 0; width: auto; flex: 1; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; } .whiteboard-layout .board-actions { width: auto; min-width: 0; justify-content: flex-end; gap: 6px; } .whiteboard-layout .board-actions > .primary-button { width: 36px; min-width: 36px; padding: 0; font-size: 0; } .whiteboard-layout .board-actions > .primary-button span { display: none; } .canvas-rich-card-backdrop { padding: 0; } .canvas-rich-card-editor { width: 100%; height: 100%; border: 0; border-radius: 0; } .canvas-rich-card-editor > footer { align-items: flex-end; flex-direction: column; } }