/* Pissarra matemàtica universal · 3.0 · © Joan Manuel Barrera Beltri */
.wb-shell{--wb-ink:#183655;--wb-mid:#50718d;--wb-stroke:#c2d8ed;--wb-panel:#f8fbff;--wb-blue:#246bd2;color:var(--wb-ink);max-width:1320px;margin:0 auto;font-family:system-ui,-apple-system,sans-serif}
.wb-shell *{box-sizing:border-box}
.wb-heading{background:linear-gradient(120deg,#143c79,#236bad 85%);border-radius:20px;color:white;padding:27px 30px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.wb-heading h2{font-size:clamp(23px,3.1vw,37px);line-height:1.17;color:white;margin:5px 0 7px}
.wb-heading p{margin:0;color:#d9edff;font-size:15px}
.wb-kicker{font-size:11px;font-weight:900;letter-spacing:.15em;color:#a6e1ff}
.wb-noads{background:#e7f6f1;color:#075b43;border-radius:25px;padding:9px 13px;font-size:12px;font-weight:800;white-space:nowrap}
.wb-intro{font-size:15px;line-height:1.6;color:var(--muted,#506883);margin:16px 2px}
.wb-setup{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin:16px 0 12px}
.wb-setup label{display:grid;gap:4px;font-weight:800;color:var(--muted,#425772);font-size:12px;flex:1 1 150px}
.wb-setup select{min-height:45px;padding:8px 10px;color:var(--wb-ink);background:#fff;border:1px solid var(--wb-stroke);border-radius:11px;font-size:15px;max-width:100%}
.wb-btn{background:#fff;border:1.5px solid #afc9e4;color:#13456f;border-radius:11px;padding:10px 13px;font:800 13px system-ui,sans-serif;min-height:43px;min-width:43px;cursor:pointer;touch-action:manipulation}
.wb-btn:hover,.wb-tool:hover{background:#e7f2ff}.wb-btn:focus-visible,.wb-tool:focus-visible,.wb-workspace svg:focus-visible,.wb-arrows button:focus-visible{outline:3px solid #e7a72b;outline-offset:2px}
.wb-btn.wb-primary{color:white;background:#1c63b3;border-color:#1c63b3}.wb-btn.wb-primary:hover{background:#104d95}.wb-btn.wb-danger{color:#953943;border-color:#d9adb2}.wb-btn.wb-danger:hover{background:#fff0f0}
.wb-task{display:grid;gap:7px;padding:16px 19px;margin:10px 0 15px;border:1px solid #b2d5ee;background:#eaf6ff;border-left:5px solid #2080b8;border-radius:13px}
.wb-task>span{font-size:11px;letter-spacing:.12em;font-weight:900;color:#1e5c9a}.wb-task strong{font-size:clamp(15px,2.3vw,20px);color:#173a5d;line-height:1.45}.wb-progress{font-size:12px;color:#3b6187;min-height:16px}
.wb-work{display:grid;grid-template-columns:145px minmax(0,1fr) 205px;gap:10px;align-items:stretch}
.wb-palette,.wb-inspector,.wb-workspace{background:var(--wb-panel);border:1px solid var(--wb-stroke);border-radius:14px;padding:11px;min-width:0}
.wb-palette h3,.wb-inspector h3{font-size:13px;font-weight:900;color:#21486f;margin:5px 4px 12px}
.wb-palette{display:flex;flex-direction:column;gap:6px}.wb-tool{display:flex;align-items:center;gap:10px;border:1px solid #c7dbed;background:white;border-radius:9px;min-height:48px;width:100%;padding:8px 7px;color:#173d63;font:750 12px system-ui,sans-serif;cursor:pointer;text-align:left}
.wb-tool .wb-emoji{width:24px;min-width:24px;font-size:19px;text-align:center}.wb-tool.is-active{background:#cce6ff;border-color:#1c6ac8;box-shadow:inset 3px 0 #1c6ac8}
.wb-divider{height:1px;background:#cad9e9;margin:10px 0}.wb-workspace{padding:9px}.wb-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-start;margin-bottom:7px}
.wb-toolbar .wb-btn{padding:6px 11px;min-height:42px}.wb-toolbar output{font-weight:900;font-size:12px;color:#294f76;min-width:36px;text-align:center}
#wb-svg{width:100%;height:auto;aspect-ratio:960/600;display:block;background:#f8fbff;border:2px solid #9cbddd;border-radius:12px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
#wb-svg .wb-piece{cursor:grab;touch-action:none}#wb-svg .wb-piece:active{cursor:grabbing}#wb-svg .wb-piece:focus-visible{outline:3px solid #e79e20}
.wb-canvas-help{font-size:12px;line-height:1.4;color:#42607d;padding:8px 2px 0}
.wb-inspector{display:flex;flex-direction:column;gap:4px}.wb-edit{min-height:122px;color:#335574;font-size:12px}.wb-selected{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.wb-selected strong{font-size:15px}.wb-selected span{color:#6485a2;font-size:10px;word-break:break-all}.wb-fields{display:grid;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.wb-fields label{font-size:11px;font-weight:800;display:grid;gap:4px}.wb-fields input{width:100%;min-height:43px;border:1px solid #b4cde1;border-radius:8px;padding:6px;color:#183d66;background:white;font-size:15px}
.wb-arrows{display:grid;justify-content:center;justify-items:center;gap:2px;margin:13px 0 6px}.wb-arrows>div{display:flex;gap:4px}.wb-arrows button{min-height:43px;min-width:43px;font-size:20px;font-weight:900;color:#114d86;background:white;border-radius:9px;border:1px solid #b7d0e9;cursor:pointer}.wb-edit-actions{display:grid;gap:6px}.wb-metrics{display:grid;gap:7px}.wb-metrics span{display:block;background:#eaf4ff;border-radius:8px;padding:9px 7px;font-size:12px;font-weight:800;color:#29557d}
.wb-feedback{margin-top:13px;background:#eef5ff;border:1px solid #c5def6;border-radius:11px;padding:12px 15px;color:#295274;font-weight:700;font-size:13px;min-height:46px}.wb-feedback.wb-ok{background:#e9f7ee;color:#086243;border-color:#93d8b1}.wb-feedback.wb-warn{background:#fff6e9;border-color:#ebcc94;color:#82521d}
.wb-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.wb-bottom{font-size:12px;line-height:1.5;color:var(--muted,#506883);margin:13px 2px}
.dark .wb-shell{--wb-panel:#18344d;--wb-stroke:#426481;--wb-ink:#e9f4ff;color:#e9f4ff}.dark .wb-task,.dark .wb-palette,.dark .wb-inspector,.dark .wb-workspace,.dark .wb-feedback{color:#eaf4ff}.dark .wb-palette h3,.dark .wb-inspector h3{color:#d8ebff}.dark .wb-intro{color:#c2d5e4}.dark .wb-task{background:#1b4363;border-color:#346b91}.dark .wb-task strong,.dark .wb-task>span{color:#ecf7ff}.dark .wb-progress{color:#cde2ff}.dark .wb-canvas-help{color:#c0d5e8}.dark .wb-selected strong{color:#f1f7fd}.dark .wb-fields label{color:#d9eafa}.dark .wb-metrics span{background:#294c69;color:#eaf4ff}.dark .wb-feedback{background:#294969}.dark .wb-feedback.wb-ok{background:#155a45}.dark .wb-feedback.wb-warn{background:#6b5226}
@media(max-width:1100px){.wb-work{grid-template-columns:125px minmax(0,1fr)}.wb-inspector{grid-column:1/-1;display:block}.wb-fields{grid-template-columns:repeat(4,minmax(0,1fr))}.wb-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.wb-edit-actions{display:flex}.wb-arrows{display:inline-grid}}
@media(max-width:720px){.wb-heading{padding:19px 17px;display:block}.wb-noads{display:inline-flex;margin-top:12px}.wb-work{display:flex;flex-direction:column}.wb-palette{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:5px;padding:7px}.wb-palette h3,.wb-palette .wb-divider{display:none}.wb-tool{flex:0 0 auto;width:auto;min-height:47px;padding:8px 11px;white-space:nowrap}.wb-workspace{padding:5px}.wb-toolbar{gap:4px}.wb-toolbar .wb-btn{padding:5px 8px}.wb-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-inspector{display:block}.wb-actions>.wb-btn{flex:1 1 40%}.wb-task{padding:13px 14px}.wb-canvas-help{font-size:11px}}
@media print{body:has(#universal-board) .sidebar,body:has(#universal-board) .topbar,body:has(#universal-board) .footer,body:has(#universal-board) .section-head,body:has(#universal-board) .wb-palette,body:has(#universal-board) .wb-toolbar,body:has(#universal-board) .wb-inspector,body:has(#universal-board) .wb-actions,body:has(#universal-board) .wb-canvas-help,body:has(#universal-board) .wb-feedback,body:has(#universal-board) .wb-setup{display:none!important}body:has(#universal-board) .content-wrap{max-width:none!important;padding:0!important}body:has(#universal-board) .wb-work{display:block!important}body:has(#universal-board) .wb-workspace{padding:0;border:0}body:has(#universal-board) #wb-svg{width:100%;max-height:170mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}body:has(#universal-board) .wb-heading{background:#eee;color:black!important}body:has(#universal-board) .wb-heading h2,body:has(#universal-board) .wb-heading p{color:black!important}}
