/* Доски: бесконечный векторный лист. Цвета интерфейса берутся из переменных трекера. */
.shell.bd-on .content{padding:0;overflow:hidden}
.shell.bd-on .tabbar,.shell.bd-on .fab{display:none!important}
.shell.bd-on .top .btn.pri{display:inline-flex!important}
.top .bd-title{font-weight:650;font-size:16px;height:32px;min-width:0;width:min(46vw,360px);background:none;border-color:transparent}
.top .bd-title:hover{background:var(--hover)}
.top .bd-title:focus{background:var(--surf);border-color:var(--accent)}
.bd-status{font-size:12px;color:var(--faint);white-space:nowrap}
.bd-status.err{color:var(--red)}
.bd-zoom{font-size:12px;color:var(--mute);min-width:40px;text-align:center;font-variant-numeric:tabular-nums}
.bd-sep{width:1px;height:20px;background:var(--line2);margin:0 4px;flex:none}
.top .ib:disabled{opacity:.35;cursor:default}
.top .ib:disabled:hover{background:none;color:var(--mute)}
.bd-expwrap{position:relative}
.bd-exp{position:absolute;right:0;top:34px;background:var(--surf);border:1px solid var(--line2);border-radius:10px;box-shadow:var(--shadow);padding:4px;min-width:190px;z-index:30;display:none}
.bd-exp.open{display:block}
.bd-exp button{display:flex;width:100%;align-items:center;gap:8px;padding:8px 10px;border-radius:6px;text-align:left;color:var(--text)}
.bd-exp button:hover{background:var(--hover)}

.bd{height:100%;position:relative}
.bdl{padding:18px 20px;height:100%;overflow:auto}
.bdl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.bdc{background:var(--surf);border:1px solid var(--line);border-radius:12px;padding:14px;cursor:pointer;display:flex;flex-direction:column;gap:6px;min-height:108px;position:relative;text-align:left}
.bdc:hover{border-color:var(--line2)}
.bdc h3{font-size:15px;font-weight:600;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:70px}
.bdc small{color:var(--mute);font-size:12px}
.bdc .ic{color:var(--faint);margin-top:auto}
.bdc .acts{position:absolute;right:6px;top:6px;display:flex;gap:0;opacity:0}
.bdc:hover .acts,.bdc:focus-within .acts{opacity:1}
@media(hover:none){.bdc .acts{opacity:1}}
.bdl-empty{border:1px dashed var(--line2);border-radius:12px;padding:40px 20px;text-align:center;color:var(--mute)}
.bdl-empty .btn{margin-top:12px}

.bd-stage{position:absolute;inset:0;overflow:hidden;touch-action:none;outline:none;user-select:none;-webkit-user-select:none}
.bd-stage[data-bg=light]{background:#fbfaf7}
.bd-stage[data-bg=dark]{background:#1a1a18}
.bd-stage>svg{width:100%;height:100%;display:block}
.bd-stage[data-tool=select]{cursor:default}
.bd-stage[data-tool=hand]{cursor:grab}
.bd-stage[data-pan="1"]{cursor:grabbing}
.bd-stage[data-tool=rect],.bd-stage[data-tool=ellipse],.bd-stage[data-tool=diamond],.bd-stage[data-tool=arrow],.bd-stage[data-tool=line],.bd-stage[data-tool=pen],.bd-stage[data-tool=sticky]{cursor:crosshair}
.bd-stage[data-tool=text]{cursor:text}

.bd-tools{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);display:flex;gap:2px;padding:4px;background:var(--surf);border:1px solid var(--line2);border-radius:12px;box-shadow:var(--shadow);z-index:3;max-width:calc(100% - 16px);overflow-x:auto}
.bd-tools button{flex:none;width:38px;height:38px;border-radius:8px;display:grid;place-items:center;color:var(--mute);position:relative}
.bd-tools button:hover{background:var(--hover);color:var(--text)}
.bd-tools button.on{background:var(--press);color:var(--text)}
.bd-tools button kbd{position:absolute;right:3px;bottom:1px;font-size:9px;border:0;padding:0;line-height:1;color:var(--faint)}

.bd-insp{position:absolute;left:12px;top:12px;width:212px;background:var(--surf);border:1px solid var(--line2);border-radius:12px;padding:10px;box-shadow:var(--shadow);z-index:3;display:flex;flex-direction:column;gap:10px}
.bd-insp .lab{font-size:11px;color:var(--mute);margin-bottom:5px}
.bd-sw{display:flex;gap:5px;flex-wrap:wrap}
.bd-sw button{width:20px;height:20px;border-radius:50%;border:2px solid transparent;box-shadow:inset 0 0 0 1px var(--line2)}
.bd-sw button.on{border-color:var(--accent)}
.bd-sw button.none{background:linear-gradient(135deg,transparent 44%,var(--red) 44%,var(--red) 56%,transparent 56%)}
.bd-row{display:flex;gap:3px}
.bd-row button{flex:1;height:28px;border-radius:6px;color:var(--mute);font-size:12px;border:1px solid var(--line);display:grid;place-items:center}
.bd-row button:hover{background:var(--hover);color:var(--text)}
.bd-row button.on{background:var(--press);color:var(--text)}
.bd-row button.danger{color:var(--red)}

.bd-edit{position:absolute;z-index:4;background:transparent;border:1px dashed var(--accent);border-radius:4px;padding:2px;resize:none;overflow:hidden;outline:none;height:auto;min-height:0;min-width:40px;width:auto;line-height:1.3;white-space:pre-wrap;word-break:break-word}
.bd-hint{position:absolute;right:12px;bottom:16px;font-size:11px;color:var(--faint);z-index:2;pointer-events:none}

@media(max-width:820px){
  .top .bd-title{width:34vw}
  .bd-insp{left:8px;right:8px;top:auto;bottom:66px;width:auto;max-height:42%;overflow:auto}
  .bd-tools{bottom:8px}
  .bd-hint{display:none}
  .top .bd-hide-m{display:none}
}
