/* Forecut style boards */
.bd-modes{display:flex;gap:4px;border-bottom:1px solid var(--fx-line);margin:0 0 14px}
.bd-modes button{border:0;background:none;padding:12px 16px;min-height:44px;font:600 14px 'DM Sans',sans-serif;color:var(--fx-muted);border-bottom:2px solid transparent;cursor:pointer;border-radius:0}
.bd-modes button[aria-selected=true]{color:var(--fx-green);border-bottom-color:var(--fx-green)}
.bd-wrap[hidden],.fx-app[hidden]{display:none!important}
.bd-top{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin-bottom:10px}
.bd-top button,.bd-zoom button,.bd-props button{min-height:38px;padding:0 12px;border:1px solid var(--fx-line2);border-radius:8px;background:var(--fx-card);font:500 13px 'DM Sans',sans-serif;color:var(--fx-ink);cursor:pointer}
.bd-top button:hover,.bd-zoom button:hover,.bd-props button:hover{border-color:var(--fx-green);background:var(--fx-green-soft)}
.bd-boardsel{display:grid;gap:4px;font-size:12px;font-weight:600;color:var(--fx-muted)}
.bd-boardsel select{min-height:38px;border:1px solid var(--fx-line2);border-radius:8px;padding:0 10px;font:15px 'DM Sans',sans-serif;background:#fff;min-width:200px}
.bd-sp{flex:1}
.bd-stage{position:relative;height:calc(100vh - 260px);min-height:520px;border:1px solid var(--fx-line2);border-radius:12px;overflow:hidden;background:#f1ede5}
.bd-view{position:absolute;inset:0;overflow:hidden;touch-action:none;background-color:#f1ede5;background-image:radial-gradient(#d6cdbf 1px,transparent 1px);outline:none;cursor:default}
.bd-world{position:absolute;left:0;top:0;transform-origin:0 0;width:1px;height:1px}
.bd-links{position:absolute;left:-20000px;top:-20000px;width:40000px;height:40000px;overflow:visible;pointer-events:none}
.bd-links path.l{stroke:#2b2622;stroke-width:2;fill:none;pointer-events:stroke;transform:translate(20000px,20000px);cursor:pointer}
.bd-links path.l.sel{stroke:#c4643f;stroke-width:3}
.bd-it{position:absolute;box-sizing:border-box;user-select:none;-webkit-user-select:none}
.bd-it.sel{outline:2px solid #2f6fd6;outline-offset:2px}
.bd-it.locked{cursor:not-allowed}
.bd-note{box-shadow:0 2px 6px rgba(0,0,0,.12);padding:12px 14px}
.bd-txt{width:100%;height:100%;overflow:hidden;white-space:pre-wrap;word-wrap:break-word;font:17px/1.35 'DM Sans',sans-serif;color:#241e1a;outline:none}
.bd-txt[contenteditable=true]{user-select:text;-webkit-user-select:text;cursor:text;overflow:auto}
.bd-text .bd-txt{font-family:'Source Serif 4',Georgia,serif;font-weight:500;line-height:1.15}
.bd-txt.c{display:grid;place-items:center;text-align:center;padding:8px}
.bd-frame{border:1px solid #d8cfc2;border-radius:12px}
.bd-ft{position:absolute;left:16px;top:10px;right:16px;font:600 17px 'DM Sans',sans-serif;color:#6a6157;outline:none;white-space:pre-wrap}
.bd-rect{display:grid}
.bd-swatch{background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.12);padding:6px;display:flex;flex-direction:column}
.bd-chip{flex:1;border-radius:3px}
.bd-sl{padding:6px 2px 0;font:12px/1.3 'DM Sans',sans-serif}.bd-sl b{display:block;font-size:13px}.bd-sl span{color:#6a6157}
.bd-image img{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none;border-radius:2px}
.bd-cap{position:absolute;left:0;top:100%;font:12px 'DM Sans',sans-serif;color:#6a6157;padding-top:4px;white-space:nowrap}
.bd-h{position:absolute;right:-8px;bottom:-8px;width:16px;height:16px;background:#fff;border:2px solid #2f6fd6;border-radius:4px;cursor:nwse-resize}
.bd-tools{position:absolute;left:12px;top:50%;transform:translateY(-50%);z-index:5;display:flex;flex-direction:column;gap:4px;background:#fffdf8;border:1px solid var(--fx-line2);border-radius:12px;padding:6px;box-shadow:0 6px 20px rgba(0,0,0,.08)}
.bd-t{width:40px;height:40px;border:0;border-radius:8px;background:none;display:grid;place-items:center;cursor:pointer;color:#2b2622}
.bd-t svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bd-t:hover{background:#efe9de}.bd-t[aria-pressed=true]{background:var(--fx-green);color:#fff}
.bd-tsep{height:1px;background:var(--fx-line);margin:4px 2px}
.bd-zoom{position:absolute;right:12px;bottom:12px;z-index:5;display:flex;gap:4px;align-items:center;background:#fffdf8;border:1px solid var(--fx-line2);border-radius:10px;padding:4px}
.bd-zoom span{min-width:46px;text-align:center;font:600 12px 'DM Sans',sans-serif}
.bd-props{position:absolute;right:12px;top:12px;z-index:6;width:250px;background:#fffdf8;border:1px solid var(--fx-line2);border-radius:12px;padding:12px;box-shadow:0 6px 20px rgba(0,0,0,.08);display:grid;gap:10px;font-size:13px}
.bd-props label{display:grid;gap:4px;font-size:12px;font-weight:600;color:var(--fx-muted)}
.bd-props input{min-height:36px;border:1px solid var(--fx-line2);border-radius:8px;padding:0 8px;font:14px 'DM Sans',sans-serif}
.bd-props input[type=color]{padding:2px;width:100%}
.bd-cols{display:flex;gap:6px;flex-wrap:wrap}.bd-cols button{width:28px!important;min-height:28px!important;height:28px;padding:0!important;border-radius:50%!important;border:1px solid #cfc5b7!important}
.bd-row{display:flex;flex-wrap:wrap;gap:6px}.bd-row button{min-height:34px!important;padding:0 10px!important;font-size:12px!important}
.bd-del{color:#a12825!important}
.bd-brief{background:var(--fx-green)!important;color:#fff!important;border-color:var(--fx-green)!important}
.bd-marquee{position:absolute;border:1px dashed #2f6fd6;background:rgba(47,111,214,.08);pointer-events:none}
.bd-help{font-size:12px;color:var(--fx-muted);margin:8px 0 0}
.bd-pick{position:fixed;inset:0;z-index:120;background:rgba(28,23,20,.4);display:grid;place-items:center;padding:16px}
.bd-pick-card{background:#fffdf8;border-radius:14px;padding:22px;width:min(640px,100%);box-shadow:0 18px 40px rgba(0,0,0,.2)}
.bd-pick-card h3{margin:0 0 14px;font:500 24px 'Source Serif 4',Georgia,serif}
.bd-pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;margin-bottom:12px}
.bd-pick-grid button{text-align:left;border:1px solid #d3c9ba;border-radius:10px;background:#fff;padding:14px;cursor:pointer;font:13px/1.45 'DM Sans',sans-serif;color:#6a6157;min-height:90px}
.bd-pick-grid button b{display:block;color:#241e1a;font-size:15px;margin-bottom:4px}
.bd-pick-grid button:hover{border-color:#214538;background:#e8eee8}
.bd-pick-x{min-height:40px;padding:0 14px;border:1px solid #d3c9ba;border-radius:8px;background:#fff;cursor:pointer}
@media (max-width:1000px){.bd-stage{height:70vh;min-height:420px}.bd-tools{top:auto;bottom:12px;left:50%;transform:translateX(-50%);flex-direction:row;overflow-x:auto;max-width:calc(100% - 24px)}.bd-tsep{width:1px;height:auto;margin:2px 4px}.bd-zoom{bottom:70px}.bd-props{left:12px;right:12px;width:auto;top:12px}}
@media print{.bd-tools,.bd-zoom,.bd-props,.bd-top,.bd-modes,.bd-help{display:none!important}.bd-stage{height:auto;border:0}}
.bd-wrap.bd-full{position:fixed;inset:0;z-index:100;background:var(--fx-paper,#f7f4ee);padding:10px;display:flex;flex-direction:column}
.bd-wrap.bd-full .bd-stage{flex:1;height:auto;min-height:0}
.bd-wrap.bd-full .bd-help{display:none}
/* shapes, text options, menus */
.bd-rect{display:block}.bd-shp{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.bd-rect .bd-txt{position:relative}
.bd-code{display:block;font-size:10px;color:#a74826}
.bd-links path.l.pv{stroke:#c4643f;stroke-dasharray:6 5;pointer-events:none}
.bd-props{max-height:calc(100% - 24px);overflow:auto;width:270px}
.bd-props select{min-height:36px;border:1px solid var(--fx-line2);border-radius:8px;padding:0 8px;font:14px 'DM Sans',sans-serif;background:#fff;width:100%}
.bd-props input[type=range]{min-height:0;padding:0;accent-color:var(--fx-green)}
.bd-sec{font:600 11px 'DM Sans',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--fx-clay);border-top:1px solid var(--fx-line);padding-top:8px}
.bd-2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bd-fmt{display:flex;flex-wrap:wrap;gap:4px}.bd-fmt button{min-height:32px!important;width:32px;padding:0!important;display:grid;place-items:center;font:15px Georgia,serif!important}
.bd-fmt svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.bd-props button[aria-pressed=true],.bd-fly button[aria-pressed=true]{background:var(--fx-green)!important;color:#fff!important;border-color:var(--fx-green)!important}
.bd-shapes{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.bd-shapes button{min-height:34px!important;padding:2px!important;display:grid;place-items:center;border:1px solid var(--fx-line2);border-radius:8px;background:#fff;cursor:pointer}
.bd-shapes svg{width:28px;height:20px;overflow:visible}.bd-shapes path{fill:#e9dcc4;stroke:#2b2622;stroke-width:1.4}
.bd-any{display:inline-grid!important;width:28px;height:28px;border-radius:50%;overflow:hidden;border:1px dashed #a89c8c;position:relative;background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red)}
.bd-any input{opacity:0;position:absolute;inset:0;width:100%;height:100%;cursor:pointer;min-height:0!important}
.bd-inl{display:flex!important;align-items:center;gap:6px!important}.bd-inl input{width:40px!important;min-height:30px!important}
.bd-v{font-weight:400;color:var(--fx-ink)}
.bd-fly{position:absolute;z-index:7;background:#fffdf8;border:1px solid var(--fx-line2);border-radius:12px;padding:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);display:grid;gap:8px;width:230px;font:13px 'DM Sans',sans-serif}
.bd-fly small{color:var(--fx-muted);font-size:11.5px}
.bd-menu{position:absolute;z-index:8;min-width:220px;background:#fffdf8;border:1px solid var(--fx-line2);border-radius:10px;padding:5px;box-shadow:0 10px 30px rgba(0,0,0,.16);display:grid}
.bd-menu button{display:flex;justify-content:space-between;gap:16px;align-items:center;border:0;background:none;text-align:left;padding:8px 10px;border-radius:6px;font:13.5px 'DM Sans',sans-serif;color:var(--fx-ink);cursor:pointer}
.bd-menu button:hover:not(:disabled){background:var(--fx-green-soft)}.bd-menu button:disabled{opacity:.45;cursor:default}
.bd-menu kbd{font:11px 'DM Sans',sans-serif;color:var(--fx-muted)}.bd-menu hr{border:0;border-top:1px solid var(--fx-line);margin:4px 2px}
.bd-image.bd-cut img{border-radius:0}.bd-image.bd-cut.sel{background:repeating-conic-gradient(#0000 0 25%,#0000000a 0 50%) 0 0/16px 16px}
.bd-tools{max-height:calc(100% - 24px);overflow-y:auto}
/* 3D buttons for the board tools */
.bd-tools .bd-t{background:linear-gradient(180deg,#ffffff 0%,#f3eee5 60%,#e7e0d3 100%)!important;border:1px solid #cfc5b4!important;border-radius:9px!important;box-shadow:inset 0 1px 0 #fff,0 2px 3px rgba(60,45,30,.18),0 1px 0 #b9ae9c!important;margin:2px 0;transition:transform .08s,box-shadow .08s}
.bd-tools .bd-t:hover{background:linear-gradient(180deg,#fff,#efe9de)!important}
.bd-tools .bd-t:active{transform:translateY(1px);box-shadow:inset 0 2px 3px rgba(60,45,30,.25)!important}
.bd-tools .bd-t[aria-pressed=true]{background:linear-gradient(180deg,#2f5f4d 0%,#214538 60%,#183428 100%)!important;border-color:#122a20!important;color:#fff!important;box-shadow:inset 0 2px 4px rgba(0,0,0,.35),0 1px 0 rgba(255,255,255,.4)!important;transform:translateY(1px)}
